2002-03-24      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified POP3Store, POP3Folder and SMTP to use NS_VALUERETURN()
	  when leaving the exception handling domain.
	* Set the CVS tag to v1_0_2
	* RELEASED v1.0.2.
	

2002-03-22      Ludovic Marcotte <ludovic@Sophos.ca>

        * Added exception handling support in POP3Store:
	  -authenticateWithUsername: password: 
	  -responseFromServerIsValid: and
	  -close.
	* Same thing for POP3Folder for the methods:
	  -deleteMessageAtIndex:
	  -count
	  -readUID and
	  -readLength
	* Modified IMAPStore: -close to call [[self tcpConnection] close].
	* Did the same thing in POP3Store: -close. This is just 'safe' to 
	  do that.


2002-03-20	Ludovic Marcotte <ludovic@Sophos.ca>

	* Done TODO #88. Added test cases for Pantomime and also a simple testing
	  framework from Alexander Malmberg <alexander@malmberg.org>.
	* Did some cleanups everywhere for the next release.
	* Modified IMAPMessage: -setInitalize to release the content if
	  the flag is NO. Also assign the ivar to nil after. Did the same
	  thing for LocalMessage.

 
2002-03-17     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified the OS X project file to include URLName.h in the list
	  of public headers.
	* Added more code to the URLName class and also implemented the missing
	  methods from the Store protocol for URL handling in POP3Store and
	  IMAPStore.
	* Updated Testing/Pantomime.m
	* Updated the README (need to write the section on how to compile
	  Pantomime under Apple Mac OS X).
	* Done TODO #65. Added uudecode support to MimeUtility. Added two methods:
	  +fileWrapperFromUUEncodedString: and
	  +rangeOfUUEncodedStringFromString: range:
	  Those methods haven't been. More work is coming for them.
	* Fixed a memory leak in MimeUtility:
	  +encodeWordUsingQuotedPrintable: prefixLength:
	* Reactivated MimeUtility: +encodeWordUsingBase64: prefixLength:
	* Added the missing flags support in the IMAP mode. Modified
	  IMAPFolder: -parseMessageFlagsFromString.


2002-03-16     Ludovic Marcotte <ludovic@Sophos.ca>

        * Added more code to the URLName (for Local and IMAP parsing)
        * Added Store: -initWithURL and -folderForURL. Implemented those
          two methods for LocalStore.


2002-03-15     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified SMTP: -initWithName: port: to handle read/write timeouts
	  when establishing the connection with the SMTP server. We return
	  nil in that case.
	* Added a new class - URLName. This call will be used to support
	  Local/IMAP/POP3 URL scheme. Did an initial implemenation (mostly a
	  skeleton).
	* Added the URLName class to the OS X project file and modified some
	  files so that everything compiles cleanly under OS X.


2002-03-14     Francis Lachapelle <francis@Sophos.ca>

	* Added missing header (NSArray) in NSDataExtensions.h


