You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5072 lines
174 KiB

2007-04-22 Ludovic Marcotte <>
* Modified CWMessage: -setReplyTo: / -replyTo
to deal with an address list instead of a single
address value.
* Added a TLS example in SimpleSMTP and also documented
some GMail behaviors.
2007-04-08 Ludovic Marcotte <>
* We now respect the "content" parameter when creating
a maildir-type mailbox.
2007-04-07 Ludovic Marcotte <>
* Removed the pre2 compatibility for cache files
and cleaned up the code.
* Patches from Annard Brouwer
<> that fixes:
- compiler warnings wrt PERFORM_SELECTOR_1
- compiler warnings in CWIMAPCacheManager,
in CWLocalCacheManager, in CWPOP3CacheManager,
in CWPOP3Store and in CWParser.
- CWLocalFolder+mbox: -unfoldLinesStartingWith: fileStream:
when getting 8-bit input.
- Now uses the enhanced capabilities of CoreFoundation
for string decoding.
- Parsing issues for addresses like "Joe" User <>
* Added -setEnforceModes:/-isEnforcingMode in CWLocalStore
to enforce or not secure file permissions for mailboxes.
By default, secure permissions are enforced. Also
removed the code to enforce permissions when
opending the local store.
* We no longer automatically assign a CWLocalCacheManager
instance to the CWLocalFolder instance. It's up to the
callee now to set one before calling -parse:.
* Fixed addresses parsing in CWParser: +parseDestination: ...
for addresses like "Bar, Foo" <>.
* Fixed CWParser: +parseReferences: ... so that the Reference
header is correctly parsed when loaded from cache files.
Also fixed CWParser: +parseInReplyTo: ... to not include
leading junk after the 1*msg-id.
2007-03-27 Ludovic Marcotte <>
* Cleanups and updates to the documentation.
2007-03-25 Ludovic Marcotte <>
* We also now return the unmodified data when posting
the notification (or calling the delegate method)
upon IMAP message append operations.
* We close the fd after -connectionLost: has been
called for cleanups purposes.
2007-03-23 Ludovic Marcotte <>
* We now correctly handle entries set in /etc/hosts
2007-03-21 Ludovic Marcotte <>
* Small adjustment in previous commit. We now use
the supplied data instead of the newly constructed
one when posting the notificatoin / calling the delegate
in CWLocalFolder: -appendMessageFromRawSource: flags:
2007-03-17 Ludovic Marcotte <>
* Cleaned up CWLocalFolder and finalized the error
handling support in -appendMessageFromRawSource: flags:
* Documentation fixes.
* Additional cleanups.
2007-03-16 Ludovic Marcotte <>
* We now correctly free up the memory used by
our CFRunLoopSource objects.
2007-03-12 Ludovic Marcotte <>
* Small optimization in unique_id().
2007-03-11 Ludovic Marcotte <>
* Added -lresolv in Xcode additional linking
flags for the Pantomime target.
* We now avoid using NSString: -cStringUsingEncoding:
to preserve Mac OS X 10.3 compatibility.
2007-03-09 Ludovic Marcotte <>
* Simplified CWDNSManager: -_parseResolvFile.
Patch from Chris Vetter.
2007-03-04 Ludovic Marcotte <>
* Fixed endian issues in CWDNSManager and ported
the code to Mac OS X.
2007-03-01 Ludovic Marcotte <>
* We make sure we have at least one nameserver
defined before trying to send our DNS request.
2007-02-26 Ludovic Marcotte <>
* Renamed timezone to _timezone in CWParser
to avoid compilation errors on OpenBSD.
* Implemented read/write timeouts support
in CWService.
* Removed NSData+Extensions: -dataWithCString:
as it wasn't used anywhere.
* Implemented and documented a new asynchronous
UDP-based DNS resolver in CWDNSManager.
2007-02-05 Ludovic Marcotte <>
* Small cleanups.
* Tagged the source tree with revision
c04a7f3e69aa5aa286dd3443c98c11ef42467c85 and
tag name v1.2.0pre3.
2007-02-03 Ludovic Marcotte <>
* We now re-thread correctly our threaded local
mailbox after an expunge.
2007-02-01 Ludovic Marcotte <>
* Added a patch from Christian Niles to improve
parsing of malformated internet addresses.
2007-01-31 Ludovic Marcotte <>
* Added a patch from Christian Niles <>
that adds support of internal date while appending messages
to an IMAP mailbox.
2007-01-29 Ludovic Marcotte <>
* We now correctly return an error in case
of a SSL handshake error.
2007-01-28 Ludovic Marcotte <>
* We no longer abort if we can't create the local
cache file. This can happen when reading from
a mail spool file.
* Added delegate / notification in CWIMAPStore
(testing for now) in order to know when
a command was sent and when it has completed.
* Modified CWLocalFolder: -parse: so that we
consider messages in /new and /tmp when opening
a maildir-based mailbox using a cache.
* Fixes to the Pantomime Xcode project files.
* Modified the short/integer reading routines
(from memory) to correct endianness.
2007-01-23 Ludovic Marcotte <>
* We now correctly expunge the IMAP cache when we
either receive an untagged EXPUNGE response or
when we sync our cache with our IMAP folder when
opening the mailbox.
* Performed some cleanups.
2007-01-21 Ludovic Marcotte <>
* Removed Documentation/LICENSE.ELM
* Added the PantomimeContentDisposition enum and
refactored the CWPart class to use it.
* We now post notifications on success / error
when opening a local mailbox.
2007-01-20 Ludovic Marcotte <>
* Modified CWIMAPStore to not break when
parsing only the initial set of headers.
* Removed all the ELM code and rewrote the
parts that were using it. Removed the following
files: atonum.c date_util.c getword.c len_next.c
parsarpdat.c parsarpmbox.c rfc822tlen.c strfcpy.c
strincmp.c striparens.c elm_defs.h elm_lib.h
and parseaddrs.h
* Don't cache the array of IP addresses from
a DNS name if it's empty.
... IMAP command if we already sent it once. This
prevents from adding headers continously to a
message if it gets expired.
* We now correctly inform our delegate and we post
a notification if we can't expunge an IMAP mailbox.
* Improved the randomness of the maildir filenames.
* We now correctly empty the IMAP queue after handling
a BAD response.
* Removed the CWCacheManager (and subclasses)
+cacheWithPath: method.
* Dropped Framework/Pantomime/English.lproj and
its content.
* Implemented a brand new mailbox caching code
for POP3, IMAP and local (mbox/maildir) type
of mailboxes. Previously POP3 cache files
are converted correctly, while IMAP and local
ones are ignored.
2006-10-13 Ludovic Marcotte <>
* Modified CWContainer: -setParent to avoid
a loop.
2006-10-12 Ludovic Marcotte <>
* We now call NSAssert2() if the stream isn't
closed properly if if the file descriptor
hasn't been closed in CWLocalFolder: -dealloc.
Patch from Aaron Burghardt <>.
* Prevent a potential crash in NSData+Extensions
-decodeBase64: for incorrectly formatted
base64 content.
* Rewrote CWPart: -dataValue so it's much
simpler and faster. That is now part of the
new Pantomime message encoder.
* Cleaned up the CWMessage/CWPart interfaces
and removed ivars.
2006-10-06 Ludovic Marcotte <>
* Documentation fixes. Many thanks goes
to Christian Niles.
* We can now forward messages as inline or
as an attachment.
* Implemented a consumer of RFC2231 output.
* Added a boolean parameter to CWLocalFolder: -parse
so we can now partially parse local mailboxes
or fully parse them (at the headers level).
* Modified NSData+Extensions: -dataByTrimmingWhiteSpaces
to also trim tab characters.
* Modified CWIMAPStore to break when we parsed the
appropriate message part.
* New Pantomime message decoding engine. Much more
simpler than before, faster and more robust.
Everything is now dedoced to a NSData, CWMessage
or CWMIMEMultipart instance.
* Patches from Annard Brouwer
<> that fixes:
- Fixed a bug where an instance from the wrong
class was allocated in CWMIMEUtility.
- Now use -UTF8String instead of -cString for
all UNIX filenames.
- Corrected CWContainer: -count to return the
real children count.
- Add comparison support to CWInternetAddress.
- "unknown" charset support (buggy Outlook output)
- added support for localized response and
reference prefixes that are used in
NSString+Extensions: -hasREPrefix.
2006-09-28 Ludovic Marcotte <>
* Tagged the source tree with revision
81da7b5c5004326fc2476cb3f7c7637eff152aff and
tag name v1.2.0pre2.
* Fixed a memory leak in CWMessage.
2006-09-25 Ludovic Marcotte <>
* RELEASE v1.2.0pre2.
2006-09-24 Ludovic Marcotte <>
* Updated the documentation.
2006-09-19 Ludovic Marcotte <>
* Updated the documentation.
* Modified CWPOP3Message: -setFlags:
to call [super setFlags: ...] and make
sure that we have tasks in the queue
before trying to empty it in CWPOP3Store.
Suggestions from Matt Bendiksen.
2006-09-16 Ludovic Marcotte <>
* We now properly call delegate (and post
notifications) if the TLS code failed
* Modified CWMessage: -dataValue so that
we also include the User-Agent header in
our list of additional headers that are
being sent.
* Cleaned up the POP3 code. Replaced
CWPOP3Folder: -deleteMessageAtIndex: with
CWPOP3Message: -setFlags: and CWPOP3Folder:
-prefetchMessageAtIndex: with CWPOP3Message:
-rawSource and -setInitialized: Also updated
SimplePOP3 to reflect those changes.
2006-09-08 Ludovic Marcotte <>
* Improved the documentation with regard to the
* Improved examples
* We now initialize the message with its content
after a RETR over POP3 instead of just setting
the raw source of the message.
* We now correctly destroy the connection timer
when we cancel the actual request when we
are connecting to a service.
2006-09-05 Ludovic Marcotte <>
* Commented out unused define in elm_defs.h to
avoid compilation error with OpenSSL. Bug
reported by Marcelo Bezerra <>.
2006-09-04 Ludovic Marcotte <>
* Fixed CWPOP3Folder: _deleteOldMessages. It
was incorrectly using a 0-based index.
* Modified CWMIMEUtility: unique_id() so we
make sure we don't go out of bounds in
the hexDigit array. Also improved the
randomness of the ID. Patches from
Matt Bendiksen <>.
* Modified CWSMTP to correctly destroy recipients,
message and message data when we are
setting again those values.
* Applied patches from Matt Bendiksen so that
we correctly determine the byte border in
CWMD5 and we now build Pantomime as
the Universal Binary framework.
2006-09-02 Ludovic Marcotte <>
* We now handle correctly EXPUNGE responses
over IMAP when we haven't yet had the time
to FETCH expunged messages.
2006-06-11 Ludovic Marcotte <>
* Applied a patch from Lorenz M<EFBFBD>senlechner
<> to set the maximum
number of bytes to write when using SSL
to 1024 in order to prevent a strange
bug in SSL_write() under Mac OS X.
2006-06-06 Ludovic Marcotte <>
* Cleaned a bit the IMAP code.
2006-05-28 Ludovic Marcotte <>
* Improved the message reply code to consider
all text parts.
2006-05-15 Ludovic Marcotte <>
* Cleaned all the notification / perform
selector code.
* Removed the old Xcode project file and added
the new one.
2006-05-10 Ludovic Marcotte <>
* Modified CWMessage: -headerValueForName to perform
the search in a case-insensitive way.
2006-05-07 Ludovic Marcotte <>
* We now handle correctly "fast IMAP folder switching".
* We now handly correctly messages with the broken
iso8859_1 charset specification.
* Fixed any potential memleaks in NSString+Extensions:
+stringWithData: charset: and if we can't use
iconv_open(), we fall back to US-ASCII.
* Moved CWIMAPStore -capabilities to CWService and
implemented it in CWPOP3Store and CWSMTP.
* Documented CWFolder.
* Modified CWService: -updateRead to replace the
malloc/free call with a static buffer.
2006-04-30 Ludovic Marcotte <>
* Fixes some issues on MingW with local mailboxes.
2006-04-29 Ludovic Marcotte <>
* More cleanups.
* Fixed a bug in CWIMAPMessage: -setInitialized where
we really set the message as an initialized one
when it's finished loading. Also modified CWIMAPStore
to handle this.
2006-04-25 Ludovic Marcotte <>
* Fixed a potential crashing bug in CWLocalStore:
-folderForName: (if we are passing nil values).
2006-04-24 Ludovic Marcotte <>
* Some cleanups.
* We now use recv()/send() instead of read()/write()
in CWTCPConnection (on sockets) so that the same
code can be used on both UNIX and win32.
* Fixed a bug CWLocalFolder+mbox:
* Fully ported Pantomime to MingW. This is an initial
port that seems to work rather well so far. It likely
contains some bugs and it needs a lot of testing
and love, of course.
2006-04-09 Ludovic Marcotte <>
* Corrected the notification names posted in
the CWSMTP and CWSendmail classes. We were
using PantomimeTransportMessageSent and
PantomimeTransportMessageNotSent instead
of PantomimeMessageSent and PantomimeMessageNotSent.
* Modified CWFolder: -expunge - removed the parameter
to return deleted messages. This logic should
be done in the callee.
* Defined all notification names as constants. Improved
the documentation.
* Fixed some compiler warnings with gcc 4.x
2006-04-08 Ludovic Marcotte <>
* Fixed the IMAP code so that we if send an empty
password and the server doesn't accept it, we
inform our delegate that the authentication failed.
* Fixes when informing the delegate on search
completion and more.
* Added notification/delegate methods to handle
a SMTP transaction reset.
* Improved the SimpleSMTP example to show how to
send the same message over the same connection
more than once.
2006-03-31 Ludovic Marcotte <>
* It's now possible to obtain the last command
sent by any CWService subclasses.
2006-03-25 Ludovic Marcotte <>
* Added initial TLS support for IMAP, POP3
and SMTP services.
2005-12-23 Ludovic Marcotte <>
* We now correctly strip Lotus Notes' and
Novell GroupWise "re" prefix in the Subject
when replying to a mail.
2005-12-22 Ludovic Marcotte <>
* We correctly set the SONAME to 1.2. Bug reported
by Hubert Chan <>.
2005-12-19 Ludovic Marcotte <>
* Fixed the CWSMTP class in order to not remove
the original recipients list when sending
the message.
* Rewrote the CWInternetAddress class to not
use the old ELM address parsing code. More
refactorings are to come with regard to this
old ELM code, which doesn't support non-ASCII
characters too well.
* Fixed the non-blocking connect code in TCPConnection.m
2005-08-14 Ludovic Marcotte <>
* Fixed a missing include in CWDNSManager for OS X.
* Added a new version of striphtml(). Patch from
Richard Frith-Macdonald <>.
2005-03-20 Ludovic Marcotte <>
* Lots of small cleanups (wrt warnings) and
documentation improvements.
* Modified CWSMTP to post notifications before
invoking the delegate methods.
* Modified CWService: -writeData: so that we
don't try to enable the write callback if
we are not connected to the remote host.
2005-03-13 Ludovic Marcotte <>
* Modified CWService: -cancelRequest to flush the command
queue and CWIMAPStore: -reconnect to flush the read/write
buffers before attempting to reconnect.
2005-03-02 Ludovic Marcotte <>
* Modified CWFolder: -dealloc to set the CWMessage's
instances folder to nil in case something was
retaining those instances and try to access the
_folder ivar.
2005-02-27 Ludovic Marcotte <>
* Moved the timeout definition code from CWConnection
to CWService.
2005-02-25 Ludovic Marcotte <>
* Modified CWService: -_removeWatchers so we
immediately return if we are not connected.
2005-02-23 Francis Lachapelle <>
* Updated the XCode project file; added
2005-02-23 Ludovic Marcotte <>
* Implemented service's disconnection support
and IMAP reconnection support. Documented everything.
2005-02-06 Ludovic Marcotte <>
* Improved CWLocalStore: -createFolderWithName:
type: contents:
2005-01-24 Ludovic Marcotte <>
* Modified CWSMTP: -authenticate:... so that if
an unknown / unsupported mechanism is provided,
we call -authenticationFailed: (and post
the notification)
* Modified CWService to post the notifcation
before calling the delegate method. Same
in CWConstants.h.
* Added a note in CWService.h to clear up the
deallocation process of CWService instances.
* Modified CWService: _tick so that we honor
the connection timeout of the CWTCPConnection
instance (default to 60 seconds).
2005-01-22 Ludovic Marcotte <>
* Modified CWIMAPStore: _folderNameFromString:
to handle better literal responses.
2005-01-16 Ludovic Marcotte <>
* Added NSScaner+Extensions in order to define the
-scanUnsignedInt: method, which we implement.
Those files need to be added to the PB and Xcode
project files.
* Added a patch from "Konstantin B. Bukharov" <>
that replaces all occurences of int by unsigned
int wrt the UID IMAP code in order to support
very large UID:s.
* Fixed the code that renamed maildir mailboxes.
* Updated the PB project file. The Xcode project
file NEEDS to be also updated.
* Added a small fix to the NSScanner extension
to not generate exceptions when -scanUnsignedInt:
reaches the very end of the string.
2005-01-15 Ludovic Marcotte <>
* We now post a PantomimeFolderCloseCompleted (and
call -folderCloseCompleted: on the delegate) when
we close a local or IMAP folder.
2005-01-10 Ludovic Marcotte <>
* Modified CWSMTP to improve the data transparency
code (in speed) and also to remove the Bcc: header
before sending the DATA to the server. Some
servers (like qmail) don't automatically remove it.
2005-01-09 Ludovic Marcotte <>
* Modified CWService: -cancelRequest to unconditionally
close the connection and remove the watchers even
if we are not yet connected.
2005-01-08 Ludovic Marcotte <>
* Added fixes to parse 8-bit mailbox names
in CWIMAPStore: -_parseLIST and -_parseLSUB.
2005-01-02 Ludovic Marcotte <>
* Set the tag to v1_2_0pre1
* Released 1.2.0pre1.
2005-01-01 Ludovic Marcotte <>
* Modified CWIMAPStore: -sendCommand: ... so that
we do NOT skip the command if it's an IMAP APPEND
command which has the same parameters as an existing
command in the command queue.
2004-12-26 Ludovic Marcotte <>
* Modified the macros so they all accept the
* Modified CWServer: -updateRead so that if we
are connected and we read 0 byte, we call
-connectionLost: and post the associated notification.
* Modified CWService: -_removeWatchers to remove
all ALL watchers, for all modes.
2004-12-24 Ludovic Marcotte <>
* Fixed the message appending code in CWLocalFolder
so it accepts messages composed of only headers.
2004-12-23 Ludovic Marcotte <>
* Added code to obtain messages from a mail
spool file.
* Reviewed the mbox locking code so it is
more robust and don't rely (unless we
are on Linux) on flock().
* Small fixes so things compile on Solaris
2004-12-22 Ludovic Marcotte <>
* We now use gethostname() instead of
[[NSHost currentHost] name] since this causes
problems on Cocoa when DNS resolutions can't
be done properly.
* Added some notes wrt using Pantomime in your
application, especially on OS X with the
-DMACOSX compiler flag.
2004-12-19 Ludovic Marcotte <>
* Modified CWMessage: -setRecipients: to always
remove the previous recipients.
2004-12-13 Ludovic Marcotte <>
* Cleaned up some more the maildir code. Moved
the generation of the "info" string into CWFlags
(added the method -maildirString).
* Modified the maildir and mbox code to return
deleted messages in the notification. Updated
the documentation.
* Moved the code that parses the maildir's info
string from CWLocalFolder+mbox (shared with
the mbox code) to CWFlags's addFlagsFromData:
for which the "format:" parameter was added.
Updated the documentation.
2004-12-07 Ludovic Marcotte <>
* Modified CWPart: -dataValue so we don't add
an empty filename for no good reason when we
deal with application/*, audio/*... parts.
2004-12-08 Ludovic Marcotte <>
* Modified NSString+Extensions so we correctly
cast the returned value of iconv_open() to
a signed type. Patch from
Robert L. Masterson <>
2004-12-06 Ludovic Marcotte <>
* Modified CWLocalStore so we include the number
of messages in the mbox we import (if any) when
creating a mailbox.
Added CWLocalFolder+mbox: +numberOfMessagesFromData:
to help doing this.
2004-11-28 Ludovic Marcotte <>
* Updated the documentation.
* Renamed CWMessagew: -mimeVersion to -MIMEVersion
and -setMimeVersion: to -setMIMEVersion:
* Renamed CWPart: -isMimeType: subType: to
-isMIMEType: subType:
* Renamed Parser: +parseMimeVersion: inMessage:
to +parseMIMEVersion: inMessage:
* CWStore: -initWithURL: now accepts a CWURLName
instead of a NSString instance.
* Updated the XCode project file. Thanks goes
to Julian Mayer.
2004-11-27 Ludovic Marcotte <>
* Reoganized and reimported the sources.
* Converted to a Framework under GNUstep.
* Bumped the official version number (for
the underlying libs) to 1.2.0.
* Optimized the maildir code. It's now fully
usable with large mailboxes.
* Added the "CW" prefix to all classes.
* Updated the OS X port and the PB file.
* Fixed a bug in CWCacheManager. We now decode
CacheManager as CWCacheManager. This issue was
only occurring on OS X.
2004-11-22 Ludovic Marcotte <>
* Modified the GNUmakefile files for the
Examples so they work on OS X.
* Improved the async I/O code by listening in
all modes for write availability. This change
affects only GNUstep users as it was already
working well and this way on OS X.
2004-11-21 Ludovic Marcotte <>
* Protected InternetAddress: -initWithString:
against nil values.
* Cleaned up the code related to the mbox
message separator generation.
2004-11-09 Ludovic Marcotte <>
* Cleaned quite a bit the documentation and added
informal protocols (TransportClient, SMTPClient
and ServiceClient).
* Added examples! See the Examples directory.
2004-11-07 Ludovic Marcotte <>
* Modified IMAPFolder: -close to set the folder
to 'nil' for all messages.
2004-10-31 Ludovic Marcotte <>
* We now assume that an empty charset is like
iso-8859-1 when decoding messages. This is useful
to prevent lame Ximian Evolution bugs.
2004-10-30 Ludovic Marcotte <>
* We now cache correctly the Message-ID when
generating a new message.
2004-10-10 Ludovic Marcotte <>
* Fixed a small bug in LocalFolder: _findPart:...
in which we were inverting the behavior of
the PantomimeCaseInsensitiveSearch constraint.
2004-09-26 Ludovic Marcotte <>
* We now space-stuff the "\nFrom " lines
instead of inserting a > in LocalFolder:
* Renamed -stringByReplacingOccurrencesOfString: withString:
to stringByReplacingOccurrencesOfCharacter: withCharacter:
in the NSString extension.
* We now return a char instead of a NSString when calling
-folderSeparator on a Store instance.
2004-09-25 Ludovic Marcotte <>
* We now listen in all common modes (instead of just
the default mode) for socket activity.
2004-09-18 Ludovic Marcotte <>
* We correctly post the notification that the list
of folders (or subscribed folders) is loaded
in both IMAPStore and LocalStore.
2004-09-12 Ludovic Marcotte <>
* We now correctly close the socket in case a name
resolution (or an other error) occurs in
TCPConnection: -initWithName: port: ...
2004-09-11 Ludovic Marcotte <>
* Added a missing "break" in IMAPStore: -_parseNO
* We correctly remove the folder from the list of
open folders if we weren't able to open it.
2004-08-22 Ludovic Marcotte <>
* Optimized the IMAP message expunge code when the
folder is threaded.
2004-08-15 Ludovic Marcotte <>
* Updated the OS X project file (PB).
2004-08-12 Ludovic Marcotte <>
* Added code to set back the flags to messages
after a STORE operation. We also now post
a notification when the STORE operation has
2004-07-25 Ludovic Marcotte <>
* Enhanced the fetch and search IMAP code.
2004-07-23 Ujwal S. Setlur <>
* Fixed a freeze problem by correcting CFSocket
release method from free() from CFRelease()
in Service.
2004-07-20 Ujwal S. Setlur <>
* Fixed bug in NSRunLoop:-removeEvent.
2004-07-13 Ludovic Marcotte <>
* We include Constants.h in DNSManager.m so the
compilation won't fail on OS X.
2004-07-12 Ludovic Marcotte <>
* Added a small DNS cache manager to Pantomime.
It will eventually also offer async DNS resolutions.
For now, it only cache DNS values returned by
* Improved the code in IMAPStore that deals with
creating, deleting and renaming mailboxes.
2004-07-05 Ludovic Marcotte <>
* Added two new notifications/delegate methods:
- PantomimeFolderOpenCompleted/-folderOpenCompleted:
- PantomimeFolderOpenFailed/-folderOpenFailed:
in order to correctly and asynchronously handle
folder open operations.
* Added some range checks in Message:
(Private) -_computeBaseSubject.
* Enabled partial writes support in SSL for well
supporting progress indication.
2004-06-29 Ludovic Marcotte <>
* Modified Service.m to support adding more
runloop modes for network events.
2004-06-25 Ludovic Marcotte <>
* We now handle untagged responses after a folder
has been closed. Fixes a crash issue.
2004-06-15 Ludovic Marcotte <>
* Some documentation fixes.
2004-06-09 Ludovic Marcotte <>
* Modified the GNUmakefile and the README
wrt RedHat 9 / Fedore / RHEL and their
kerberos'ised OpenSSL packages.
* Rewrote the code in POP3Store: -updateRead
in order to handly errors properly and
be a little bit faster than before.
* Replaced the [_queue removeObject: [_queue lastObject]]
calls to [_queue removeLastObject].
2004-06-06 Ludovic Marcotte <>
* Removed some NSLog() calls.
2004-06-04 Ludovic Marcotte <>
* Documented Constants.h and improved the code
wrt those changes.
2004-06-03 Ludovic Marcotte <>
* Modified IMAPStore so that we now set a default
empty body to messages for which we have read
no literals.
2004-06-02 Ludovic Marcotte <>
* Fixed a bug in the handling of untagged responses
AFTER tagged responses. We were assuming that for
a FETCH untagged responses occuring after a tagged
FETCH response, a _currentQueueObject was present.
This occurs with the NetMail server.
* Updated the OS X project file wrt previous changes.
* Renamed LocalFolderCacheManager to LocalCacheManager
to match other CacheManager subclasses's name.
* Updated again the OS X project file.
* Removed Pantomime's SSL bundle. This code is no longer
used as the SSL code is directly integrated into
the framework (ie., no longer requires a bundle).
2004-05-31 Ludovic Marcotte <>
* Added CacheManager and refactored LocalFolderCacheManager,
POP3CacheManager and IMAPCacheManager to use the new
superclass which does most of the work.
* Documented io.h, URLName, CacheManager, LocalFolderCacheManager,
IMAPCacheManager and POP3CacheManager.
* Refactored a lot of code wrt the introduction of
the CacheManager class.
2004-05-29 Ludovic Marcotte <>
* Modified Service.m (the NSRunLoop's OS X extension)
so that we don't deal with callbacks methods if
the connection hasn't yet been established. This
can happen on OS X and lead to a crash.
* Modified Container: -childAtIndex: to be sure we
don't get past the end of the child list.
2004-05-25 Ludovic Marcotte <>
* Modified Service: _removeWatchers to correctly
invalidate the _socket ivar on OS X and also
remove the key/value from the fd_to_cfsocket
map table. This should fix quite a lot of bugs
in the new async I/O code on OS X. We also
free the _socket ivar.
2004-05-24 Ludovic Marcotte <>
* More documentation: MimeUtility, Part, Message,
MimeMultipart, IMAPFolder, POP3Folder, LocalFolder,
Store, LocalStore, LocalMessage, Container
and Charset
* Some refactorings, cleanups and optimizations.
* Removed Charset: -characterForCode: since it
was unused.
2004-05-23 Ludovic Marcotte <>
* More documentation: FolderInformation, MacOSXGlue,
UUFile, InternetAddress, MD5, NSFileManager+Extensions,
Connection, TCPConnection, Transport, SMTP, Service,
Sendmail, POP3Store, IMAPStore, IMAPMessage, POP3Message.
* Changed MD5: -initWithString: encoding: to simply
-initWithData: and modified the callers.
* Refactored the Sendmail class.
2004-05-18 Ludovic Marcotte <>
* Added TCPConnection: -isSSL so we can later know
if we are using or not a SSL connection.
2004-05-17 Ludovic Marcotte <>
* Fixed a small mem leak in Message: -dataValue.
The code to obtain "aCalendarDate" was incorrect.
Also did some tidyups.
* Documented more classes/categories in Pantomime. In particular,
NSString+Extensions, NSData+Extensions, CWRegEx, Parser and Flags.
* Fixed a potential bug in CWRegEx: -initWithPattern: flags:
in case an error was occuring.
2004-05-15 Ludovic Marcotte <>
* Modified MimeUtility: +encodeWordUsingQuotedPrintable:
prefixLength: to correctly fold line using quoted printable
by always adding a leading space, ignoring the fact if
one was there or not since it's actually part of the string,
so it must NOT be considered as a folded line indicator
(space or tab character).
2004-05-11 Ludovic Marcotte <>
* Added a missing #import in Folder.h so things
compile on OS X.
2004-05-10 Ludovic Marcotte <>
* Added a two range checks in NSString+Extensions:
* Modified the IMAP code to fetch the Content-Type
(and cache it) instead of the Mime-Version. This
should fix strange issues when the Content-Type
is folded on > 1 lines. This is still experimental
and could change back over time.
2004-05-08 Ludovic Marcotte <>
* Added more documentation to Folder.h
2004-05-03 Ludovic Marcotte <>
* Lots of cleanups and refactorings.
* Added support for non-ASCII passwords
in IMAP.
* Modified IMAPStore: -sendCommand::: so we
never send a command that is already in queue.
* Added a _selectedFolder ivar to IMAPStore and we
now make use of it. Also, the folders that are open
but not selected still get into the _openFolders ivar.
* Added Folder: -propertyForKey: and -setProperty: forKey:
so a developer can not set extra properties on Folder
objects, much like it's possible on Message objects.
* Modified LocalStore and IMAPStore to no longer return
nil when a folder is already open and we ask to open
it again. We rather send a reference to the open folder.
* Added more documentation to Folder.h
2004-04-23 Ludovic Marcotte <>
* Modified IMAPStore: -_parseOK to handle weird
SEARCH untagged responses from UW IMAPd.
2004-04-20 Ludovic Marcotte <>
* Improved the reading of the rest of FETCH
responses for funky responses Microsoft
Exchange can return.
* Lots of refactorings and more documentation.
2004-04-18 Ludovic Marcotte <>
* Finished all the big IMAP refactorisations
and did even more optimizations.
* We now correctly free the runloop source on
OS X and its context.
* Some refactorings in LocalFolder: -parse.
2004-04-15 Ludovic Marcotte <>
* Removed the TCPSSLConnection target from the OS X
project file and tested everything under OS X.
2004-04-14 Ludovic Marcotte <>
* Refactored a good amount of code so that the
SSL bundle is no longer used (will soon be removed).
This also allows us to have full non-blocking
SSL connect and handshaking (blocking call
but not code).
2004-04-10 Ludovic Marcotte <>
* Added a commands queue in the SMTP class. That
will ease the use of this class for some other
developers. Also refactored some code to move
the _queue ivar up to the Service class.
2004-04-08 Ludovic Marcotte <>
* Updated the OS X port, finally!
* Minor cleanups.
2004-03-30 Ludovic Marcotte <>
* Noticeable optimization in InternetAddress.
* Fixed the #include in io.h so it works under BSD.
2004-03-29 Ludovic Marcotte <>
* Added io.c/.h and moved some POSIX stuff there.
2004-03-26 Ludovic Marcotte <>
* Refactored and cleaned even more code. Moved
the mbox/maildir code in its own separate
categories. More cleanups are still to come.
* Added WHOIS to list contributors.
2004-03-25 Ludovic Marcotte <>
* Corrected a small issue in Pantomime.h. Bug reported
by Alexandre Carlhian <>.
* Renamed +generateBoundary to +globallyUniqueBoundary
and +generateOSID to +globallyUniqueID in
MimeUtility. Also refactored some code.
2004-03-24 Ludovic Marcotte <>
* Moved +allCharsets from MimeUtility to Charset.
* More refactorings and cleanups.
2004-03-23 Ludovic Marcotte <>
* More cleanups.
* Removed the UTF8 class which was useless.
2004-03-22 Ludovic Marcotte <>
* Continued the cleanups.
2004-03-21 Ludovic Marcotte <>
* Did a bunch of cleanups everywhere.
2004-03-17 Ludovic Marcotte <>
* Fixed a small memory leak in MimeUtility:
+plainTextContentFromPart:. "bytes" was
never freed properly.
2004-03-16 Ludovic Marcotte <>
* We now enforce the 0600 mode after writing the
message on disk in Sendmail.m
2004-03-14 Ludovic Marcotte <>
* Modified Folder: -thread to set an extra property
to each messages (its container). This is experimental.
* Modified Folder: -thread to use Map Tables instead of
NSMutableDictionary:s. This should speedup things.
* Removed the "visible" stuff from Container and also
the comparing category. Those are now useless.
* Added Folder: -unthread. That might change in a soon
future so don't rely on this.
2004-03-12 Ludovic Marcotte <>
* Refactored some code in Flags and added the support
to write the Flagged flag to the mbox file when
expunging a local mailbox.
* Many small refactorings and small optimizations.
2004-03-11 Ludovic Marcotte <>
* Modified IMAPStore to correctly update the cache
files for \Flagged message flag updates when
opening a mailbox.
2004-03-10 Ludovic Marcotte <>
* Modified IMAPCache: -_parseEXPUNGE to no longer
synchronize the IMAP cache. Left the code there
if that causes any problems (but it should
definitively not and should greatly improve
the performance of expunging IMAP mailboxes!).
2004-03-08 Ludovic Marcotte <>
* Lots of cleanups and refactorings.
* More cleanups, wrt the URLName class.
* Added some code in MimeUtility: -decodeHeader...
to detect the ISO-2022-JP announcer sequence in order
to correctly decode that 7-bit encoding format.
* Set the version number on OS X to 1.2.0.
2004-03-07 Ludovic Marcotte <>
* Modified InternetAddress to NOT use NSString: -cString
but rather -UTF8String (and -stringWithUTF8String).
Also refactored all the code in this class.
* Started to cleanup the "local" mbox/maildir code.
* Refactored IMAPCacheManager and greatly optimized it.
2004-03-05 Ludovic Marcotte <>
* Fixed an IMAP bug. With some servers (like UW IMAP),
we get the FLAGS update as an other untagged
response instead of getting them in the same
untagged FETCH response.
* Did some cleanups and refactorings in the IMAP code.
* Small POP3 optimizations.
2004-03-04 Ludovic Marcotte <>
* Did some minor refactorings.
* We now post a notification when the FETCH RFC822
completed in IMAP.
2004-03-02 Ludovic Marcotte <>
* Modified Service: -updateRead so that we read
until we are done.
2004-03-01 Ludovic Marcotte <>
* Replaced random() by rand() in MimeUtility since
random() isn't available on MinGW. That increases
the portability.
* Moved +fileFromUUEncodedString and
+rangeOfUUEncodedStringFromString: range:
from MimeUtility to UUFile (and all the related
* Moved MimeUtility: +isASCIIString: to
NSString+Extensions: -is7bitSafe.
* Reworked a little bit NSString+Extensions:
-stringByTrimmingWhiteSpaces in order to avoid
a method call under GNUstep. This will slightly
optimize things on GNUstep.
* Fixed a bug in IMAPStore: is_stub() that would lead
to memory corruption and unpredictable results (would
return 1 when it should have returned 0).
2004-02-27 Ludovic Marcotte <>
* Optimized MimeUtility: -allCharsets
* Cleaned up UUFile.
* We now post a notification when the
message's data was fully prefetched.
2004-02-24 Ludovic Marcotte <>
* Commented out the NSLog() calls in POP3Store
and IMAPStore.
* Bumped up the version number to 1.2.0.
* Commented out NSLog() calls in IMAPFolder.m
2004-02-22 Ludovic Marcotte <>
* Modified IMAPStore and LocalStore to bring back support
for creating/deleting/renaming mailboxes. Work needs
to be done wrt error handling.
* Also cleaned and optimized IMAPStore some more.
* Modified Service: -updateWrite: to correctly reenable
the write callback on OS X.
2004-02-20 Ludovic Marcotte <>
* Improved the parsing of FETCH responses. We can
now parse the rest of the response (ie., the
bytes following the bytes that are considered
part of the literal value).
* Modified IMAPStore: _parseSTATUS so that we
correctly react in case STATUS failed on
a mailbox.
* Corrected a small issue wrt previous commit.
* Did some cleanups in IMAPStore.m
2004-02-18 Ludovic Marcotte <>
* Updated the code to parse deprecated 8bit values
when issuing a LIST/LSUB command.
2004-02-17 Ludovic Marcotte <>
* Fixed a small bug in the SMTP code wrt the
previous commit.
* We correctly set the _connected flag to NO
in Service: -_removeWatchers.
* Updated the TODO
2004-02-16 Ludovic Marcotte <>
* Did more cleanups to the IMAPStore class.
* Added the code for fully support connecting to
services in background for regular TCP connections.
That will NOT work right now for SSL connection.
2004-02-15 Ludovic Marcotte <>
* Updated the OS X project file to add the new
NSFileManager+Extensions files.
* Moved the initialization of the map table in Service.m
to a safer place.
* Fixed an IMAP flags update bug.
* Cleaned the new IMAP code.
* Moved and renamed some declarations of "constants"
from LocalStore.h to Constants.h
2004-02-14 Ludovic Marcotte <>
* Added NSFileManager+Extensions.{h,m} and refactored
a lot of code.
* Changed the BIG_ENDIAN check in MD5.m to be:
#if defined BIG_ENDIAN || MACOSX
* Cleaned the POP3 code.
2004-02-13 Ludovic Marcotte <>
* Implemented more missing functionnalities in the
new IMAP code (create, rename, delete mailboxes,
LOGIN/CRAM-MD5 authentication support and more).
* LOTS of other improvements!
2004-02-12 Ludovic Marcotte <>
* General improvements to the SSL bundle. It's now
using non-blocking I/O and the new I/O code should
also fully work under OS X!
* Fixed a bunch of small issues in the new IMAP code.
2004-02-11 Ludovic Marcotte <>
* Same as yesterday :)
2004-02-10 Ludovic Marcotte <>
* Again, LOTS of improvements on top of the
previous commit.
2004-02-09 Ludovic Marcotte <>
* Massively modified the IMAP code to use non-blocking
* LOTS of improvements on top of the previous commit.
2004-02-08 Ludovic Marcotte <>
* Added CWRegEx.{h,m} and Service.m to the OS X project file.
Also removed NSRegEx.{h,m} from the OS X project file.
* Updated the OS X port wrt all changes made in the
last weeks. It does NOT work right now, it just compiles.
2004-02-07 Ludovic Marcotte <>
* Reworded some things in the SMTP class so we no
longer use the word "bounce" but rather "redirect"
to avoid any confusion.
* Minor cleanups and enhancements to the SSL bundle.
There's still a strange segfault in openssl when
using it with non-blocking I/O (still disabled...)
* Some cleanups in LocalStore.h
* Added a workaround for a lame bug in Eudora which
sometimes sends mails using "0" as the charset. We
now treat that as ISO-8859-1.
2004-02-05 Ludovic Marcotte <>
* Added Service: -cancelRequest so we are now able
to immediately "stop" a running request. This is
initial support and will shortly evolve.
2004-02-02 Ludovic Marcotte <>
* Removed #define CRLF / LF from Constants.h and Messages.m and
added the LF #define in Part.m and Message.m
* Removed the boolean return value for the methods in the
Transport protocol.
* Moved the BCC/CC/TO/RESENT-* defines from InternetAddress.h
to Constants.h (in an enum {}). Updated all the code wrt this.
* Added Service.m (and moved this protocol to a real
* Added some methods to the Transport protocol.
* Made TCPSSLConnection a subclass of TCPConnection and cleaned
up both classes A LOT.
* Converted the SMTP and POP3 code to use the new Service
class and use the new non-blocking I/O scheme.
2004-01-19 Ludovic Marcotte <>
* Renamed NSRegEx to CWRegEx. The OS X project file needs to
be updated.
2004-01-18 Ludovic Marcotte <>
* Added NSString+Extensions:
and: -stringByDeletingFirstPathSeparator:
* Modified LocalStore and IMAPStore: -renameFolderWithName:
toName: so it uses the -stringByDeletingFirstPathSeparator:
to cleanup potentially invalid paths and to return an error
in case theName or theNewName are either nil or have a length
of 0.
2004-01-11 Ludovic Marcotte <>
* Reworked the flags in Pantomime (moved the defines to
an enum) and did the same for nearly all other #define:s.
* Updated all the code wrt the changes in Constants.h.
2004-01-02 Ludovic Marcotte <>
* Bumped up the OS X version number to 1.1.3.
Also modified Constants.h wrt this.
* Removed the NSDebugLog macro definition from MacOSXGlue.h
and removed ALL calls to NSDebugLog.
* Reactivated pch support in the OS X project file, removed
-I/sw/... and -DBIG_ENDIAN.
2004-01-01 Ludovic Marcotte <>
* Added support for renaming open local/IMAP mailboxes.
Also made a bunch of other small modifications.
2003-12-30 Ludovic Marcotte <>
* Added new capabilites in the Message's replying code.
You can now do "simple" replies (ie., w/o a content)
or normal replies by combining a reply all or not option.
* Added Constants.m and cleaned its header.
* Added a new class: VirtualFolder which implements the
idea of a virtual folder. It's not yet finished but the
innards are there.
* Updated the OS X project file wrt the previous changes.
2003-12-26 Ludovic Marcotte <>
* Added an improvement in the IMAP parsing code (_parseFetch:)
so it works better with lame servers like Exchange.
* Set the CVS tag to v1_1_2
2003-12-21 Ludovic Marcotte <>
* Added Folder: -setFlags: messages: and implemented a
version in IMAPFolder to optimize deletion of messages.
Modified IMAPMessage: -setFlags: to use that new method.
2003-12-13 Ludovic Marcotte <>
* We now correctly decode/encode the Organization header
using quoted-printable.
2003-12-07 Ludovic Marcotte <>
* Removed Testing/*. The tests were old and broken and
the small test framework should be replaced by a real
framework, like OCUnit.
* Modified the GNUmakefile.postamble file to remove
the references to the Testing directory.
2003-12-06 Ludovic Marcotte <>
* Added some notes (in the README) to properly compile and
install Pantomime on RedHat 9 / Fedora.
2003-11-30 Ludovic Marcotte <>
* Permuted the RETAIN/RELEASE calls in Message: -setFlags:.
Bug reported by Alexandre Carlhian <>.
2003-11-29 Ludovic Marcotte <>
* Fixed a bug in Parser: +_parameterValueUsingLine: range:.
2003-11-26 Ludovic Marcotte <>
* Finally commited a fix for the reply bork when a attachment
is put between to text/plain parts in a multipart/mixed
message (only the first part was used in the reply).
2003-11-08 Ludovic Marcotte <>
* Modified MimeUtility to add support on OS X for
Hebrew, Arabic, BalticRim and Vietnamese encodings
using the CoreFoundation.
2003-10-15 Ludovic Marcotte <>
* Fixed a small bug in my previous commit on 2003-10-08.
2003-10-13 Ludovic Marcotte <>
* Fixed a small issue in POP3Folder: -lengthOfMessageAtIndex:
Bug reported by Alexandre Carlhian <>.
* Modified NSData+Extensions: -dataFromQuotedData to be sure
that our initial data length has length of at least 2 (since
if we had only '"' we would get an range exception).
2003-10-12 Ludovic Marcotte <>
* Modified MimeUtility: -stringEncodingForPart: so that
if we get _at best_ NSASCIIStringEncoding from the
part, we use NSISOLatin1StringEncoding instead in order
to give us more success when decoding things.
2003-10-11 Ludovic Marcotte <>
* Added POP3Folder: -prefetchMessageAtIndex: numberOfLines: and
added a small cache for the message sizes.
2003-10-10 Ludovic Marcotte <>
* Renamed -authenticateWithUsername: ... to
-authenticate: password: mechanism: and implemented in
the SMTP, POP3Store and IMAPStore classes.
* Added -supportedMechanisms to the Service protocol and
implemented in all the classes above.
* Removed POP3Store: -setUseAPOP: / -useAPOP and -setTimestamp:
* Added LOGIN and CRAM-MD5 SASL authentication mechanisms support
in the IMAP code.
* Added -DBIG_ENDIAN to the list of compiler flags on OS X so that
the CRAM-MD5 code works.
* Updated the OS X project to set the version number to 1.1.2.
2003-10-08 Ludovic Marcotte <>
* Moved -isConnected from Connection to Store. Implemented
in IMAPStore and provided a dumb implementations for LocalStore
and POP3Store. Refactored all the code to use the Store's method
instead of the TCPConnection's implementation. Much of the code
in GNUMail will have to be retested wrt the handling of being
disconnected from the IMAP server.
* Added a hack so things work well with header prefetching when we
are using a Novell IMAP server (which is utterly broken).
* Added and implemented IMAPStore: -capabilities to return an array
of the server's capabilities (result of the CAPABILITY command).
2003-10-05 Ludovic Marcotte <>
* Added a "contents" parameter to Store: -createFolderWithName: type:
so we are now able to create a folder with an initial content.
Implemented in all Store subclasses but the only implementation
that works right now is the LocalStore one using the standard
mailbox format (maildir won't work).
* Bumped version number to 1.1.2 in Constants.h
2003-09-28 Ludovic Marcotte <>
* Updated the README for the release.
* Set the CVS tag to v1_1_1
2003-09-21 Ludovic Marcotte <>
* Moved Message (Private): _-plainTextContentFromPart:
to MimeUtility: +plainTextContentFromPart:.
* Enhanced (and simplified) the code in Message: -forward
to strip the html content of text/html part when forwarding
an email.
2003-09-18 Ludovic Marcotte <>
* Modified MimeUtility: +stringFromCharset: so that
under GNUstep, we define utf-7 and unicode-1-1-utf-7
to use NSUTF7StringEncoding. The latter is to prevent
a bug (sort of) in MS Hotmail.
2003-09-12 Ludovic Marcotte <>
* Bumped up the version number to 1.1.1.
* Same thing in OS X project file.
2003-09-06 Ludovic Marcotte <>
* Removed a bunch of variable declarations in elm_defs.h
(#if 0'ed them all). This was causing problems under OS X
when -DMACOSX wasn't added to the compiler flags (we don't
need them anyway so let's get rid of them).
2003-09-01 Ludovic Marcotte <>
* Added support for read-only IMAP folders. More work needs to be
done wrt this. Added Folder: -mode (and an ivar) and implemented
this method in subclasses. Refactored IMAPStore so it's cleaner.
* Modified Part: -initWithCoder: to remove support for older version
(we now support only version 2).
2003-08-31 Ludovic Marcotte <>
* Added an excellent patch from Ken Ferry <>
to support the concept of "base subject" as described
The subject sorting code is now based on this concept.
* Modified the message threading code to use the new -baseSubject
accessor (for performing MT and for sorting containers).
* Removed NSString+Extensions: -stringByRemovingRE
* Modified Message: -initWithCoder: to remove support for the version 1
of the cache.
2003-08-22 Ludovic Marcotte <>
* Modified Message: -initWithData: to return nil if the call
to Part: -initWithData failed.
* Modified MimeUtility: +setContentFromRawSource: inPart:
to verify if the message/rfc822 is base64 encoded and if it is,
we decode it properly (and we also replace \r\n by \n if the MUA
sent that over.
2003-08-21 Ludovic Marcotte <>
* Modified IMAPStore: -authenticateWithUsername: password:
so we verify if the password has any whitespaces in it.
If so, we also quote it properly. Bug reported by
Aredridel <>.
2003-08-19 Ludovic Marcotte <>
* Set the CVS tag to v1_1_0
2003-08-12 Ludovic Marcotte <>
* Added a Version file and set the version to 1.1.0 in it.
* Modified Part: -dataValue to NOT unwrap the text before
wrapping it since it's not in format=flowed format.
* Modified an #include to avoid a warning under GNUstep with
the new header structure.
2003-08-03 Ludovic Marcotte <>
* Modified IMAPFolder: -close to not send the IMAP "CLOSE" command
if we're not longer connected to the IMAP server.
2003-08-01 Ludovic Marcotte <>
* Fixed a bug in MimeUtility: -encodeWordUsingQuotedPrintable: prefixLength:
so that we don't pre-append a space to our folded header if we already
have one.
2003-07-27 Ludovic Marcotte <>
* Removed unused code in Folder: -appendMessageFromRawSource: flags:
* "Fixed" the same method (and others) in LocalFolder (indentation and stuff)
* Modified Folder: -removeMessage: to thread messages if we removed
a message directly from the Folder's instance (happens in IMAPStore).
2003-07-23 Ludovic Marcotte <>
* Modified MimeUtility: -stringWithData: charset: to be sure
we always use the ASCII string of theCharset when using
2003-07-22 Ludovic Marcotte <>
* Minor cleanups and very tiny mem leak fixes.
2003-07-10 Ludovic Marcotte <>
* Added the complete list of supported mailbox flags in Constants.h
* Modified the code to use them instead of HOLDS_FOLDERS/HOLDS_MESSAGES
* Finished the implementation of IMAPStore: -_parseList:
2003-07-02 Ludovic Marcotte <>
* Modified IMAPStore: _parseExists: to NOT assume we got a valid
folder since we might get this untagged response even if a folder
is not SELECTed. This should fix the obscure segfault that could
happen in IMAP with more than one IMAP account.
* Modified POP3Store: -close to not attempt to close the connection
if it's already closed.
* Modified IMAPCacheManager: -synchronize to handle GNUstep -base exceptions
that could occur when writing the cache to the disk if it contains
non-latin1 characters.
2003-07-01 Ludovic Marcotte <>
* Removed NSString+Extensions: -stringByRemovingLineFeedCharacters.
Added -stringFromModifiedUTF7 and -modifiedUTF7String.
Modified the IMAP code to use those two new methods.
This new code will do _nothing_ on OS X as CF/NSString don't
provide support for UTF-7. Under GNUstep, you need the latest
CVS version of base (2003-07-01) if you want things to work
properly (since UTF-7 support in GNUstep -base was heavily
broken before today).
2003-06-29 Ujwal S. Sathyam <>
* Rewrote maildir expunge and cache rebuild code based on maildir spec
with flag information embedded in mail file name.
2003-06-27 Ludovic Marcotte <>
* Modified MimeUtility: -encodeWordUsingQuotedPrintable: prefixLength:
to fix the annoying bug where the subject would get repeated twice
if it was exceeding 75 chars.
2003-06-26 Ludovic Marcotte <>
* Modified IMAPFolder: -prefetch to use "UID FETCH %d:* (UID..."
(we include UID in the FETCH command) since Microsoft Exchange
doesn't return it if we don't ask for it.
2003-06-25 Ludovic Marcotte <>
* Applied a patch from Andreas Heppel to fix var declarations
for gcc < 3.0.
* Added NSString+Extensions: -stringByReplacingOccurrencesOfString:
* Renamed RAW -> Raw (or raw) in the code.
2003-06-24 Ujwal S. Sathyam <>
* When a MAILDIR folder is expunged, the undeleted messages
are re-writtenwith the latest flag information. This is so that
if the cache file is dirty and needs to be rebuilt, the flag
information can be restored. One concern is performace since this
can involve a lot of I/O for a large number of messages.
2003-06-24 Ludovic Marcotte <>
* Modified IMAPStore: -renameFolderWithName: toName: to not issue
other IMAP commands if we are no longer connected to the IMAP st
* Same thing for IMAPStore: -deleteFolderWithName:
* Same thing for IMAPStore: -createFolderWithName: type:
2003-06-23 Ludovic Marcotte <>
* Modified Message.h so that our rawSource ivar is a protected one.
Also modified IMAPMessage: -rawSource to return the ivar directly
instead of [super rawSource] to prevent a crash if the connection
was lost to the IMAP server just after issueing the UID FETCH RFC822.
* Updated Testing/Client so it compiles.
* Modified IMAPMessage: -setInitialized: to NOT issue the 2nd IMAP
command if we're no longer connected to the IMAP store.
2003-06-22 Ludovic Marcotte <>
* Modified MimeUtility: -setContentFromRawSource: inPart: to treat
"unsupported Content-Type:s" as a discrete type.
* Modified LocalFolder: -_expungeMBOX to merge the message flags (using
Pine's format) to the local mbox. Also modified Flags: -addFlagsFromData:
to NOT remove the SEEN flag if we don't see "R".
2003-06-20 Ludovic Marcotte <>
* Modified IMAPFolder: -close to NOT do a CLOSE if we
are showing deleted messages.
2003-06-18 Ludovic Marcotte <>
* Did some cleanups in the MimeUtility class.
2003-06-17 Ludovic Marcotte <>
* Moved IMAPStore (Private): -_replaceCRLFInMutableData to
NSData+Extensions: -replaceCRLFWithLF.
* Moved SMTP (Private): -replaceLFInMutableData to
NSData+Extensions: -replaceLFWithCRLF.
2003-06-16 Ludovic Marcotte <>
* Modified IMAPMessage: -setFlags to call [super setFlags:], to
use STORE -FLAGS if we are removing all flags and to use
.SILENT in order to NOT generate an extra IMAP response. This
should make things a little bit faster.
2003-06-15 Ludovic Marcotte <>
* Renamed SMTP: -_readResponsesFromServer to -_parseServerOutput (like IMAP).
* Refactored IMAPStore: -_parseFlags.
* Modified IMAPFolder: -expunge: to NOT send the "UID FETCH %d:* UID" command
as I have modified IMAPStore: -_parseExpunge: to automatically decrement MSN
of messages when we get an * xyz EXPUNGE response.
* Modified the TCPConnection code (and its SSL implementation) to automatically
increase the buffer size when reading responses from the server. Also fixed
a memory leak in -readDataToEndOfLine.
* Some clean ups in IMAPStore.
* Added delegate methods in IMAPStore and we now call them in _sendCommand:
if messages were expunged of if messages flags have changed. This allows
Pantomime to support concurrent accesses to an IMAP folder with other
2003-06-13 Ludovic Marcotte <>
* Modified IMAPCacheManager to correctly add/remove the entries
in our hash when adding/removing messages from the cache.
* Modifed IMAPFolder: -_updateMessagesFromUID: toUID: to correctly
set the MSN of message we _keep_ in the cache when synchronizing
our cache with the IMAP server.
2003-06-12 Ludovic Marcotte <>
* Reworked the code related to a "dirty IMAP cache". It's now
handled _correctly_ and it's way faster than before. This should
fix all "remaining bugs" in the new IMAP code.
2003-06-10 Ludovic Marcotte <>
* Reworked the IMAP EXPUNGE code so it's more efficient
and can now expect expunge responses from the server
even it if hasn't expunge mails (ie., an other client did).
Also improved the fetch of MSN:s after an EXPUNGE so we
don't fetch all of them, but only from the UID of the message
of the lowest MSN that was deleted.
* Added IMAPStore: -_parseExits: to record if new messages were
received instead of using -_parseRecent:.
2003-06-09 Ludovic Marcotte <>
* Fixed IMAPStore: -_parseFlags: since Seen and Recent
can be set at the same time. I misinterpreted that in
the RFC3501. The POP3 code will also have to be modified
and also GNUMail.
* Fixed all issues wrt the RECENT/SEEN flags. You MUST also
* Modified IMAPStore to not declare a static selector but rather
use a define since it fails with Apple's gcc.
* Moved Folder's allMessages ivar to be a public one. This is
need to know the read folder's count and also to directly
index messages in the folder (ie., from IMAP store). Also
modified IMAP store to use the ivar directly. This fix the
bug when we were hiding deleted messages and deleting messages
on the server.
2003-06-08 Ludovic Marcotte <>
* Removed IMAPFolder: -checkForBYE...
* Removed the PantomimeLostConnectionException constant.
* IMAPStore should now handle gracefully server's BYE responses.
2003-06-07 Ludovic Marcotte <>
* Added the brand new IMAP code. This code has NOT been tested extensively
but just quite well by me (since I use it). Please try it and report
me any issue. More goodies will be added soon.
* Fixed an #include warning.
* More refactorings and fixed a recursivity bug.
* Modified Message: -replyWithReplyToAll: to make use of -hasREPrefix
2003-06-06 Ludovic Marcotte <>
* Added other great improvements in IMAPStore. This class is now
completely cleaned of the old code.
* Removed -checkForBYE.. in IMAPStore (moved temporarely in IMAPFolder)
* Fixed a small bug in IMAPStore: -folderEnumerator.
* Added -_parseRecent: and also modified to code to be "notified"
that new messages have arrived.
2003-06-05 Ludovic Marcotte <>
* Started the IMAP rewrite. Those who want stability shouldn't use
the CVS version for a couple of days. It should work well, but
expect bugs. Lots of debug info might appear on the console and
that's normal for now.
The new code is definitively smaller and faster than before.
* Rewrote IMAPStore: -folderStatus and added -_parseStatus:
2003-06-04 Ludovic Marcotte <>
* Added Folder: -cacheManager/setCacheManager: and removed all
-{imap,local,pop3}CacheManager and -set{IMAP,Local,POP3}CacheManager
methods. Refactored the code to use the new parent's method.
2003-06-01 Ludovic Marcotte <>
* Refactored A LOT the SMTP code. It's now way more efficient and
also added the support to obtain the last message or code received
from the server.
2003-05-31 Ludovic Marcotte <>
* Modified the GNUmakefile so we link with libucb under Solaris.
2003-05-25 Ludovic Marcotte <>
* Added POP3Folder: -size and refactored -count into -_stat.
Feature request by Arthur VIGAN <>.
2003-05-23 Ludovic Marcotte <>
* Modified IMAPStore: -folderStatus to NOT call STATUS on the
selected folder. This has been added in the RFC3501.
2003-05-16 Ludovic Marcotte <>
* Modified Parser so that we don't assume we got a space
separating the Subject/Content-Type/Content-Transfer-Encoding
headers and their respective values. That sometimes happens
with (surprised?) malformatted spam.
2003-05-14 Ludovic Marcotte <>
* Modified Message: -replyWithReplyToAll: to trim whitespaces
from the subject before verifying for re:.
2003-05-12 Ludovic Marcotte <>
* Optimized POP3Folder: -UIDOfMessageAtIndex:. It should make
a _huge_ difference for those who leaves their messages on the
POP3 server and have a lot of them and also improves quite nicely
the downloading speed of messages.
2003-05-07 Ludovic Marcotte <>
* Added IMAPFolder: -copyMessages: toFolder:
2003-05-05 Ludovic Marcotte <>
* Updated Message: -dataValue (the code to obtain the locale) wrt
the recent changes in GNUstep's directory layout.
2003-04-27 Ludovic Marcotte <>
* Optimized Parser: +_parameterValueUsingLine: range:
* Modified Parser: +parseContentDisposition: inPart: to use
_parameterValue... for parsing the filename parameter.
2003-04-26 Ludovic Marcotte <>
* Set the OS X's version number to 1.1.0.
* Fixed an index out of bounds error in Message: -replyWithReplyToAll:
We were using the wrong local variables.
2003-04-23 Ludovic Marcotte <>
* Modified Headers/Pantomime/elm_lib.h to comment out
mkdir() since it causes problems under Solaris 2.8.
Problem reported by Mario Antonio <>
* Set the version number in Constants.h to 1.1.0.
2003-04-21 Ludovic Marcotte <>
* Modified the OS X project file to not generate debug symbols
for the TCPSSLConnection target.
* Set the CVS tag to v1_1_0pre2
2003-04-18 Ludovic Marcotte <>
* Modified the OS X project file to no longer "link"
with Fink's version of OpenSSL.
* Modified SMTP, POP3Store and IMAPStore to allow the
TCPSSLConnection bundle to be load from the app's
plug-in path under OS X. This allows developers to include
Pantomime's SSL bundle in their own app's dmg.
2003-04-16 Ludovic Marcotte <>
* Trivial optimizations in MimeUtility: -isASCIIString:
* Modified MimeUtility: +allCharsets to add gb2312 under
GNUstep and added an optimization.
* Modified IMAPFolder: -_messageNumberFromUID to correctly
read the untagged responses.
* Added a temporary method (-_readStringSkippingUntaggedResponses)
to IMAPFolder and modified the code to use it. After 1.1.0pre2 is
released, untagged responses will be much better handled by
introducing a new way to read all server responses, expecting
any kind of untagged responses at any time. This temporary method
is just there so the rest of the code can work properly under Cyrus.
2003-04-15 Ludovic Marcotte <>
* Modified IMAPMessage: -setFlags to use IMAPFolder(Private):
* Modified SMTP (Private): -_decodeSupportedAuthenticationMechanismFromString:
so that we try to declde the supported mechanisms even if we already have
some in our array since some servers return the supported mechanisms
(and different ones) on more than one line.
* Cleaned the includes in Sendmail.m
2003-04-14 Ujwal S. Sathyam <>
* Minor bugfix to parsing maildir folder.
2003-04-12 Ujwal S. Sathyam <>
* Fixed an include problem in Sendmail.m that broke
build on OS X.
2003-04-12 Ludovic Marcotte <>
* Fixed a header include regarding the changes in GNUstep -base
2003-04-11 Ludovic Marcotte <>
* Modified IMAPMessage: -setFlags to correctly set flags
on the message (for read/unread messages).
2003-04-08 Ludovic Marcotte <>
* Modified IMAPStore: -folderStatus to properly unquote
the folder name before adding it to our dictionary.
* Modified Sendmail: -sendMessageFromRawSource: to no longer use
a pipe since it can get filled up pretty quickly and block the
2003-04-03 Ludovic Marcotte <>
* Modified NSString+Extensions: -stringByTrimmingWhiteSpaces to
use CF's CFStringTrimWhitespace() function in order to simplify
the code and hopefully enhance performance a little bit.
* Modified NSString+Extensions: -stringFromQuotedString: to cache
the length of the string in order to speed up things.
2003-04-02 Ludovic Marcotte <>
* Renamed NSDataExtensions to NSData+Extensions
* Renamed NSStringExtensions to NSString+Extensions
* Modified NSString+Extensions: -indexOfCharacter to cache the length
of the string.
* Updated the OS X project file
2003-03-25 Ludovic Marcotte <>
* Added -Wno-import to the GNUmakefile:s
2003-03-22 Ludovic Marcotte <>
* Minor fixes/cleanups in the Part and Message classes.
2003-03-17 Ludovic Marcotte <>
* Fixed a bug in IMAPStore: -folderStatus. We weren't comparing
correctly the response with BAD/NO (we were ignore the tag).
2003-03-16 Ludovic Marcotte <>
* Fixed the OS X project file. Added back the @executable_path/../Frameworks
installation location. Otherwise, the Pantomime.framework would be
linked to an absolute path.
* Added a .cvsignore file to the root folder of Pantomime
2003-03-14 Ujwal S. Sathyam <>
* Extended InternetAddress class to help in scripting.
2003-03-13 Ludovic Marcotte <>
* Modified LocalStore: -renameFolderWithName: toName: so that
we verify if theNewName already exists before renaming the folder.
If it does, we abort the operation in order to not overwrite the
2003-03-10 Ujwal S. Sathyam <>
* Fixed Installation setting in PB file that was fail to build.
2003-03-09 Ludovic Marcotte <>
* Added iso-8859-11 and gb2312 encodings support using GNUstep
additions of iconv.
2003-03-02 Ludovic Marcotte <>
* Added MimeUtility: -stringEncodingForPart and refactored
Message (Private): _plainTextContentFromPart: to use it.
* Fixed the version number on OS X (from 1.0.4 to 1.0.99)
2003-02-13 Ludovic Marcotte <>
* Modified POP3Folder to cache the value -count returns.
2003-02-11 Ludovic Marcotte <>
* Optimized MimeUtility: +stringWithData: charset: so
we don't copy the bytes from iconv's output but
we rather use them directly and let our NSData
object free them when done.
2003-02-09 Ludovic Marcotte <>
* Refactored TCPConnection and TCPSSLConnection to have a cleaner
* Modified POP3Folder: -prefetchMessageAtIndex: to NOT use
an NSString object. This makes things way faster when transferring
large mails using POP3 and is way more safe when getting mails using
rare encodings (like TIS-620).
2003-02-07 Ludovic Marcotte <>
* Renamed Flags: -addFlagsFromString to -addFlagsFromData and
modified Parser to use the new method. This should make things
a little bit faster. Also removed -initWithString.
2003-02-05 Ludovic Marcotte <>
* Modified MimeUtility: +stringEncodingForCharset to
add "cyrillic (windows-1251)" (mapped to NSWindowsCP1251StringEncoding)
to prevent a lame bug in MS's Hotmail encoding code.
2003-02-01 Ludovic Marcotte <>
* Modified MimeUtility: +decodeHeader to add a charset parameter
so that if defaultCharset is defined in Part, we use that
to force the charset used to decode some headers. Modified
Parser to use the new method.
* Rewrote the local mailbox caching code. It's now faster and
takes way less memory.
2003-01-31 Ludovic Marcotte <>
* Modified LocalMessage: -setInitialized to set it to NO
if we failed to open our file when using maildir.
2003-01-30 Ludovic Marcotte <>
* Fixed a broken #include in Pantomime.h
* Now include stdlib.h in Message.m
Bugs reported by David Sinclair <>.
* Guarded elm_defs.h, elm_lib.h and parseaddrs.h
against multiple inclusions.
2003-01-28 Ludovic Marcotte <>
* Modified Message.m to correctly free the buffer returned
by striphtml() (since it was malloc'ed but never actually
free'ed). Patch from Stefan Urbanek <>.
2003-01-27 Ludovic Marcotte <>
* Modified Bundles/SSL/GNUmakefile to include
2003-01-24 Ujwal S. Sathyam <>
* Fixed a bug in LocalStore where the folder tree was
not being rebuilt after deleting a folder (not mbox
or maildir).
2003-01-20 Ludovic Marcotte <>
* Updated the version number to 1.0.99
2003-01-13 Ludovic Marcotte <>
* Updated the README (in preparation for the 1.1.0pre1 release).
* Tagged the cvs to v1_1_0pre1.
* RELEASE VERSION 1.1.0pre1.
2003-01-08 Ludovic Marcotte <>
* Modified Message: -dataValue so that if the user set
its timezone in GNUstep's defaults, we try to use that
first (before going back to the default tzset() function).
2003-01-06 Ludovic Marcotte <>
* Added a missing import in POP3Folder.h
2003-01-05 Ludovic Marcotte <>
* Modified POP3Folder to add a small UID cache so that
we don't ask again and again the UID of a message at
index X but we rather try to first get it from our cache.
2003-01-04 Ludovic Marcotte <>
* Set the encoding to Mac OS roman in the OS X project file
* Removed IMAPFolder: -deleteMessageWithUID,
-setMessageFlags: forUID: and -removeMessage.
* Re-implemented -setFlags: in IMAPMessage so that we send
the flags immediately to the IMAP server.
* Removed the flag TRANSFERRED and modified all the code
that was using it. We will now consider those messages
* Removed Folder: -numberOfTransferredMessages.
2003-01-02 Ludovic Marcotte <>
* Added versioning support to the LocalMessage class.
When maildir support was added to Pantomime, versioning hasn't
been added to the LocalMessage class. That cause problems since
between 1.0.5 and 1.0.98 (1.1.0 pre1), in the cvs version, no
versionning was there and the format changed. We now invalidate
all caches with a version number different from 1.
* Set the version to 1.0.98 (1.1.0 pre1) in Constants.h.
2002-12-29 Ludovic Marcotte <>
* Refactored POP3Folder: -prefetchMessageAtIndex: so that
we no longer deal with the POP3CacheManager but a Pantomime
client (like will.
2002-12-28 Ludovic Marcotte <>
* Removed all the SEND_ constants and renamed Part: -dataUsingSendingMode
to -dataValue. Refactored to code in Part and in Message (that
implements this method) and also refactored all classes using
the old method. Modified SMTP.m so that we replaced \n by \r\n when
sending the mail.
* Done TODO #101: Changed Message; -setExtraProperty: forKey: to
-setProperty: forKey.
2002-12-20 Ujwal S. Sathyam <>
* Fixed bug where localFolderCacheManager was not
being synced up after a MAILDIR expunge.
2002-12-17 Ludovic Marcotte <>
* Modified the implementation of Store: -openedFoldersEnumerator
in all Store classes (and the code depending on the previous
implementation) to return the enumeration of the opened folders
instead of just their names.
2002-12-16 Ludovic Marcotte <>
* Added IMAPStore: -noop.
* Modified IMAPStore: -folderForName: select: to return the
opened folder (from openedFolders) if asked for.
2002-12-15 Ludovic Marcotte <>
* Modified all the IMAP code to handle disconnections by the
server. Also refactored some parts and fixed two mem leaks.
* Added SMTP: -reset to reset the state of a SMTP session.
2002-12-14 Ludovic Marcotte <>
* Added the Cc header to the list of prefetched headers in IMAP.
* Modified IMAPCacheManager to invalidate all caches with
version < 2.
2002-12-09 Ludovic Marcotte <>
* Modified IMAPCacheManager -initWithCoder to correctly invalidate
all caches with version < 2.
* Modified IMAPFolder to remove the "Content-Type" header from the
list of automatically fetched headers when caching everything.
* Modified MimeUtility: +charsetForString so that if we haven't
found a charset using our 'tables of charsets', before returning
UTF-8, we at least try to convert our string to some encodings
(for now, only NSISO2022JPStringEncoding). Path from
Tomio Arisaka <>
2002-12-08 Ludovic Marcotte <>
* Added MimeUtility: +stringFromRecipients: type:
* Entirely rewrote the implementation of all 'search' functions
in IMAPFolder, LocalFolder and POP3Folder.
2002-12-07 Ludovic Marcotte <>
* Nearly entirely rewritten IMAP support. More changes are coming
but a lot is already in there.
* We now correctly update all MSNs after an expunge in IMAP.
2002-12-05 Ludovic Marcotte <>
* Modified MimeUtility: +stringWithData: charset: so that if we aren't
using Mac OS X, we treat ks_c_5601-1987 encoding as euc-kr.
* Rewrote Sendmail: -sendMessageFromRawSource to use the Foundation
classes instead of popen/fwrite/pclose.
2002-12-03 Pierre-Yves Rivaille <>
* Source/Parser.m: replaced 21 by 20 in "Content-Description:" parsing.
2002-12-02 Ludovic Marcotte <>
* Added the UUFile class to remove all AppKit dependencies
in the MimeUtility class (was using NSFileWrapper).
* Updated the OS X project file to add this class.
* Refactored a little bit LocalFolder: -appendMessageFromRawSource:
flags: and fixed potential mem leaks in case of an error.
2002-12-01 Ludovic Marcotte <>
* Modified Message: -setHeadersFromData to use
"From " instead of "From -".
* Modified MimeUtility: -stringEncodingForCharset: to
consider unknown-8bit as NSISOLatin1StringEncoding.
* Modified LocalFolder and LocalMessage to replace all "FileName"
ivar/method names to "Filename" to be consistent with the rest
of Pantomime's source.
2002-11-30 Ludovic Marcotte <>
* Modified Fixed LocalStore: -createFolderWithName: type:
so that the newly created folder has the mode 700 instead
of 755.
* Modified Message: -setHeadersFromData so that we do NOT
parse the headers already parsed in Part as unknown
2002-11-29 Ludovic Marcotte <>
* Refactored most of the POP3 code.
* Removed some compiler warnings on OS X 10.2
* Updaded the project file to work with Project Builder
2002-11-28 Ludovic Marcotte <>
* Fixed LocalStore: -createFolderWithName: type:
We weren't rebuiling our folder enumerator when
successfully creating a folder.
2002-11-28 Ujwal S. Sathyam <>
* NULL wasn't defined in POP3Folder, so I included a
standard C header file like stdio.h.
2002-11-28 Ludovic Marcotte <>
* Added support for SMTP over SSL and refactored the
SMTP class.
2002-11-26 Ludovic Marcotte <>
* Modified LocalFolder: -appendMessageFromRawSource: flags:
to append the sender and the delivery date to the "From "
* Removed POP3Folder: -transferMessagesToFolder: since this
method is no longer used.
2002-11-20 Ludovic Marcotte <>
* Removed MimeBodyPart from the CVS and the OS X project file
* Added FolderInformation to the OS X project file
* Modified the #include/#import directives so everything
compile under OS X.
* Added FolderInformation.h as a public header on OS X.
* Added the NSRegEx class.
* Added Folder: -searchForString: searchInContent: caseSensitive:
matchRegEx: and implemented this method in ALL Folder subclasses.
* Added NSRegEx to the OS X project file and also set its header to public.
2002-11-18 Ludovic Marcotte <>
* Modified LocalFolder: -appendMessageFromRawSource: flags:
so that we use the theFlags parameters.
2002-11-17 Ludovic Marcotte <>
* Updated Headers/Pantomime/Constants.h to set the version number
to 1.1.0.
* Added IMAPStore: -folderStatus. This method needs some refactoring.
* Added the FolderInformation class. This class will soon be used
in all Store classes.
2002-11-15 Ludovic Marcotte <>
* Modified Part: -dataUsingSendingMode so that inner
parts always use the SEND_TO_FOLDER mode.
* More fixes in the method to prevent corrupted attachments
(\r\n being replaced by \r\r\n at the end of the method).
2002-10-31 Ludovic Marcotte <>
* Replaced all #import calls by #include and guarded all headers
against multiple inclusion.
* Refactored some code in LocalStore. Fixed security issues regarding
maildir mode.
* Refactored IMAPStore. Added -_folderNameFromString: and modified
-folderEnumerator and -subscribedFolderEnumerator to use
that method.
2002-10-28 Ludovic Marcotte <>
* Fixed the buffer overrun problem in striphtml()
2002-10-27 Ludovic Marcotte <>
* Added DESTROY(delegate) calls in IMAPFolder: -close
and -dealloc.
2002-10-26 Ludovic Marcotte <>
* Modified Message: -forward and -replyWithReplyToAll:
so that we deal better with messages w/o a Subject.
* Added striphtml() and ent() to the MimeUtility class.
Moved from
* Added Message (Private): -_plainTextContentFromPart:
and modified -replyWithReplyToAll: to correct get
the plain/text content of a part (for example, if
it was an html mail).
2002-10-22 Ludovic Marcotte <>
* Added exception handlers when unarchiving POP3 and
IMAP cache files.
2002-10-20 Ludovic Marcotte <>
* Added missing #include (NSDebug.h) in TestCase.m
2002-10-19 Ludovic Marcotte <>
* Modified Message: -replyWithReplyToAll: so that we
verify that -receivedDate isn't nil before trying to
append its string value to our mutable string. This was
causing a segfault on OS X.
2002-10-12 Ludovic Marcotte <>
* Added basic sorting support (ie., comparing category)
in the Container class.
2002-10-08 Ludovic Marcotte <>
* Fixed a bug in IMAPFolder: -prefetchMessageBodyWithUID.
We were waiting for a TCP timeout if we had a message
with an empty body.
2002-10-05 Ludovic Marcotte <>
* Fixed a bug in Message: -forward. We are now
verifying that we really got a Date field before
trying to append its description.
2002-10-02 Ludovic Marcotte <>
* Modified NSStringExtensions and Folder to support
"RE :" as a valid prefix and not only "RE:". This should
be enhanced again (speedwise and feature-wise).
* Fixed a bug in POP3Store that would prevent messages from
being transferred when using POP3 over SSL.
2002-10-01 Ludovic Marcotte <>
* Disabled the creation of empty nodes when threading
by subject for now.
* More fixes to the message threading code.
2002-09-30 Ludovic Marcotte <>
* Improved message threading support.
2002-09-23 Ujwal S. Sathyam <>
* Removed duplicate entry for ChangeLog from PB project.
Hadn't realized that it was already there in the
Documentation sub-group.
2002-09-23 Ludovic Marcotte <>
* Modified Folder: -thread so that if we don't have
a Message-ID for a message (which is utterly b0rken),
we create a container for this message and we place
it in the root set.
2002-09-22 Ujwal S. Sathyam <>
* Bug fixes for LocalFolder when deleting and renaming maildir stores.
Now accounting for OS X's ".DS_Store".
* Added some method declarations for Container and Folder to remove
compiler warnings.
2002-09-20 Ludovic Marcotte <>
* Modified the previous commit to remove some compilation
warnings, respect indentation style and some minor other
* Added Ujwal as a co-author for LocalFolder due to his important
contributions with maildir support.
* Added a new class - Container, used for message threading.
* Modified Folder and other classes to implement JWZ's message
threading algorithm.
* Updated the OS X project file.
* Some refactoring in all Store subclasses and bugs fixing.
2002-09-20 Ujwal S. Sathyam <>
* Todo #79: added maildir support. Seems to work fine,
but needs more testing.
2002-09-14 Ludovic Marcotte <>
* Updated the OS X's project file.
2002-09-13 Ludovic Marcotte <>
* Modified the call to NSSearchPathForDirectoriesInDomains
in IMAPStore and POP3Store to expand the tilde in the path.
2002-09-12 Ludovic Marcotte <>
* Modified MimeUtility: +stringEncodingForCharset so that
if we get x-unknown, we assume it is
NSISOLatin1StringEncoding in order to prevent some lame
bugs in other MUA like Pine 4.21.
2002-09-09 Ludovic Marcotte <>
* Changed the version number in Constants.h to 1.0.6
* Removed entirely the class GSMD5 and added (complete
rewrite by me) the class MD5 using some public domain code
in md5.c from Colin Plumb.
* Modified all the code to use the new MD5 class instead of
the old (and removed GSMD5) class
* Fixed SMTP CRAM-MD5 authentication. It now works perfectly.
* Merged md5.c/.h in the MD5 class and removed those files.
This was causing problems on OS X using HFS+ since it's not
case sensitive.
* Replaced GSMD5.h by MD5.h in Pantomime.h.
* Added Pantomime.h in the GNUmakefile for GNUstep and also
recoded the file from ibmpc to latin1.
2002-09-08 Ludovic Marcotte <>
* Refactored some code in Parser.
* Optimized NSStringExtensions: -stringFromQuotedString
and refactored some code.
2002-09-07 Ujwal S. Sathyam <>
* Fixed Parser:+ _parameterValueUsingLine: range:
Key-value pairs with spaces between key and value
were not being parsed properly.
2002-09-05 Ludovic Marcotte <>
* Set the CVS tag to v1_0_5
* RELEASED v1.0.5
2002-08-20 Ludovic Marcotte <>
* Modified IMAPFolder: -prefetch so that if our cached
entry had the ANSWERED flag for a specific message,
wet it back to the new Flags object. This is a
temporary solution before the complete IMAP rewrite.
* Changed all calls from bzero() to memset().
2002-08-19 Ludovic Marcotte <>
* Fixed IMAPFolder: -expunge. We weren't calling EXPUNGE on
the IMAP server. That would cause problems if we would
compact a mailbox and receive new mails right after
(deleted mails where shown again).
2002-08-14 Ujwal S. Sathyam <>
* IMAPFolder.m: -appendMessageFromRawSource: enclosing folder
name in double quotes.
2002-08-14 Ludovic Marcotte <>
* Added LocalStore (Private): _enforceFileAttributes and
_enforceMode: atPath: so that for a local store, we ensure that
the path to the local store has the 0700 mode and all its
subfolders have 0700 and all mboxes have 0600.
2002-08-10 Ludovic Marcotte <>
* Modified MacOSXGlue.h to define the NSDebugLog variadic
* Modified the OS X project file so that we use the
traditional cpp. (added --traditional-cpp to the
2002-08-09 Ludovic Marcotte <>
* Added Message: -references/-setReferences: and also
modified LocalFolder.m and Parser.m to parse the
"References:" header value. More work to come
on this in order to allow message threading.
2002-08-08 Ludovic Marcotte <>
* Replaced all NSLog() calls for NSDebugLog().
I need to implement NSDebugLog() on OS X.
2002-08-04 Ludovic Marcotte <>
* Added IMAPFolder: -delegate/-setDelegate and modified
IMAPFolder: -_newMessagesHaveArrived so that if the delegate
isn't nil and responds to newMessagesWereReceived:, we perform
that selector.
2002-08-02 Ujwal S. Sathyam <>
* Fixed bug in IMAP folder selection.
When the folder name had a space it, it would break.
Now enclosing the folder name in double quotes.
2002-08-01 Ujwal S. Sathyam <>
* Fixed bug in IMAP folder subscription and un-subscription.
When the folder name had a space it, it would break.
Now enclosing the folder name in double quotes.
2002-07-31 Ludovic Marcotte <>
* Added Message: -extraPropertyForKey and
-setExtraProperty: forKey: to be able to get and set
extra properties for messages. This is used, for example,
in the PGP bundle of
* *** NOTE *** You must recompile entirely Pantomime after
upgrading (do a full distclean before compiling it).
2002-07-29 Ludovic Marcotte <>
* Modified MimeUtility: +isASCIIString to return YES if the
argument is nil.
* Modified Part: -dataUsingSendingMode: to NOT add the
Content-Transfer-Encoding if it's equal to NONE.
* Modified Part: -dataUsingSendingMode: to REUSE the boundary
if it was already defined. If it wasn't, we generate one.
* Added Part: -protocol / -setProtocol: and modified
-dataUsingSendingMode: to add the protocol if required.
* Modified Part: -dataUsingSendingMode: to better manage
encoding of application/* parts.
* *** NOTE *** You must recompile entirely Pantomime after
upgrading (do a full distclean before compiling it).
2002-07-24 Ludovic Marcotte <>
* Added Connection: -isConnected. Implemented this method
in TCPConnection and TCPSSLConnection so we can now safely
if we're still connected to the foreign host.
* Added a check to see if the connection is valid in
POP3Store: -authenticateWithUsername: password: since some
very lame POP3 servers might drop the connection if the
APOP auth has failed.
* Added MimeMultipart: -removeBodyPart so it is now possible
to remove a MimeBodyPart object from a MimeMultipart.
2002-07-10 Ludovic Marcotte <>
* Added some little fixes in TCPConnection.m and
LocalFolder.m so that everything compiles fine under
2002-07-09 Ludovic Marcotte <>
* Fix in Message: -forward and -replyWithReplyToAll:
so that we don't try the create a NSString object
if the part isn't a NSData object. This could
happen in multipart/alternative parts that had
a text/plain Content-Type but a base64
2002-07-05 Ludovic Marcotte <>
* Removed all test cases in .c files since we
are never gonna use them.
2002-07-02 Ludovic Marcotte <>
* Added a (temporary?) fix to Message: -init so that we
always initialize our flags object with the RECENT flag
on instead of no flags at all.
2002-06-15 Ludovic Marcotte <>
* Modified Constants.h to set the version number to 1.0.5
2002-05-30 Ludovic Marcotte <>
* Set the cvs tag to v1_0_4
* RELEASED v1.0.4.
2002-05-29 Ludovic Marcotte <>
* Increased the default timeout value from 30s to 60s in
2002-05-21 Ludovic Marcotte <>
* Added Message: -setRawSource so we can properly set
the rawSource ivar when we want to.
2002-05-20 Ludovic Marcotte <>
* Updated the version number in the OS X project file
to 1.0.4.
2002-05-19 Ludovic Marcotte <>
* Added a patch from Vincent Ricard <>
to POP3Folder and SMTP so that we deal better with lines
containing a single dot. Slightly modified the patch
so it's faster.
2002-05-19 Pierre-Yves Rivaille <>
* Source/POP3Folder.m ([POP3Folder -expunge:]):
delete the messages on the POP3Server according to
the leaveOnServer and retainCount value.
2002-05-09 Francis Lachapelle <>
* Fixed bug in SMTP that could happen when sending a message
containing the character sequence "<CRLF>.<CRLF>".
2002-05-09 Ludovic Marcotte <>
* Added three new constants: PantomimeReadTimeoutException,
PantomimeStopException and PantomimeWriteTimeoutException.
* Refactored SMTP a lot to avoid handling exceptions inside this
class. They are now propagated to the caller., for
example, now handles everything perfectly.
* Did the same refactoring to POP3Store/POP3Folder.
2002-05-08 Ludovic Marcotte <>
* Added URLName: -stringValue.
* Modified IMAPFolder: -prefetch to add the DELETED flag to the
flags obtained from our server if it was present in the cache.
2002-05-06 Ludovic Marcotte <>
* Fixed a bug in SMTP: -decodeMaxSizeAllowedFromString. We weren't
verifying properly if the server were sending us a value to the
SIZE parameter. It would generate an index exception and we wouldn't
be able to send the desired mail.
* Removed a NSLog() calls and fixed some typos.
2002-05-05 Ludovic Marcotte <>
* Added a patch from Vincent Ricard <> to
support the SMTP SIZE extension (RFC1870). This patch also
replaces bzero() calls by memset() class in TCPConnection.
Modified slightly this patch before applying it to fix some
var names, mem leak, etc.
* Added rfc/rfc1870.txt.
2002-05-04 Ludovic Marcotte <>
* Modified TCPConnection to add -setStopTarget and -setStopSelector.
This selector is called quite often on the target to ensure that we
don't forget to generate the PantomimeStopException.
* Modified POP3Folder and SMTP to handle better the exceptions.
More work needs to be done here.
NOTE that more commits are to come to MAKE THINGS MORE STABLE.
2002-05-01 Ludovic Marcotte <>
* Fixed a bug in Message: -replyWithReplyToAll:. If the initial decoding
phase for the text/* part would fail, Pantomime would set the content
as a NSData object (which is the raw source of the part). We were trying
to use this part as a NSString object since we were expecting a
a valid text/* part all the time.
* Added Folder: -showRead/-setShowRead.
2002-04-29 Ludovic Marcotte <>
* Modified Message: -dataUsingSendingMode to NOT add the <> in
the In-Reply-To header.
2002-04-27 Ludovic Marcotte <>
* Changed the version number to 1.0.4 in Constants.h
2002-04-26 Ludovic Marcotte <>
* Set the CVS tag to v1_0_3
* RELEASED v1.0.3.
2002-04-25 Ludovic Marcotte <>
* Modified POP3Folder: -prefetchMessageAtIndex to NOT
append the X-UID header anymore.
* Fixed a bug in last commit.
* Fixed a bug in MimeUtility: +wrapPlainTextString: usingWrappingLimit:
we were not verifying that the length of the line was > of the index
j when removing any leading white spaces (if any). So the code
was breaking if we had a single line with only ">" on it.
2002-04-25 Francis Lachapelle <>
* Reversed for-loop in method expunge of class IMAPFolder to
fixed possible bug when deleting messages.
* Fixed possible problem with deleted messages in method expunge
in class LocalFolder.
2002-04-24 Ludovic Marcotte <>
* Modified MimeUtility: +stringEncodingForCharset to return
NSISOLatin1StringEncoding when the charset is "x-user-defined"
to prevent a bug from some versions Outlook.
2002-04-23 Ludovic Marcotte <>
* Modified IMAPStore: -initSSLWithName: port: and POP3Store:
-initSSLWithName: port: to add the NSUserDomainMask in the
search path.
* Fixed a retain bug in URLName: _decodeIMAP for the username.
* Added a TCPSSLConnection target to the OS X project file. You need
to have OpenSSL installed to compile it (from the Fink project).
2002-04-22 Ludovic Marcotte <>
* Added Folder: -numberOfTransferredMessages and modified LocalFolder:
-appendMessageFromRawSouce: to use [self count] +
[self numberOfTransferredMessages] + 1 instead of [self count] + 1
since we can mark messages as transferred and append messages to
a folder after and it'll get the 'wrong' message number.
2002-04-21 Ludovic Marcotte <>
* Added Folder: -numberOfUnreadMessages and Folder: -size.
2002-04-19 Ludovic Marcotte <>
* Modified MimeUtility: +allCharsets to remove iconv from the list.
We will rather provide a list later that iconv supports.
* Modified MimeUtility: +compositeMultipartContentFromRawSource: ...
to set the size of the new mime body part object to the length
of the data object (ie., its content).
* Modified MimeUtility to add "support" of gb2312 and shift_jis
charsets on OS X.
2002-04-18 Ludovic Marcotte <>
* Modified the Service protocol to add a -username accessor. Modified
all classes (POP3Store, IMAPStore and SMTP) implementing this protocol
to return the username if one exist (defined when authenticating).
Also refactored some code in those classes.
* Added username support to URLName for IMAP URLs.
* Minor change to SMTP: -dealloc to avoid a compiler warning.
2002-04-17 Ludovic Marcotte <>
* Enhanced a lot MimeUtility: -allCharsets to that it's now
way more descriptive and consistent.
* Done TODO #89. Addded [Part -initWithData: charset:] so that people can
chose which charset to fallback to when none has been specified for 8-bit
* Fixed a bug in MimeUtility: +decodeBase64. We weren't verifying if our data
object had a length > 0.
* Fixed Part: -init to not set the defautl charset to nil.
* Added Headers/Pantomime/Connection.h. This file defines the Connection
protocol implemented in TCPConnection and TCPSSLConnection (the bundle).
Cleaned all the code that was using TCPConnection to avoid a lot of
compiler warnings.
* Added Connection.h to the OS X project file.
* Added the WINDOWS_1250, 1253 and 1254 classes to the OS X project file.
* Defined the _() macro in Constants.h
2002-04-16 Ludovic Marcotte <>
* Added support for the Windows-1250, Windows-1253 and
Windows-1254 charsets. Modified all the files that are related
to use them.
* Modified MimeUtility: +discreteContentFromRawSource.. to correctly
set the Part size when decoding a base64 encoded part - for now.
* Modified Message: -forward to set the correct size to all parts
contained in our forwarded message.
2002-04-15 Ludovic Marcotte <>
* Modified LocalFolder: -expunge to break the look when a write
error occurs instead of continuing it for no good reason.
* Modified LocalFolder: -appendMessageFromRawSource to not synchronize
the cache after each message append.
* Modified the makefile to use ${MAKE} instead of make directly.
Suggestion by Chris B. Vetter <>.
2002-04-14 Ludovic Marcotte <>
* Modified MimeUtility: +stringEncodingForCharset to use the
CoreFoundation under OS X to support way more encodings.
* Added the CoreFoundation framwork to the OS X project file.
* Modified MimeUtility: +stringEncodingForCharset to define our
CFStringEncoding for most charsets.
* Removed the use of a local autorelease pool in MimeUtility:
* Added Bundles/SSL/.cvsignore.
* Added ISO-2022-JP and EUC-JP support to MimeUtility:
* Added a "dumb" implementation of SMTP: -initSSLWithName: port:.
2002-04-13 Ludovic Marcotte <>
* Fixed TCPSSLConnection to allow big read/write operations.
* Added timeout support to TCPSSLConnection when establishing
connections and refactored TCPConnection to remove old code.
* Removed TODO #91.
* Added SSL support to POP3Store.
2002-04-12 Ludovic Marcotte <>
* Done TODO #90. Optimized TCPConnection by rewriting -_readByte
and -_writeByte and modified the code everywhere to use the
new -_readBytes: length: and -_writeBytes: length: methods.
* Added Service: -initSSLWithName: port: and implemented this method
in IMAPStore.
* Added Bundles/SSL/TCPSSLConnection. This allows Pantomime to use
a SSL version of the TCPConnection class. Currently, only IMAPStore
was modified to use it. It's pretty trivial to modify the other
classes to support it to. This class should be enhanced in the future
to allow multiplexed I/O and also to be able to verify certificates.
2002-04-10 Ludovic Marcotte <>
* Fixed a bug in IMAPFolder: -appendMessageFromRawSource: flags:.
We weren't nooping first.
* Also added flags support for this method. We now consider the
flags argument.
* Modified IMAPStore: -folderForName: select: to return nil if the
folder is already open.
2002-04-09 Francis Lachapelle <>
* Improved the follwing methods of MimeUtility based on
Alexander Malmberg <> patch:
- unwrapPlainTextString:usingQuoteWrappingLimit:
- wrapPlainTextString:usingWrappingLimit:
- quotePlainTextString:quoteLevel:wrappingLimit:
and removed method _breakWord.
2002-04-09 Ludovic Marcotte <>
* Fixed a bug in MimeUtility: +stringWithData: charset: when freeing
our o_bytes buffer if the iconv conversion failed and also fixed
the leak of closing properly the iconv descriptor in case of a failure
2002-04-07 Ludovic Marcotte <>
* Changed MimeUtility: +fileWrapperFromUUEncodedString to use
-dataWithCapacity instead of -dataWithLength.
* Added a patch from Alexander Malmberg <> to
speed up the charset guessing mechanism.
* Regenerated all charset classes.
2002-04-06 Ludovic Marcotte <>
* Modified Parser: +parseMessageID: inMessage to not trim the
<> in Message-ID header value.
* Added robustness to POP3Folder so that we handle quite well
TCP timeout and we manage transferred messages vs messages with
which we had an error quite well.
2002-04-05 Ludovic Marcotte <>
* We now correctly release the folderSeparator ivar in IMAPStore
in -dealloc.
* Modified LocalStore: -folderEnumerator to hide .DS_Store directories.
* Modified IMAPStore: -renameFolderWithName: toName: to re-subscribe
to the folder if the renamed operation failed.
* Added MimeUtility: +allCharsets. This method returns an array of all
"supported" charsets by Pantomime when sending messages.
2002-04-04 Ludovic Marcotte <>
* Added Store: -folderSeparator and implemented this method
in IMAPStore, POP3Store and LocalStore.
2002-04-03 Ludovic Marcotte <>
* Fixed a bug in IMAPFolder: -expunge. We weren't removing the deleted
mesasges from the array of "existing" messages.
2002-04-02 Ludovic Marcotte <>
* Refactored the IMAPFolder class.
* Modified IMAPFolder and LocalFolder: -appendMessageFromRawSource: flags:
to generate a PantomimeFolderAppendMessageException in case if an error
occured while appending a message from RAW source to Local or IMAP
* Modified POP3Folder: -transferMessagesToFolder to handle this exception.
2002-04-01 Ludovic Marcotte <>
* Modified LocalStore: -createFolderWithName to support the creation
of hierarchical folders.
* Modified LocalStore: -deleteFolderWithName to support the deletion
of hierarchical folders.
* Added Store: -renameFolderWithName: toName:. Implemented it in
* Implemented -renameFolderWithName: toName: in LocalStore.
* Implemented IMAPStore: -deleteFolderWithName:
* Implemented IMAPStore: -createFolderWithName: and
-renameFolderWithName: toName:
* Removed the use of a cached version of subscribed folders since
it leads to errors and adds complexity for no good reason.
* Modified IMAPFolder: -close to call IMAPStore:
* Fixed a bug in IMAPStore: -folderTypeForFolderName. We weren't
read the <tag> OK .. response following our command.
2002-03-31 Ludovic Marcotte <>
* Modified IMAPStore: -subscribedFolderEnumerator and
-folderEnumerator to unquote folder names if they are
quoted (Courier-IMAP does that).