| 1 | ****************************************************************************** |
|---|
| 2 | Copyright (c) 2006-2008, Derek Konigsberg |
|---|
| 3 | All rights reserved. |
|---|
| 4 | |
|---|
| 5 | Redistribution and use in source and binary forms, with or without |
|---|
| 6 | modification, are permitted provided that the following conditions |
|---|
| 7 | are met: |
|---|
| 8 | |
|---|
| 9 | 1. Redistributions of source code must retain the above copyright |
|---|
| 10 | notice, this list of conditions and the following disclaimer. |
|---|
| 11 | 2. Redistributions in binary form must reproduce the above copyright |
|---|
| 12 | notice, this list of conditions and the following disclaimer in the |
|---|
| 13 | documentation and/or other materials provided with the distribution. |
|---|
| 14 | 3. Neither the name of the project nor the names of its |
|---|
| 15 | contributors may be used to endorse or promote products derived |
|---|
| 16 | from this software without specific prior written permission. |
|---|
| 17 | |
|---|
| 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
|---|
| 19 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
|---|
| 20 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
|---|
| 21 | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
|---|
| 22 | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
|---|
| 23 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
|---|
| 24 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
|---|
| 25 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
|---|
| 26 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
|---|
| 27 | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
|---|
| 28 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
|---|
| 29 | OF THE POSSIBILITY OF SUCH DAMAGE. |
|---|
| 30 | |
|---|
| 31 | ****************************************************************************** |
|---|
| 32 | |
|---|
| 33 | File: LogicMail/src/org/logicprobe/LogicMail/util/Connection.java |
|---|
| 34 | |
|---|
| 35 | ---------------------------------------------------------------------------- |
|---|
| 36 | |
|---|
| 37 | Portions of this file originated from: |
|---|
| 38 | |
|---|
| 39 | Mail4ME - Mail for the Java 2 Micro Edition |
|---|
| 40 | |
|---|
| 41 | A lightweight, J2ME- (and also J2SE-) compatible package for sending and |
|---|
| 42 | receiving Internet mail messages using the SMTP and POP3 protocols. |
|---|
| 43 | |
|---|
| 44 | Copyright (c) 2000-2002 Jorg Pleumann <joerg@pleumann.de> |
|---|
| 45 | |
|---|
| 46 | Mail4ME is part of the EnhydraME family of projects. See the following web |
|---|
| 47 | sites for more information: |
|---|
| 48 | |
|---|
| 49 | -> http://mail4me.enhydra.org |
|---|
| 50 | -> http://me.enhydra.org |
|---|
| 51 | |
|---|
| 52 | Mail4ME is distributed under the Enhydra Public License (EPL) |
|---|
| 53 | |
|---|
| 54 | ****************************************************************************** |
|---|
| 55 | |
|---|
| 56 | File: LogicMail/src/org/logicprobe/LogicMail/util/MD5.java |
|---|
| 57 | |
|---|
| 58 | This file is a modified version of the one covered by the license below. |
|---|
| 59 | The modifications involved changes in the public interface, general |
|---|
| 60 | formatting, and size reduction. |
|---|
| 61 | While the RIM API includes an MD5Digest class, it requires a digitally signed |
|---|
| 62 | binary to be usable. Since requiring code signing would impose an undesirable |
|---|
| 63 | restriction on this project, this alternative implementation is provided. |
|---|
| 64 | |
|---|
| 65 | ---------------------------------------------------------------------------- |
|---|
| 66 | |
|---|
| 67 | Fast implementation of RSA's MD5 hash generator in Java JDK Beta-2 or higher. |
|---|
| 68 | |
|---|
| 69 | Originally written by Santeri Paavolainen, Helsinki Finland 1996. |
|---|
| 70 | (c) Santeri Paavolainen, Helsinki Finland 1996<br> |
|---|
| 71 | Many changes Copyright (c) 2002 - 2005 Timothy W Macinta<br> |
|---|
| 72 | |
|---|
| 73 | This library is free software; you can redistribute it and/or modify it under |
|---|
| 74 | the terms of the GNU Library General Public License as published by the Free |
|---|
| 75 | Software Foundation; either version 2.1 of the License, or (at your option) |
|---|
| 76 | any later version. |
|---|
| 77 | |
|---|
| 78 | This library is distributed in the hope that it will be useful, but WITHOUT |
|---|
| 79 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
|---|
| 80 | FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more |
|---|
| 81 | details. |
|---|
| 82 | |
|---|
| 83 | You should have received a copy of the GNU Library General Public License |
|---|
| 84 | along with this library; if not, write to the Free Software Foundation, Inc., |
|---|
| 85 | 675 Mass Ave, Cambridge, MA 02139, USA. |
|---|
| 86 | |
|---|
| 87 | See http://www.twmacinta.com/myjava/fast_md5.php for more information on this |
|---|
| 88 | file and the related files. |
|---|
| 89 | |
|---|
| 90 | This was originally a rather straight re-implementation of the reference |
|---|
| 91 | implementation given in RFC1321 by RSA. It passes the MD5 test suite as |
|---|
| 92 | defined in RFC1321. |
|---|
| 93 | |
|---|
| 94 | Many optimizations made by Timothy W Macinta. Reduced time to checksum a test |
|---|
| 95 | file in Java alone to roughly half the time taken compared with |
|---|
| 96 | java.security.MessageDigest (within an intepretter). Also added an optional |
|---|
| 97 | native method to reduce the time even further. See |
|---|
| 98 | http://www.twmacinta.com/myjava/fast_md5.php for further information on the |
|---|
| 99 | time improvements achieved. |
|---|
| 100 | |
|---|
| 101 | Some bug fixes also made by Timothy W Macinta. |
|---|
| 102 | |
|---|
| 103 | This Java class has been derived from the RSA Data Security, Inc. MD5 |
|---|
| 104 | Message-Digest Algorithm and its reference implementation. |
|---|
| 105 | |
|---|
| 106 | ****************************************************************************** |
|---|
| 107 | |
|---|
| 108 | File: LogicMail/src/org/logicprobe/LogicMail/util/bb40/Base64.java |
|---|
| 109 | |
|---|
| 110 | This file is a modified version of the one covered by the comments below. |
|---|
| 111 | The modifications involved removing unused functionality and general formatting. |
|---|
| 112 | While the BB v4.1 API includes a Base64 encoder and decoder, the v4.0 API does |
|---|
| 113 | not. This class exists to provide support for BB v4.0 devices. |
|---|
| 114 | |
|---|
| 115 | ---------------------------------------------------------------------------- |
|---|
| 116 | |
|---|
| 117 | Encodes and decodes to and from Base64 notation. |
|---|
| 118 | Homepage: http://iharder.net/base64 |
|---|
| 119 | Author: Robert Harder <rob@iharder.net> |
|---|
| 120 | Version 2.2.1 |
|---|
| 121 | |
|---|
| 122 | I am placing this code in the Public Domain. Do with it as you will. |
|---|
| 123 | This software comes with no guarantees or warranties but with |
|---|
| 124 | plenty of well-wishing instead! |
|---|
| 125 | Please visit http://iharder.net/base64 |
|---|
| 126 | periodically to check for updates or to contribute improvements. |
|---|
| 127 | |
|---|
| 128 | ****************************************************************************** |
|---|
| 129 | |
|---|
| 130 | Icons used in this project are from the "Tango Desktop Project" unless |
|---|
| 131 | otherwise noted, and are either used directly or with minor modifications. |
|---|
| 132 | |
|---|
| 133 | Tango Desktop Project: |
|---|
| 134 | http://tango.freedesktop.org/ |
|---|
| 135 | |
|---|
| 136 | Tango Icons for Thunderbird: |
|---|
| 137 | https://addons.mozilla.org/themes/moreinfo.php?id=2258&application=thunderbird |
|---|
| 138 | |
|---|
| 139 | ****************************************************************************** |
|---|
| 140 | |
|---|
| 141 | Files: LogicMailTests/src/j2meunit/framework/*.java |
|---|
| 142 | LogicMailTests/src/j2meunit/util/*.java |
|---|
| 143 | |
|---|
| 144 | These files contain the sources to J2MEUnit 1.1.1, minus any UI packages or |
|---|
| 145 | classes containing a main() method. |
|---|
| 146 | |
|---|
| 147 | ---------------------------------------------------------------------------- |
|---|
| 148 | |
|---|
| 149 | Starting with version 1.1 J2MEUnit is distributed unter the Common |
|---|
| 150 | Public License Version 1.0. The text of this license can be found |
|---|
| 151 | at www.opensource.org. |
|---|
| 152 | |
|---|
| 153 | J2MEUnit was originally written by RoleModel Software Inc. and |
|---|
| 154 | distributed under a similar but less detailed license. |
|---|
| 155 | |
|---|
| 156 | http://j2meunit.sourceforge.net/ |
|---|
| 157 | |
|---|
| 158 | ****************************************************************************** |
|---|