2002-03-14     Ludovic Marcotte <ludovic@Sophos.ca>

        * Added SMTP AUTH support to SMTP. We currently support PLAIN, LOGIN 
	  (tested) and CRAM-MD5 (untested, if you have a server supporting this,
	  please contact me!) (TODO #49).


2002-03-12     Ludovic Marcotte <ludovic@Sophos.ca>

        * Refactored TCPConnection. Added -_readByte and -_writeByte. All other
	  read/write methods use those two non-blocking methods (TODO #83). Also
	  fixed some little bugs and a memory leak in case of a failure.


2002-03-11     Ludovic Marcotte <ludovic@Sophos.ca>

        * Done some minor cleanups in MimeBodyPart.m
	* Fixed a bug in IMAPFolder (Private): _replaceCRLFInMutableData:.
	* Added NSDataExtensions: insertCString: atIndex.
	* Added a patch from Alexander Malmberg <alexander@malmberg.org> to
	  NSDataExtensions: -cString so we don't lose any information
	  while creating the cString reprensetation of a NSData object.
	* Modified LocalFolder: -appendMessageFromRawSource to NOT use
	  a temporary NSString object using a latin1 encoding. That was
	  slowing things down a lot.
	* Refactored a lot NSDataExtensions. Optimized some parts also.


2002-03-08     Ludovic Marcotte <ludovic@Sophos.ca>

        * Added versionning support to POP3CacheObject. Also added a
	  date ivar and two accessors (-setDate/-date)
	* Added POP3Folder -setRetainPeriod/-retainPeriod and modified
	  POP3Folder -prefech to delete messages that have a difference
	  of 'retainPeriod' days between the current date and the date
	  when they were first fetched.
	* Modified Message: -replyWithReplyToAll to NOT include the
	  sender's signature in the newly created message.

 
2002-03-07     Ludovic Marcotte <ludovic@Sophos.ca>

        * Added a patch from Alexander Malmberg <alexander@malmberg.org> to
	  return the 'raw data' of a part if it can't be decoded properly.
	* Added a patch from Alexander Malmberg <alexander@malmberg.org> to
	  set the string of an address that can't be parsed to the personal
	  part of an InternetAddress.
	* Modified LocalStore to NOT compare folder names in a case insensitive
	  way since we want to support for example, a folder called 'Test'
	  and 'test' in a distinc way.


2002-03-06     Francis Lachapelle <francis@sophos.ca>

	* Removed unsupported encodings in MimeUtiliy.m (for Mac OS X)
	* Added import of NSDataExtensions.h and Constants.h in 
          NSDataExtensions.m

2002-03-06     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified the Part class to properly encode the filename
          if it's not a pure ASCII string. It'll automatically encode
          it using QuotedPrintable and the right charset (guessed).


2002-03-04     Ludovic Marcotte <ludovic@Sophos.ca>

        * Refactored MimeUtility: +unfoldLinesFromData.
	* Refactored MimeUtility: +encodeBase64: lineLength: and fixed
	  a memory leak.
	* Refactored MimeUtility: +encodeQuotedPrintable: lineLength:
				   inHeader:
	* Refactored MimeUtility: +generateBoundary
	* Refactored MimeUtility: +generateOSID
	* Fixed a mem leak in MimeUtility: +encodeHeader
	* Removed unused code in MimeUtility: +encodeHeaders: usingCharset:
				              encoding:
	* Added Part: -lineLength/-setLineLength to be able to specify
	  the length limit when format of the mail is flowed.
	* Modified Part: -dataUsingSendingMode to format the mail as
	  flowed is it has been specified to do so (using the right
	  line length).
	* Refactored MimeUtility: +decodeHeader.
	* Modified POP3Folder: -prefetchMessageAtIndex to use the
	  local autorelease pool at the very beginning of the method.


2002-03-03     Ludovic Marcotte <ludovic@Sophos.ca>

	* Added a patch from  Alexander Malmberg <alexander@malmberg.org>.
	  Added the NSDataExtensions class.
	  This patch allows Pantomime to support 8bit messages.
	  Modified the patch (refactored some parts and fixed some little
	  bugs).
	  This needs more work but this is an excellent starting point.
	  The OSX port will need to be updated since this code won't work
	  right now under OSX.
	  Some of the API was changed and will need to be documented. In
	  general, the library should 'behave' pretty much the same as it
	  did before, minus the minor changes in the APIs.


2002-02-27     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified Contants.h to set the version number to 1.0.2.


2002-02-26     Ludovic Marcotte <ludovic@Sophos.ca>

        * Added a patch by Alexey I. Froloff <raorn@binec.ru> so that
	  we deal better with text/* parts encoded in base64. We now
	  return those parts ONLY as a NSString object.
	* Set the CVS tag to v1_0_1
	* RELEASED v1.0.1


2002-02-25    Francis Lachapelle <francis@Sophos.ca>

	* Updated Project Builder file to version 1.0.1.


2002-02-23     Ludovic Marcotte <ludovic@Sophos.ca>

        * Added RFC2384 (POP3 URL Scheme) and a TODO


2002-02-22     Ludovic Marcotte <ludovic@Sophos.ca>

        * Fixed some RETAIN/AUTORELEASE bugs in MimeUtility if the initial
	  conditions for some methods were not met. Patch from
	  Alexander Malmberg <alexander@malmberg.org>.
	* Added rfc/rfc2192.txt (IMAP URL Scheme) and a TODO


2002-02-21     Ludovic Marcotte <ludovic@Sophos.ca>

        * Added MimeUtility: +stringEncodingForPart to be able to
	  get the best string encoding for a NSString object that will
	  be used to represent a specific part.
	* Added the support for the Windows-1252 charset.
	* Modified Parser: +parseDestination: forType: inMessage:
	  to decode the possibly encoded personal value of an
	  InternetAddress object.
	* Fixed little bugs in CharsetDecoder.m and updated the
	  update_sets.sh script.
	* Updated the OSX project file to include the new
	  WINDOWS_1252 class.


2002-02-20     Ludovic Marcotte <ludovic@Sophos.ca>

        * Changed the return type of Store: -folderForName and
	  -defaultFolder from Folder * to id. Modified the classes implementing
	  the Store protocol for those changes.
	* Changed IMAPStore to return IMAPFolder * instead of Folder * for
	  -folderForName: prefetch: and -folderForName: withIMAPCacheManager:
	* Changed POP3Store to return POP3Folder * instead of Folder * for
	  folderForName: prefetch:


2002-02-19     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified LocalFolder: -parse to output useful logs when
	  the cache is used or needs to be build.
	* Modified MimeUtility: -encodeWordUsingBase64 to return the
	  received string (as argument) if it doesn't need to be encoded.
	* Cleaned some comments in MimeUtility.m
	

2002-02-17     Ludovic Marcotte <ludovic@Sophos.ca>

        * Moved LocalFolder.h: - (void) appendMessageFromRawSource: 
          (NSString *) theString; in Folder.h.
        * Added LocalFolder: -appendMessageFromRawSource: flags:
          to be able to transfer a message from a raw source with
          a set of flags.
	* Fixed some #import / @class in the Folder class.
	* Added Folder: -updateCache to update the cache 'hidden' in
	  the Folder class in case messages have been transferred and
	  we want to hide right now those messages.
	* Added NSCopying support to the Flags class. Also added
	  -initWithFlags: (int) theFlags.


2002-02-16     Ludovic Marcotte <ludovic@Sophos.ca>

        * Fixed some missing #imports in Pantomime.h
	* Modified Folder: -setShowDeleted to TEST_RELEASE
	  our allVisibleMessages array before setting this ivar
	  to nil.
	* Fixed a bug in LocalFolder: -expunge. We were NOT adding
	  the message separator (\n) after each messages.


2002-02-15     Ludovic Marcotte <ludovic@Sophos.ca>

        * Optimized Folder: -allMessages. We now use a 'ghost' array
          (allVisibleMessages) so that we don't have to recreate it
          everytime Folder: -allMessages is called.
	* Modified Folder: -appendMessage to also append the message
 	  to our allVisibleMessages array if it exists.
 	* Did the same thing for Folder: -removeMessage.
	* Modified Folder: -setMessages to release the allVisibleMessages
	  array if it does exist. We also set this ivar to nil after.
	* Modified Folder: -messageAtIndex to use [self allMessages] instead
	  of the allMessages ivar directly.


2002-02-15     Francis Lachapelle <francis@Sophos.ca>

	* Modified the method replyWithReplyToAll of Message so it uses 
	  the method quotePlainTextString from the class MimeUtility.
	* Improved methods:
	  quotePlainTextString (added conditional space char insertion);
	  unwrapPlainTextString (fixed wrong quoted block insertion location);
	  wrapPlainTextString (added proper space-stuffing).


2002-02-15     Ludovic Marcotte <ludovic@Sophos.ca>

        * Added Folder: -numberOfDeletedMessages. This method returns
	  the number of deleted messages in a folder.


2002-02-14     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified TCPConnection: -writeLine / -writeString to
	  return YES on success and NO on error. Suggestion by
	  Luis Garcia Alanis <luis@sogrp.com>

2002-02-14  Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>

	* New Message methods to support sorting by size


2002-02-14     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified Message (Sorting) to use compareAccordingToNumber
 	  instead of reverseCompareAccordingToNumber in
	  compareAccordingToDate.


2002-02-13	Francis Lachapelle <francis@Sophos.ca>

	* Updated Project Builder file:
	  added LocalFolderCacheManager;
	  added KOI8_R and KOI8_U;
	  added WINDOWS_1251.

2002-02-13     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified LocalFolder: -appendMessageFromRawSource to only
	  initialize the message from the headers and not entirely.
	  This speedups things a lot and uses far less memory.
	* Cleaned A LOT the Folder class and it's subclasses. Removed
	  the -setCount method and moved generic implementation of most
	  methods (cout, messageAtIndex, etc) in the Folder class and
	  removed them from their subclasses.
	* Implemented LocalFolder: -expunge.
	* Modified LocalStore: -deleteFolderWithName to also remove
	  the cache when deleting a folder.
	* Some bug fix for Message's comparing methods. Patch
	  from Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>.
	* Added a fix to support nil dates for the Sorting Message's
	  category.


2002-02-12     Ludovic Marcotte <ludovic@Sophos.ca>

        * Done more work on caching support for local folders.
	* Added a patch from Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
	  to support comparisons in the Message class.


2002-02-11     Ludovic Marcotte <ludovic@Sophos.ca>

        * Added coding support to LocalMessage.
	* Added the LocalFolderCacheManager class. This is an initial
	  implementation.
	* Added support for caching for local mboxes. This support is
	  currently BROKEN and YOU SHOULD NOT USE PANTOMIME right now.


2002-02-08     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified LocalStore: -folderEnumerator to NOT return
	  Netscape Mail's summary files when enumerating mboxes.
	* Modified the license in all .m files from GPL to LGPL. That
	  was a mistake due to "copy & paste". The lib was always under
	  LGPL so nothing changes.
	* Done the same thing with all .h files.


2002-02-07     Ludovic Marcotte <ludovic@Sophos.ca>

        * Added a patch from Sir Raorn <raorn@binec.ru> for
	  koi8-r, koi8-u and windows-1251 charsets (cyrillic) support.


2002-02-04     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified Constants.h to set the version number to 1.0.1.


2002-01-30     Ludovic Marcotte <ludovic@Sophos.ca>

        * RELEASE OF 1.0.0
	* Set the CVS tag to v1_0_0


2002-01-28     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified MimeUtility: +decodeStringFromQuotedPrintable: charset:
	  to add an handler for exceptions.


2002-01-27     Ludovic Marcotte <ludovic@Sophos.ca>

        * Added a local autorelease pool in MimeUtility:
          +charsetForString.


2002-01-26     Ludovic Marcotte <ludovic@Sophos.ca>

        * Added local autorelease pool in MimeUtility: +isASCIIString,
          +encodeText: usingCharset: encoding: and
          +foldStringUsingSoftLineBreaks: length:
	* Optimized SMTP: -sendMessageFromRawSource.
	* Moved the TEST_RELEASE(pool) in MimeUtility:
	  +encodeText: usingCharset: encoding: after the for loop. That
	  was causing a segfault.


2002-01-25     Ludovic Marcotte <ludovic@Sophos.ca>

        * Added version control support to IMAPCacheManager and
	  modified -initWithCoder so we can safely discard IMAP caches
	  from previous releases of Pantomime.


2002-01-24     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified MimeUtility: +discreteContentFromRawSource:
	  usingContentTransferEncoding: charset: to accept the 
	  part parameter and enabled the decoding of the content
	  format=flowed in this method using MimeUtility:
	  +unwrapPlainTextString: usingQuoteWrappingLimit:.
	* Added missing @end at the end of the public Message
 	  implementation.
	* Modified POP3Folder: -prefetchMessageAtIndex so that
	  we verify if we get the Status: header while receiving our
	  message. If we don't, we just add it.
	* Done TODO #84. Changed -setFileName and -fileName to 
	  -setFilename / filename everywhere.


2002-01-23     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified Message: -replyWithReplyToAll so that we when we verify
	  for text parts, we verify for text/plain, text/enriched and
	  text/html instead of text/* in case for example, we have
	  a text/x-vcard or anything else.
	* Modified TCPConnection: -readLineBySkippingCR to increase our
	  buffer to 4096 chars and also added an extra verification
	  on the aString local var to not call -length on it if it's nil.

	
2002-01-22     Ludovic Marcotte <ludovic@Sophos.ca>

        * Renamed Folder: -removeTransferredMessage to -removeMessage
	  and modified IMAPFolder the same way.
	* Modified MimeUtility: -compositeMultipartContentFromRawSource:
	  usingBoundary: to separate our components by "\n--<boundary>"
	  instead of "--<boundary>".
	* Modified MimeBodyPart: -initWithString to sent the length
	  of the range for the bodyString to
	  [theString length] - aRange.location - 2 instead of
	  [theString length] - aRange.location - 3.


2002-01-21     Ludovic Marcotte <ludovic@Sophos.ca>

        * Added a private category to IMAPFolder and defined:
	  - (void) _replaceCRLFInMutableString: (NSMutableString *) 
	                                            theMutableString
          in it in order to ease the replace operation of \r\n by \n.
	* Fixed a bug IMAPFolder: -prefetchNewMessagesStartingAtUID.
	  We were NOT replacing \r\n by \n in our headers so that
	  headers will have wrong values (all ending by a \r).
	  You MUST again remove your IMAP cache since the old copy
	  probably contains wrong serialized headers.

	
2002-01-20     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified Part.m to not rely on subclasses for most methods
          and added NSCoding support.
        * Modified MimeBodyPart to remove unused methods.
	* Added NSCoding support to MimeBodyPart.
	* Added NSCoding support to Message.
	* Modified IMAPCacheObject to use a Message ivar instead of
	  a dictionnary of headers.
	* Modified IMAPFolder to use the new IMAPCacheObject.
	* YOU MUST REMOVE ALL YOUR IMAP CACHE FILES BEFORE USING THIS NEW
	  CODE. Just rm -f ~/GNUstep/Library/GNUMail/IMAPCache* (or
	  rm -f ~/Library/GNUMail/IMAPCache* under OS-X)
	* Added a Private category to message and moved the method
	  formatRecipientsWithType in it (renamed
	  _formatRecipientsWithType).


2002-01-19     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified IMAPFolder: -prefetch to remove from the cache
          to objects (ie., messages) that have been deleted from
          the IMAP server. Patch written with
          Anthony W. Juckel <awj@digitalgreen.com>.
	* Modified Message: -replyWithReplyToAll to verify the encoding
	  of a text/* part when searching for one in a multipart/alternative
	  body part in case it was base64 encoded. We don't assume it's a
	  NSString anymore.
	* Did the same thing in Message: -forward.
	* Corrected the ivar headers type in IMAPCacheObject (it was
	  a NSString instead of a NSDictionary) and changed the parameter
	  type of -setHeaders (same mistake).
	* Added NSCoding support to Flags.
	* Refactored a little bit Part.h


2002-01-18      Ludovic Marcotte <ludovic@Sophos.ca>

        * Included a patch from Anthony W. Juckel <awj@digitalgreen.com> to
	  implending encoding/decoding support in InternetAddress. Also, the
	  patch modifies IMAPCacheObject to serialize the headers as a 
	  NSDictionnary instead as a string - this should make things faster
	  when opening the cache.
	  The patch also cleans some method names in Message so we don't
	  confuse -initWithHeaders / -initWithHeadersFromString methods
	  (same thing with -setHeaders / -setHeadersFromString).
	  Modified SMTP.m to use -setHeadersFromString instead of
	  -setHeaders.
	  YOU MUST REMOVE ALL YOUR IMAP CACHE FILES BEFORE USING THIS NEW
	  CODE. Just rm -f ~/GNUstep/Library/GNUMail/IMAPCache* (or
	  rm -f ~/Library/GNUMail/IMAPCache* under OS-X)


2002-01-17	Francis Lachapelle <francis@Sophos.ca>

	* Fixed wrong releases in method wrapPlainTextString of MimeUtility.
	

2002-01-17     Ludovic Marcotte <ludovic@Sophos.ca>
	
	* Modified Contants.h to add PANTOMIME_VERSION and to set it
	  to 1.0.0.
        * Modified Message.m to set the Pantomime version number to
	  use PANTOMIME_VERSION.


2002-01-15     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified MimeUtility: +unwrapPlainTextString: usingQuoteWrappingLimit:
	  +wrapPlainTextString: usingWrappingLimit:
	  +quotePlainTextString: quoteLevel: wrappingLimit:
	  to use a local autorelease pool.
	* RELEASED 0.9.0 and set the CVS tag to v0_9_0.


2002-01-14     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified MimeUtility: -foldStringUsingSoftLineBreaks: length:
	  so that we verify the length of our string before try to obtain
	  the characters near the end of that string.
	* Modified Part to accept a new ivar for holding the format of the
	  mail (flowed / unknown). Patch from Francis Lachepelle
	  <francis@Sophos.ca>
	* Modified Contants.h to define two new contants for the format:
	  FORMAT_UNKNOWN -> 0
	  FORMAT_FLOWED  -> 1
	  Patch from Francis Lachepelle <francis@Sophos.ca>
	* Added MimeUtility: +unwrapPlainTextString: usingQuoteWrappingLimit:
	  and +quotePlainTextString: quoteLevel: wrappingLimit.
	  This completes TODO #78 (see Format flowed...)
	  Refactored +wrapPlainTextString: usingWrappingLimit.
	  This completes TODO #81 (rewrite this method)
	  Patch from Francis Lachepelle <francis@Sophos.ca>.
	* Modified Parser: -parserContentType: inPart: to decode the
	  format parameter and set the part's format to FORMAT_UNKNOWN
	  or FORMAT_FLOWED depending on the value that has been read.
	  Patch from Francis Lachepelle <francis@Sophos.ca>.
	* Added Parser:  _parameterValueUsingLine: range: to be able
	  to read parameter values all the time. For example the charset
	  parameter encoded using multipart format like
	  charset="us-ascii"
	  charset=us-ascii
	  charset=us-ascii;
	  We now call this method for decoding the boundary, the charset,
	  the format and the name.
	* Modified Message: -stringValueUsingSendingMode to add the 
	  flowed parameter IIF the Content-Transfer-Encoding is NOT
	  QuotedPrintable or Base64.
	* Done the same thing in MimeBodyPart: -stringValueUsingSendingMode.


2002-01-13     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified POP3Folder: -prefetchMessageAtIndex to use a local
          autorelease pool for this method.
	* Modified Message: -forward to set the Content-Type of our
	  forward text part (in case it's a text/html or text/enriched).
	* Modified MimeBodyPart: -stringValueUsingSendingMode to replace
	  all 'appendString' call by 'appendFormat'.
	* Same thing for Message: -stringValueUsingSendingMode.
	* Modified Message: -forward to set the filename to the new part
	  when the Content-Type is message/rfc822 or any other type like
	  application/*, audio/*, image/* or video/*.
	* Modifed MimeUtility: -setContentFromRawSource: inPart: to treat
	  message/delivery-status like a discrete type.
	* Same thing for MimeBodyPart: -stringValueUsingSendingMode and
	  also modified that method when the Content-Type is message/rfc822
	  OR message/partial (replaced since it was originally message/*)


2002-01-12     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified LocalFolder: -close to not use a mutable string
          for writing our temporary message but we rather write
          it directly.
	* Rewritten MimeBodyPart: -stringValueUsingSendingMode to
	  support most kind of parts. It still more work and a little
	  bit of refactoring (to generalize some parts of this method).


2002-01-11     Ludovic Marcotte <ludovic@Sophos.ca>

        * Implemented -contentDisposition/-setContentDisposition in
	  Message.m
	* Modified some comments in MimeUtility.m
	* Refactored Message: -replyWithReplyToAll and -forward so they
	  are both more stable and should work way better with various
	  messages.
	* Modified Parser: -parseContentType: in Part: to decode the
	  filename before setting it in case it was QP (or base64) encoded.
	* Modified Message: -replyWithReplyToAll to search for 
	  multipart/alternative text/plain parts inside a multipart/mixed 
	  (or related) part.
	* Modified Message: -forward to set all body parts disposition to
	  "attachment" when adding them to our new multipart object.


2002-01-09     Ludovic Marcotte <ludovic@Sophos.ca>

        * Moved setContent/content from MimeBodyPart / Message to Part.
	* Modified MimeBodyPart: -initWithString to use
	  MimeUtility: +setContentFromRawSource: inPart.
	* Modified Message: -setContentFromRawSource to use
	  MimeUtility: +setContentFromRawSource: inPart.
	* Added new methods to MimeUtility:
	  +discreteContentFromRawSource: usingContentTransferEncoding: charset:
	  +compositeMessageContentFromRawSource
	  +compositeMultipartContentFromRawSource: +usingBoundary
	  +setContentFromRawSource: inPart:
	  Those new methods are used to decode ALL parts's content.
	* Modified Charset: -characterForCode to return \t \n or \r if
	  we get such char as the parameter.


2002-01-08     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified MimeBodyPart: -initWithString so that if our part
	  is a message/rfc822, we use Message: -initWithString instead
	  of separating the headers from body and setting both to the
	  message.
	* Modified Message to set the rawSource ivar in -initWithString
	  instead of -setContentFromRawSource since the latter was wrong
	  (not including the headers).


2002-01-07     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified IMAPStore: -close to replace %d by %@ in the 
	  string to verify when closing. Otherwise, were we looping
	  endlessly. This bug has been introduced by on saturday.


2002-01-06     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified IMAPFolder: -prefetchMessageBodyWithUID to read
          the extra two lines sent by the IMAP server at the end of a
          FETCH BODY[TEXT]. Only one of them was read. Modified the
          comment to describe this part of the code.
        * Done the same thing in -prefetchMessageWithUID and also added
          the code to replace all \r\n by \n in the content of the message
          returned by the IMAP server.
	* Modified IMAPStore: -close to read the response sent by the
	  IMAP server when we issue a LOGOUT. Currently, we just ignore
	  the result.
	* Added rfcs/rfc2183.txt (The Content-Disposition Header Field)
	* Modified Message: -rawSource to return the rawSource ivar if
	  it's not nil. This ivar is ONLY set in setContentFromRawSource since
	  we migth be able to retrieve the raw source of a message
	  (for example, from a message/rfc822 part). YOU MUST recompile
	  Pantomime ENTIRELY (make distclean; make) since this change
	  was made.

          
2002-01-04     Ludovic Marcotte <ludovic@Sophos.ca>

        * Included a patch from Anthony W. Juckel <awj@digitalgreen.com>
	  to progressively read from the socket instead of trying to read
	  everything in one step. This bug is fixed in TCPConnection:
	  -readStringOfLength: .
	* Included a patch from Anthony W. Juckel <awj@digitalgreen.com> so
	  that Flags now uses a bitstring instead of a mutable array to
	  manage the flags. It should make things way faster. GNUMail.app
	  *** NEEDS *** to be recompiled (entirely).
	* Modified POP3Folder: -count to use TCPConnection: -readLine instead
	  of TCPConnection: -readStringOfLength: 80 to prevent it from
	  blocking.
	* Included a patch from Anthony W. Juckel <awj@digitalgreen.com>
	  (modified by myself) to optimize the IMAPFolder code.
	* Fixed a little bug in IMAPFolder: -prefetchNewMessagesStartingAtUID
	  so that we prevent a 'bug' from IMAP server that always return
	  the last UID even if we started our prefetch at this UID.
	* Renamed MimeUtility: +encodeWordUsingQuotedPrintable to
	  +encodeWordUsingQuotedPrintable: prefixLength: and implemented
	  the support of folding the result if it needs to be folded to
	  75 characters (to be RFC2047 compliant).
	* Modified InternetAddress: -stringValue to call this new method
	  instead of the old one.
	* Modified IMAPFolder: -prefetchNewMessagesStartingAtUID so that it
	  makes the verification for the 'wrong' UID after we get it
	  from -parseMessageUIDFromString and corrected a memory leak.
	* Modified MimeUtility: +encodeText: usingCharset: encoding: to
	  always return an encoded string (even if it's pure ASCII).
	* Modified IMAPFolder: -prefetch to use a 'rotating' autorelease pool
	  that we release after every 100 iterations of the loop.
	* Modified Message: -setHeaders to use a local autorelease pool
	  during this method call.
	* Optimized MimeUtility: -unfoldLinesFromString.


2002-01-03     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified MimeUtility: -encodeText: usingCharset: encoding:
	  so that when we see a '?', we append directly the =3f code.
	  This is to be fully RFC2047 compliant.
	* Added missing return in MimeUtility: --encodeText: usingCharset: 
	  encoding: when the encoding was BASE64.


2001-12-30     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified MimeBodyPart: -initWithString so that we remove
          the extra junk for multipart/appledouble before the mime
          boundary if we need to (like we do for multipart/alternative).
          This fix some warning we had.
	* Modified Parser: -parseContentType: inPart: so that when
	  we decode our boundary, we read the substring only between
	  the quotes if we have some and if not, we read the boundary
	  until the end of the string. This fix a bug with mailman for
	  example that adds junk after the Content-Type.


2001-12-28     Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified UTF8.h to make the class inherit from NSObject.


2001-12-26      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified Message: -setContentFromRawSource to verify not only
          for image/* Content-Types but also application/*, audio/* and
          video/*.


2001-12-25      Ludovic Marcotte <ludovic@Sophos.ca>

        * Applied a small fix in MimeUtility: -unfoldSoftLineBreaksFromString.
          We now make our new range from aRange.location instead of
          aRange.location + 1. Modified the length of our new range too.


2001-12-23      Ludovic Marcotte <ludovic@Sophos.ca>

        * Applied a small fix in MimeUtility: -unfoldSoftLineBreaksFromString.
          we were replacing "=\n" by "\n" instead of just deleting that
          range of characters.


2001-12-22      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified Message: -setContentFromRaw source. When
          the Content-Transfer-Encoding is quoted-printable,
          we actually decode our string so we don't do it
          in Utilities.m (from GNUMail.app) but rather inside
          the library.
	* Modified MimeBodyPart: -initWithString so that when
	  the Content-Transfer-Encoding is quoted-printable,
	  we don't break our string on \n and decode all the lines
	  but rather decode the string directly.
	* Optimized MimeUtility: -foldStringUsingSoftLineBreaks:
							 length:


2001-12-21      Ludovic Marcotte <ludovic@Sophos.ca>

        * We now make an extra verification in MimeBodyPart:
          -initWithString when the Content-Type is a
          multipart/alternative before removing the 'junk'.
          We now also verify that our aRange has a length > 0
          and a location > 0.


2001-12-20      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified Message: -forward to be use the same code as
	  text/plain parts when we want to forward a message
	  with a Content-Type of text/enriched.


2001-12-19      Ludovic Marcotte <ludovic@Sophos.ca>

        * Added GSMD5.h/.m from gscrypt. Modified this class to not
	  depend on other gscrypt's classes and also refactored a
	  little bit the code.
	* Added GSMD5.h/.m to the GNUmakefile
	* Added POP3Store: -apopAuthenticateWithUsername: password:
	  and POP3Store: -useAPOP and -setUseAPOP to allow APOP
	  authentication.
	* Modified POP3Store: -authenticateWithUsername: password:
	  to use apopAuthenticateWithUsername: password: if the server
	  only supports APOP or if we must use APOP. Done TODO #48.
	* Modified MimeUtility: +decodeStringFromQuotedPrintable: charset:
	  to use a 'local' autorelease pool that we release every 100th
	  iteration in the loop. This fix the problem of messages eating
	  A LOT of RAM when being decoded from QP (if they are big).
	* Modified LocalFolder: -appendMessageFromRawSource to replace
	  all occurences of "\nFrom " to "\n>From ". Otherwise, it will
	  break the mbox format.
	* Added GNUmakefile.postamble and modified GNUmakefile to include
	  it. Done TODO #31.
	* Modified Parser: +parseSubject: inMessage: to support empty
	  subjects.
	* Done the same thing for +parseOrganization: inMessage:
	                          +parseContentDisposition: inPart:
				  +parseContentID: inPart:
				  +parseContentTransferEncoding: inPart:
				  +parseContentType: inPart:
				  +parseDate: inMessage:
				  +parseDestination: forType: inMessage:
				  +parseFrom: inMessage: 
				  +parseMessageID: inMessage:
				  +parseMimeVersion: inMessage:
				  +parseReplyTo: inMessage:
				  +parseResentFrom: inMessage:
				  +parseStatus: inMessage:
				  +parseXStatus: inMessage:
	* Modified POP3Store: -initWithName: port: to set 
	  useAPOP to NO by default.
	* Done TODO #62. Patch from Vicent Ricard <magicninja@wanadoo.fr>.
	  Added new class: UTF8.
	  Modified the GNUmakefile to include it.
	* Added MimeUtility: +decodeStringFromUTF8 which uses the new class
	  UTF8.
	* Modified MimeUtility: +decodeStringFromQuotedPrintable: charset:
	  to use MimeUtility: +decodeStringFromUTF8 if the charset
	  is UTF-8.
	* Added missing #import <Pantomime/Constants.h> in UTF8.m
	* Updated MacOS-X project file.
	* Corrected a tiny bug of a misplace ; in GSMD5.m


2001-12-18      Ludovic Marcotte <ludovic@Sophos.ca>

        * Removed all references to the NSUserDefaults in Message.m
	* Added Parser: +parseOrganization: inMessage:
	  and modified LocalFolder: -parse and Message: -setHeaders
	  to use this method.
	* Added Message: -setOrganization and -organization to set and
	  get the Organization header value.
	* Removed TODO #8. We now define -authenticateWithUsername:
	                                                  password:
	  in the Service protocol and we implement this method in
	  SMTP.m (dummy implementation right now).
	* Cleaned some headers and the TODO list.
	* Done TODO #58. Implemented MimeUtility: +encodeWordUsingBase64
	  and modified MimeUtility: +encodeText: usingCharset: encoding:
	  to use it.
	* Changed POP3Store: -responseFromServerIsValid to
	  -responseFromServerIsValid: (NSString **) theResponse so we can
	  read back the response from our server. Updated all methods calls
	  in POP3Store.m and POP3Folder.m
	* Added POP3Store: -timestamp and -setTimestamp for APOP support
	* Modified POP3Store: -initWithName: port: to detect APOP support


2001-12-17      Ludovic Marcotte <ludovic@Sophos.ca>

        * We include <sys/time.h> in TCPConnection.m
	* Refactored SMTP so that we use TCPConnection. 
	* Same thing for POP3Store and POP3Folder
	* Same thing for IMAPStore and IMAPFolder
	* Removed unused methods from Service.h
	* Added TCPConnection: -readLineBySkippingCR: so
	  that we can generalize the process of reading a line
	  for SMTP, POP3 and IMAP.
	  Modified -readLine to call readLineBySkippingCR with
	  NO as the parameter. YES is passed only when
	  using IMAP.
	* Modified Message.m to now use the version number 0.9.0.
	* Modified MimeUtility: -wrapPlainTextString:
	                          usingWrappingLimit:
	  and -foldStringUsingSoftLineBreaks: length: since we
	  were removing the last two characters and not the
	  last one.
	* Same thing for MimeUtility: -_breakWord: usingLimit:
	* Added missing #import of Constants.h in TCPConnection.m
	* Updated MacOS-X project file (added TCPConnection)


2001-12-16      Ludovic Marcotte <ludovic@Sophos.ca>

        * Done TODO #66. Added TCPConnection with non-blocking
          connect. Needs more work for read/write operations and
          needs to be integrated in all classes that do socket I/Os.
	* Fixed a bug in POP3Folder: -transferMessagesToFolder. We
	  now correctly delete the messages if we don't need to keep
	  them on the server.
	* Done the same thing in POP3Folder: -prefetch.


2001-12-14      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified IMAPFolder: -prefetchMessageBodyWithUID so that
	  we verify that aString isn't nil before adding it to our
	  mutable string since under OS-X, appending a nil value
	  to a NSMutableString will generate a segfault.
	* RELEASE OF 0.8.0.
	* Added tag v0_8_0 for current files
	
	
2001-12-12      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified LocalFolder: -close to catch potential errors
	  while saving the mailbox to a temporary file. If an error
	  occurs, we don't remove the original one.


2001-12-11	Francis Lachapelle <francis@Sophos.ca>
    	
	* Improved Project Buillder file definition


2001-12-11      Ludovic Marcotte <ludovic@Sophos.ca>

        * 'Finished' the implementation of wrapPlainTextString: 
	   usingWrappingLimit:. This method WILL have to be rewritten
	   since it's VERY ugly.
	* Added MimeUtility: _breakWord: usingLimit: to break a word
	  that is longer than a specified limit into words separated
	  by \n.


2001-12-10      Ludovic Marcotte <ludovic@Sophos.ca>

        * Added MimeUtility: -wrapPlainTextString: usingWrappingLimit:
          to wrap text/plain messages to the specified line limit. This
          method is just a skeleton.


2001-12-09      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified MimeUtility: -decodeText so that we make
          an initial verification to see if the text has been
          QP/Base64 encoded before created the mutable string
          and looping. It should make the parsing of mailboxes
          a little bit faster. It also reduce memory requirements.
	* Fixed a small leak in both Message.m and MimeBodyPart.m when
	  decoding message/rfc822 messages. We were not releasing
	  the new message after setting it as the content.


2001-12-08      Ludovic Marcotte <ludovic@Sophos.ca>

        * Implemented the support of message/rfc822 as the
          Content-Type of messages (not only mime body parts).
	* Fixed Message: -forward when we try to forward messages
	  that has message/rfc822 as their Content-Type.
	* Done the same thing for Message: -replyWithReplyToAll.
	

2001-12-06      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified MimeUtility: +generateBoundary to include "=_" at
	  the beginning of the generated boundary like it's recommended
	  in RFC2045 - 6.7.
	* Created MimeUtility: +unfoldSoftLineBreaksFromString.
	* Modified Message and MimeBodyPart to use this new method.
	* Created MimeUtility: +foldStringUsingSoftLineBreaks: length:
	  to fold using the soft line breaks methods the line that
	  are longer than length.
	* Fixed a bug in Message: -forward, we weren't keeping the
	  Content-Transfer-Encoding and the Charset of the text parts.
	* Modified Message: -replyWithReplyToAll to set the In-Reply-To
	  header when replying to an E-Mail. Modified Message:
	  -stringValueUsingSendingMode to actually use this header.


2001-12-05      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified MimeBodyPart: -initWithString so that we consider
	  "binary" content transfer encoding like 8bit.
	* Modified MimeBodyPart: -initWithString so that we remove
	  the 'junk' before the real boundary of a multipart/alternative
	  part.
	* Modified Message: -setContentFromRawSource so that we remove
	  the first \n only if it's present. Done the same thing in
	  MimeBodyPart: -initWithString.
	* Since we made the last modification, changed the comparison:
	  if (! [aString hasPrefix: @"-\n"] ) to:
	  if (! [aString hasPrefix: @"--\n"] ) in both Message and
	  MimeBodyPart.
	* Refactored some other parts of MimeBodyPart.
	
2001-12-03      Ludovic Marcotte <ludovic@Sophos.ca>

        * In Charset: - characterIsInCharset added a test to
	  verify that the character isn't a control character.
	  If it is, we simply return YES.

	  
2001-11-30	Francis Lachapelle <francis@Sophos.ca>

	* Added tag v0_7_0 for current files

2001-11-30      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified Message.m since we are now at 0.8.0
	* Modified POP3Folder: -prefetch so we don't use
	  the autorelease pool.
	* Done the same thing in IMAPFolder: -prefetch and
	  in -prefetchNewMessagesStartingAtUID.
	* Modified Charset: -characterForCode so that we
	  never return nil but if the character isn't found,
	  we return @"".


2001-11-30      Ludovic Marcotte <ludovic@Sophos.ca>

        * RELEASE OF 0.7.0


2001-11-29      Ludovic Marcotte <ludovic@Sophos.ca>

        * Fixed Message: -setContentFromRawSource to unfold
	  soft-folded lines in a Content-Type: text/plain with
	  a Content-Transer-Encoding set to QP.
	* Modified MimeBodyPart to support multipart/appledouble
	* Added MimeBodyPart: _mimeMultipartFromRawSource
	  to reuse code defined when parsing multipart/alternative
	  parts for multipart/appledouble.
	* Fixed a memory leak in Message: -forward. We were not
	  releasing the newMimeBodyPart.
	* Fixed a memory leak in Message: -forward. We were not
	  releasing the newMimeMultipart.
	* Fixed a bug in IMAPStore: -authenticateWithUsername: ...
	  It should now work with all kind of imap servers.
	* Modified IMAPFolder: -prefetchNewMessagesStartingAtUID so
	  that we use an autorelease pool for each loop iteration
	  since that method is very memory-consuming on the standard
	  autorelease pool.
	* Modified LocalFolder: -parse and Message:
	  -setContentFromRawSource to use a new autorelease pool
	  while beeing in those methods since they can be memory
	  consuming on our default autorelease pool.
	* Removed unused variable in LocalMessage: -setInitialized


2001-11-26      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified Message: -setContentFromRawSource and
	  MimeBodyPart: -initWithString to make an extra
	  verification when we decode the parts to be sure
	  that the length of the strings (ie., components)
	  separated by the boundary are not nil and have a
	  length > 0.


2001-11-25      Ludovic Marcotte <ludovic@Sophos.ca>

        * Implemented multipart/alternative support in
          MimeBodyPart: -initWithString.
	* Fixed two small memory leaks in MimeBodyPart:
	  -initWithString.
	  -initWithName: port:

	  Same thing in LocalStore, LocalMessage, Message,
	  POP3Store, SMTP and IMAPStore.

	  All those leaks could append if the init* methods
	  of those classes were failing (returning nil). We
	  were not autoreleasing the object 'self'.


2001-11-24      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified IMAPStore: -authenticateWithUsername: password:
          to quote the password if it contains punctuation
          characters.


2001-11-23      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified Message: -stringValueUsingSendingMode: so that
	  under OS-X, we initialize aLocale properly. Patch from
	  Stephane Corthesy <stephane@sente.ch>.


2001-11-22      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified LocalFolder/LocalStore so that we don't
	  need to parse a folder when we open it. For example,
	  that might be useful if we simply want to append
	  a message from raw source and close the folder right
	  after this operation.
	* Added Charset: -characterIsInCharset to verify if a
	  character is in this charset. Patch from Vincent Ricard.
	* Optimized MimeUtility: -charsetForString. Patch from
	  Vincent Ricard.
	* Updated charsets/CharsetDecoder to use
	  #import <Pantomime/...> instead of #import <...>

	  
2001-11-21      Ludovic Marcotte <ludovic@Sophos.ca>

        * Refactored LocalFolder: -parse (removed unused code)
	  and fixed a bug if the last message of the mbox file
	  was an empty message. Suggestion by Alexander Malmberg
	* Reorganized all the source code
	* Some cleanups after import.
	* Updated Project Builder project file for MacOS-X.
	* Added English.lproj/InfoPlist.strings


2001-11-20      Ludovic Marcotte <ludovic@Sophos.ca>

        * Added Pantomime.h (From Stephane Corthesy 
	  <stephane@sente.ch>) to ease #imports in projects
	  depending on Pantomime.
	* Added a patch from Stephane Corthesy that modifies
	  all #imports in .h files, and uses #import
	  <Pantomime/...> instead of  #import "...". It corrects
	  a var initialization in LocalFolder.m, adds a missing
	  initialization in Parser.m, and adds a cast in strincmp.c
	  to  avoid a #warning. 
	* Optimized MimeUtility: -decodeStringFromQuotedPrintable:
	 			  charset:
	  We now replace the characters in a range instead of using
	  a mutable string. It's an order of magnitude faster than
	  before. 
	* Added RFCs 2045 and 2046.
	* Changed the generation of QP codes from lowercase to
	  uppercase. Suggestion by Vicent Ricard to be more
	  RFC2045 compliant.
	* Fixed the GNUmakefile to skip warning from the patch
	  from Stephane Corthesy.
	* Added MacOS-X project file


2001-11-19      Ludovic Marcotte <ludovic@Sophos.ca>
	
	* Modified MimeBodyPart: -initWithString so that
	  we verify that we don't have an empty body
	  part content.
	* Updated Testing/Pantomime.m
	

2001-11-18      Ludovic Marcotte <ludovic@Sophos.ca>

        * Refactored a lot of files to eliminate all
          warning under MacOS-X and GNUstep/Linux.
        * Changed the GNUmakefile to include -Wall when
          we compile


2001-11-16      Ludovic Marcotte <ludovic@Sophos.ca>

        * Renamed POP3Store: -verifyResponse to
	  -responseFromServerIsValid
	* Modified InternetAddress: -personal so that we
	  return a quoted string if the string contains
	  a ',' and is not currently quoted. TODO #75


2001-11-15      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified Message: -setHeaders so that we always
	  unfold the string received before trying to decode
	  the headers. This fix the bug that GNUMail.app was
	  showing the content of an attachment since the
	  mime boundary was folded on an other line, sometimes.


2001-11-14      Ludovic Marcotte <ludovic@Sophos.ca>

        * Added Parser: -parseResentFrom: inMessage:
	* Added SMTP: -sendMessage: withRawSource in order
	  to make it possible to reuse the code for sending
	  messages when we send them as rawSource.
	* Refactored SMTP to use this new method
	* Modified Message: -setHeaders in order to parse
	  the Resent-From, Resent-To, Resent-Cc, Resent-Bcc.
	* Modified SMTP: -writeMailBody: toSocket: so that
	  it returns a BOOL. YES on sucess, NO otherwise.
	* Modified SMTP: -writeRecipients: toSocket ..
	  so that we verify that we have at least one
	  recipient. If NO, we return NO.
	* Modified Message: -stringValueUsingSendingMode to
	  remove any references to bounce operations.
	* Modified Message: -setHeaders to NOT try to parse
	  "From -" as an internet address.
	* Removed some 'bounce' related items in TODO


2001-11-13      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified Message: -stringValueUsingSendingMode so we
          now add our additional headers (beginning with X-)


2001-11-12      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified Message: -replyWithReplyToAll and -forward so that
	  we now return a message in the autorelease pool.


2001-11-08      Ludovic Marcotte <ludovic@Sophos.ca>

        * In MimeUtility, moved the charsets cache in +initialize (TODO #77).


2001-11-07      Ludovic Marcotte <ludovic@Sophos.ca>

        * Fixed a range bug in NSStringExtensions -stringByTrimmingWhiteSpaces
	* Modified NSStringExtensions so that if we are under GNUstep, we
	  use the method stringByTrimmingSpaces which is quite efficient.
	  Otherwise, we use our own method.
	* Added a new RFC (RFC2646) in rfcs/
	* Removed the #ifdef in NSStringExtensions.h
	* Now imports NSStringExtensions.h in Parser.m


2001-11-06      Ludovic Marcotte <ludovic@Sophos.ca>

        * In Message: -setHeaders we verify if the string received is not
	  nil or if it's length > 0
	* Optimized LocalFolder: -parse so we don't create a mutable string
	  to build all the headers but we rather parse them directly. Left
	  the old code here in case something is wrong.
	* Fixed a memory leak in LocalFolder: -unfoldLinesStartingWith
	* We now use static buffers in LocalFolder: -unfoldLinesStartingWith
	* We use static buffers again in LocalFolder: -parse and -close
	* Done the same thing in LocalMessage: -rawSource and -setInitialized
	* Removed the used of the autorelease pool in most methods in Parser
	* In Message: -setContentFromRAWSource removed the used of the
	  autorelease pool.
	* Modified Message: -init so that we use an initial capacity for the
	  dictionary holding all our headers to avoid a lot of reallocation.
	* Fixed a potential bug in InternetAddress: -initWithString. We
	  now verify that the address has been correctly parsed. If not,
	  we simply return nil.
	* Done some refactoring in most classes
	* Updated Testing/Pantomime.m
	* Modifie NSStringExtention to ALWAYS include our own version of
	  stringByTrimmingWhiteSpaces since GNUstep's version consume a
	  mammoth amount of RAM


2001-11-02      Ludovic Marcotte <ludovic@Sophos.ca>

        * Refactored some code (MimeUtility)
	* Modified IMAPStore and IMAPFolder so they both now
	  work way better with most IMAP servers.


2001-10-31      Ludovic Marcotte <ludovic@Sophos.ca>

        * Implemented + (NSString *) encodeText: (NSString *) theText and
	  + (NSString *) encodeText: (NSString *) theText
	  	       usingCharset: (Charset *) theCharset
		           encoding: (int) encoding
	  in order to provide a mechanism to encode the body of messages.
	* Fixed a bug in MimeUtility: -stringByRemovingLineFeedCharacters
	  patch from Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>.
	* Modified Message: -stringValueUsingSendingMode so that we
	  specify the charset to our Content-Type header value and 
	  the Content-Transfer-Encoding value when our message has the
	  Content-Type == "text/plain"
	* Fixed MimeBodyPart: -stringValueUsingSendingMode so that we include
	  the charset in our Content-Type
	* Removed some unused NSLog calls in MimeBodyPart: 
	  -stringValueUsingSendingMode
	* Fixed a bug in LocalFolder: -parse. We were only reading a buffer
	  of 128 characters while we had a buffer of 1024 characters.
	  This would cause a problem with headers that are longer than 128
	  characters.
	* Done the same thing in LocalFolder: -close.
			   
2001-10-29      Ludovic Marcotte <ludovic@Sophos.ca>

        * Fixed a bug in Parser: + (void) parseContentType: inPart:
	  We now trim the receiving content-type in case we have:
	  Content-Type:     text/plain.
	* Modified Message: -setHeaders so we parse the
	  Content-Transfer-Encoding header.
	* Implemented NSStringExtension: -stringByRemovingLineFeedCharacters
	  that destructively removes \n characters into a string
	* Modified MimeBodyPart to use this function (and kept the old 
          code in case something is wrong)
	* Implemented the support of image/* as the only content of a mail
	  in Message: -setContentFromRawSource
	* Modified Message: -setHeaders so we parse the
	  Content-Disposition header.


2001-10-27      Ludovic Marcotte <ludovic@Sophos.ca>

        * Fixed a memory leak in Charset.m. We were retaining
          the dict object and we shouldn't have to.


2001-10-26      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified Message.m so we are now using the version number
	  0.7.0
	* We now generate the date in Message: -stringValueUsingSendingMode
	  ONLY in english.


2001-10-25      Ludovic Marcotte <ludovic@Sophos.ca>

        * Released 0.6.0.
	

2001-10-24      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified LocalFolder: -initWithPathToFile so that we remove
	  the <name>.tmp file in case there's one.

	
2001-10-23      Ludovic Marcotte <ludovic@Sophos.ca>

        * Changed Message: -setContentFromRawSource so we compare
	  with text/* and not only text/plain. The MUA will do the
	  formatting.


2001-10-22      Ludovic Marcotte <ludovic@Sophos.ca>

        * Fixed a 'crash' when releasing fileManager in LocalStore: -dealloc.
	  We now RETAIN fileManager in -initWithPathToDirectory.


2001-10-19      Ludovic Marcotte <ludovic@Sophos.ca>

        * Removed a NSLog from Part: -setContentID.
	* Created MimeUtility: -isASCIIString
	* In Folder: we do NOT retain the store and we don't release
	  it in dealloc
        * In Message: we do NOT retain our folder and we don't retain it	


2001-10-18      Ludovic Marcotte <ludovic@Sophos.ca>

	* Fixed a serious bug in LocalFolder: -appendMessageFromRawSource 
	  we were checking for "From -" instead of "From "


2001-10-16      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified MimeBodyPart: -init to support message/rfc822.
	  It's an initial implementation.
	* Modified Part.m to exclude some NSLog from the compilation
	* Implemented MimeUtility:
	  + (NSString *) unfoldLinesFromString: (NSString *) theString in
	  order to simplify the unfolding of lines in various parts of
	  messages and mimebody parts (I still need to 'deploy' it in the
	  code)
	* Fixed MimeBodyPart: -init to unfold the headers of a
	  message/rfc822.
	* Fixed POP3Store: -authenticateWithUsername:password:. We were
	  not returning NO in case of a bad password.


2001-10-15      Ludovic Marcotte <ludovic@Sophos.ca>

        * Changed MacOSGlue to what it was before and removed it from the 
	  building process on GNUstep.
	* Fixed Message: -replyWithReplyToAll and -forward so we use the
	  unicode string of an InternetAddress
	* Sendmail: -sendMessageFromRawSource removed the reference to
	  NSRunAlertPanel. We don't need that. Especially in Pantomime
	  that won't necessarily use AppKit
	* In POP3Store, moved #import "Constants.h" outside the 
	  #ifdef MACOSX
	* In date_util.c, we now #include <stdlib.h> for atoi()


2001-10-12      Ludovic Marcotte <ludovic@Sophos.ca>

        * Integrated a patch from Stephane Corthesy <stephane@sente.ch> so
	  that it cleans some stuff and makes Pantomime works under MacOS-X
	* Removed some #import <AppKit/AppKit.h>
	* Changed Message.m to 0.6.0
	* Modified MacOSXGlue.m so that it can link with GNUMail.app
	* Removed some junk in Testing/Pantomime.m


2001-10-11      Ludovic Marcotte <ludovic@Sophos.ca>

        * Added LICENSE.elm for the small parts of elm code we use.
	* Release of 0.5.0


2001-10-10      Ludovic Marcotte <ludovic@Sophos.ca>

        * Implemented MimeUtility: - charsetForString. Patch from
	  Vincent Ricard <vricard@wanadoo.fr>


2001-10-09      Ludovic Marcotte <ludovic@Sophos.ca>

        * Modified InternetAddress: -stringValue so that it encodes
	  the 'personal' value of an InternetAddress object before
	  returning it.
	* Created InternetAddress: -unicodeStringValue that returns
	  the string value of an InternetAddress w/o any encoding.
	* Re-implemented -name in all Charsets (TODO #67)
	* Modified charset/CharsetDecoder so that it includes an empty
	  body for -name methods
	* In MimeUtility: -encodeWordUsingQuotedPrintable now returns
	  @"" instead of nil.
	* Now defines DESTROY and CREATE_AUTORELEASE_POOL in Constants.h
	* In Message: -stringValueUsingSendingMode, we don't set the subject
	  if it's length is equal to zero. 
	* In LocalStore: -createFolderWithName we now verify that the folder
	  with the name theName is not actually present in our current store.

	
2001-10-08      Ludovic Marcotte <ludovic@Sophos.ca>

        * Return a default value whenever we use subclassResponsibility
          so that Pantomime can compiles 'cleanly' on MacOS-X

        
2001-10-05      Ludovic Marcotte <ludovic@Sophos.ca>

        * In LocalFolder: -close, added the name of the folder
	  in NSLog to make the debugging easier.


2001-10-04      Ludovic Marcotte <ludovic@Sophos.ca>

        * Fixed a bug in Parser: -parseMessageID: inMessage so that
	  we don't include the "<>" in the actual string of the
	  message ID.
	* Simplified MimeUtility: -decodeStringFromBase64


2001-10-03      Ludovic Marcotte <ludovic@Sophos.ca>

        * Fixed memory leaks in Parser: -parseFrom: inMessage:
                             in Parser: -parseDestination: forType:...
                             in Parser: -parseReplyTo: inMessage:
	* Optimized MimeUtility: -decodeText
	* Fixed memory leaks in MimeUtility: -charsetForName
	* Fixed a memory leak in Message: -formatRecipientsWithType
	* Fixed some memory leaks in Message: -stringValueUsingSendingMode
	* We no longer use the autorelease pool in Message: -forward
          and in Message: -setContentFromRawSource
	* Fixed some memory leaks in MimeBodyPart: -initWithString
	* Fixed a memory leak in MimeBodyPart: -stringValueUsingSendingMode
	* Fixed a memory leak in LocalMessage: -setInitialized
	* Fixed a memory leak in LocalFolder: -parse
	* Optimized LocalFolder: -unfoldLinesStartingWith so that we play
	  more with the cString before appending everything to our
	  mutable string. I left the old code here in case something is wrong
	  with the new one.
	* Optimized LocalFolder: -close to use appendFormat instead of
	  appendString for the mutable string.
	* Fixed a memory leak in LocalStore: -initWithPathToDirectory	
	* Fixed a memory leak in Flags: -init
	* Minor enhancements to InternetAddress
	* Optimized POP3Store/IMAPStore: -lineFromSocket. It's now FAST.
	  It clears TODO #41.
	* Fixed a memory leak in IMAPFolder: -deleteMessageWithUID
	* Fixed a memory leak in IMAPFolder: -fetchMessageFlagsWithUID
	* Optimized IMAPFolder: -setMessageFlags: forUID:
	* Fixed a memory leak in Part: -setCharseT
	* Fixed a memory leak in SMTP. Added -dealloc to release name.
	* Fixed a memory leak in Folder: -initWithName. Removed the RETAIN
	  on allMessages.


2001-10-02      Ludovic Marcotte <ludovic@Sophos.ca>

        * Changed all init methods in all classes to return non
	  AUTORELEASED object since it is NOT the "Cocoa way" of
	  doing things
	* Modified some other RETAIN/RELEASE/AUTORELEASE calls to
	  make it work correctly with the first changes I made.
	* Now every .m includes Constants.h in order to define the
	  RETAIN/RELEASE/... placeholders if we are not using
	  GNUstep
	* Fixed a memory leak in LocalFolder (a big one!)
	* In LocalFolder/POP3Folder/IMAPFolder, we should add the Message
	  in the AUTORELEASE pool before adding it to our folder (TODO #67)
	* Integrated new charset engine from Alexander Malmberg. It's now
	  way faster and more clean too. Thanks!
	

2001-10-01      Ludovic Marcotte <ludovic@Sophos.ca>

        * Added .cvsignore
	* We no longer include "nl_types.h" 
	* Implemented IMAPFolder: -prefetchNewMessagesStartingWithUID
	  in order to have better IMAP support when new mails arrive.

	
2001-09-28	Ludovic Marcotte <ludovic@Sophos.ca>

        * Imported source on CVS - module Pantomime
	* Implemented IMAPFolder: -noop and now call it
	  in prefetchMessageBodyForUID. We should call it in other
	  methods and in a separate thread.

	
2001-09-27      Ludovic Marcotte <ludovic@Sophos.ca>

        * Added in LocalFolder: -appendMessageFromRawSource a condition
	  to verify if From - is present. If not present, we add it.
	* A LOT of IMAP enchancements
	* Two new methods in Store: 
	
	- (BOOL) createFolderWithName: (NSString *) theName;
	- (BOOL) deleteFolderWithName: (NSString *) theName;

	* Lots of enchancements everywhere. 
	* RELEASE OF 0.4.0
	
2001-09-26      Ludovic Marcotte <ludovic@Sophos.ca>

        * Support of IMAP (nearly finished) - LOT of work on it
	* Reworked the support of the POP3 caching. Now it acts
	  like the IMAP cache. So it's easier to understand / maintain.


2001-09-25      Ludovic Marcotte <ludovic@Sophos.ca>

        * Added:

	  if ( theMode == SEND_TO_FOLDER )
	      {
	            [mstr appendString:@"\n"];
	      }
	  in Message -stringValueUsingSendingMode so that we can decode
	  correctly our message in Message -setContentFromRawSource when
	  when send it to Outbox.
	* Fixed a bug in IMAPStore: - initWithName. Changed port from 110 to
	  143.
	* Now support the UIDVALIDITY in IMAPFolder

2001-09-21       Ludovic Marcotte <ludovic@Sophos.ca>

        * Implemented Bounce support.
	
2001-09-20       Ludovic Marcotte <ludovic@Sophos.ca>

        * Finished support for POP3 Leave On Server
	  by integrating two new classes: POP3UID and POP3UIDManager.
	  Those classes are used in POP3Folder to manager the persistence
	  of a POP3 message on the server.
	* Initial support for MimeUtility: - charsetForString
	                                   - encodeWordUsingBase64
					   - encodeWordUsingQuotedPrintable

2001-09-19       Ludovic Marcotte <ludovic@Sophos.ca>

        * Initial support for POP3 Leave On server
	
2001-09-18       Ludovic Marcotte <ludovic@Sophos.ca>

        * More work on IMAP support

	
2001-09-18       Ludovic Marcotte <ludovic@Sophos.ca>

        * Created Message: - setContentFromRawSource: (NSObject *) theString
	* Modified SMTP: put the EHLO in init and the QUIT in close
	* Fixed a bug in MimeUtility (se bzero our buffer in 
	  encodeDataUsingBase64)
	* Created Transport: sendMessageFromRawSource: (NSString *) theString
	  implemented it in Sendmail, SMTP is a todo.
	* Cleaned SMTP
	* IMAPFolder -> now support the size of the messages
	* Fixed Message: -setFolder RETAIN/RELEASE (added them)
	* Fixed a bug in LocalFolder for NOT including From - lines
	* Released Pantomime 0.3.0

2001-09-17       Ludovic Marcotte <ludovic@Sophos.ca>

        * Fixed a small bug in LocalFolder: -appendMessageFromRawSource
	  Changed: [aMessage setSize: ( ftell( [self stream] ) - position) ]
	  to: [aMessage setSize: ( ftell( [self stream] ) - position + 1) ]
	* Finished POP3Store: - (Folder *) folderForName: (NSString *) theName
	                                        prefetch: (BOOL) aBOOL
	
2001-09-16       Ludovic Marcotte <ludovic@Sophos.ca>

        * Changed SEND_TO_OUTBOX to SEND_TO_FOLDER
	* Fixed a retain/release bug in Folder.m

        
2001-09-15       Ludovic Marcotte <ludovic@Sophos.ca>

        * New method expunge in Folder. Implemented it in LocalFolder.
        * Finished the implementation of -close in LocalFolder


2001-09-14       Ludovic Marcotte <ludovic@Sophos.ca>

        * Support the name parameter in Content-Type for MimeBodyPart
	  objects (TODO #42)
	* Support for the charset parameter in Content-Type
	* Support for all ISO-8859-X charsets when decoding
	* Finished LocalStore so it caches opened folders and you can
	  even obtain them by calling: -openedFoldersEnumerator
	* Fixed a small bug in the GNUmakefile (forgot to include
	  Service.h)
	* Now set the size of POP3Messages
	* Corrected a bug in LocalStore (folderEnumerator) and removed
	  setFolderEnumerator
	* Added LocalStore: - (BOOL) folderForNameIsOpen: (NSString *) theName
	  to verify if a folder is already open.

2001-09-13       Ludovic Marcotte <ludovic@Sophos.ca>

        * Fixed a small bug in MimeBodyPart. We now set the content
	  to a part directly to the string if the encoding is NONE
	  or EIGHTBIT  (added EIGHTBIT).


2001-09-13       Ludovic Marcotte <ludovic@Sophos.ca>

        * Speedups in MimeBodyPart
        * Speedups in POP3Folder
	* Fixed bug in Parser: parseContentType so that we trim
	  the white spaces at the beginning and at the end of
	  our boundary.
	* Added a check in Message: -setContent to see if the closing
	  mime boundary is missing or not:
	  
	  if (! [aString hasPrefix: @"-\n"] ) ...
       
        * Release 0.2.0

2001-09-12       Ludovic Marcotte <ludovic@Sophos.ca>

        * Speedups in LocalMessage
	* Changed name for methods 'fp/setFP' and added
	  bodyFilePosition/setBodyFilePosition in order
	  to parse way faster (in LocalMessage)
	* Implemented LocalStore: -folderForName
	* Mostly finished Testing/Pantomime.m
	* Fixed a small bug in Message: -initWithString. We use
	  for (j = i+1; j < [anArray count]; j++) instead of
	  j = i.
	* Fixed the generation of an ID (for Message-ID) in Message
	  (implemented the function in MimeUtility)
	* Fixed a small bug in MimeBodyPart: -initWithString. We now use:
	  
	  if ([aLine length] == 0 && !endOfHeaders)
	    {
	      endOfHeaders = YES;
			  	  
   	      i = i + 1;
	      aLine = [allMessageLines objectAtIndex: i];
	    }
          
	  instead of:
	  
	  if ([aLine length] == 0)
	    {
	      endOfHeaders = YES;
	    }

	 in order to prevent to add the \n that separates the
	 body part headers from the actual content of the body part.
	* Changed LocalMessage: setInitialized 
	  aMutableString = [[NSMutableString alloc] init] to:

	  lengthOfBody = ([self filePosition] + [self size] - 
	    [self bodyFilePosition])
	  aMutableString = [[NSMutableString alloc]
	    initWithCapacity: lengthOfBody];

	  In order to speedup the initialization of messages.
        

2001-09-11	 Ludovic Marcotte <ludovic@Sophos.ca>

        * Now compiles as a library
	* Moved test programs in Testing
	* Worked on Testing/Pantomime.m in order to have
	  a very good test program.

2001-09-10	Ludovic Marcotte <ludovic@Sophos.ca>

	* Initial implementation of IMAP
	* Cleaned a LOT of things in POP3 and other classes
	* We now use a more generic Service protocol in POP3Store,
	  IMAPStore and SMTP
	* Message: -rawSource now supported in all Folder modes
	* We can now append a message to a LocalFolder
	* Removed unused methods in Message (-isDeleted, -setDeleted)


2001-09-07	Ludovic Marcotte <ludovic@Sophos.ca>
	
	* Initial release (0.1.0)
