2007-12-06 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System / System.Net.Mail / ChangeLog
index bb99a86765b169e97cc81d48aa5898f4ed2e53c6..d5e471420f8addd1daf2f851df68314885df19e0 100644 (file)
@@ -1,3 +1,228 @@
+2007-12-06  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * AlternateView.cs : supply charset info for ContentType.
+       * SmtpClient.cs : for ToQuotedPrintable() input, don't use utf8
+         StreamReader to get input string. Just use Encoding.GetBytes().
+         Fixed bug #346162.
+
+2007-12-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * MailMessage.cs : fixing cosmetic .net compatibility. Automatically
+         fill ASCII when guessed encoding is nothing.
+
+2007-12-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SmtpClient.cs : fold base64 string at 76 characters.
+         Should fix bug #344974.
+
+2007-12-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Attachment.cs : use correct TransferEncoding when (Text)Encoding
+         is specified.
+       * MailMessage.cs : ContentTransferEncoding implementation went into
+         ContentType.
+
+2007-12-04  Arina Itkes <arinai@mainsoft.com>
+
+       * SmtpException.cs, SmtpFailedRecipientException.cs,
+         SmtpFailedRecipientsException.cs: 
+         Changes for SOAP serialization compatibility with .NET. 
+
+2007-11-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       fixed bug #339037.
+       * AlternateView.cs : CreateAlternateViewFromString() allows null
+         Encoding.
+       * SmtpClient.cs : looks like when Body is null and AlternativeViews
+         contains only 1 item, then the alternate view becomes as if it
+         were just a body. To make this possible, added couple of more
+         transfer-encoding conversion methods.
+         For more AlternateViews cases, Body is treated
+         as empty. With attachments it is even complicated: those alternate
+         views are just in one boundary, so do not send empty string.
+         Removed debug output (Console.WriteLine).
+
+         What a mess.
+
+2007-10-30 Arina Itkes <arinai@mainsoft.com>
+
+       * SmtpClient.cs: Fix of SmtpClient.Read() method:
+       Added check of string position before calling 
+       Substring and IndexOf methods of string.
+
+2007-10-23  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SmtpClient.cs : small async refactory.
+
+2007-10-23  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SmtpClient.cs : Implemented async operations.
+
+2007-10-23  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Attachment.cs : reverted previous change. NameEncoding is not
+         guessed at set_Name().
+
+2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SmtpClient.cs : lunatic cyclic build.
+
+2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * AttachmentBase.cs : implemented Dispose(bool).
+
+2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * AttachmentCollection.cs : remove TODO.
+       * Attachment.cs : guess NameEncoding when set_Name().
+       * MailMessage.cs : moved encoding guess impl to ContentType.
+       * SmtpClient.cs : moved RFC 2047 encoding impl to ContentType.
+         Support attachment Name encoding. Added some SSL changes (it's not
+         working yet).
+
+2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SmtpClient.cs : attachment refactory. First, determine whether we
+         send multipart/mixed for attachments. Second, determine whether we
+         send multipart/alternative for AlternateViews.
+         Consider LinkedResources. Mark EnableSsl as TODO.
+
+2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * LinkedResource.cs : Now they are implemented and soon to be
+         supported. Fixed TransferEncoding (same as other AttachmentBase).
+
+2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Attachment.cs : null name is allowed.
+
+2007-10-19  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * AlternateView.cs, AttachmentView.cs, AttachmentBase.cs :
+         reverted default back to TransferEncoding.Base64 again, and use
+         QuotedPrintable only when created from string.
+         No need to check null Stream at AlternateView.ctor(). See base.
+       * SmtpClient.cs : For multipart message, do not send body twice (it
+         still emits extraneous part, which should be fixed too).
+         Do not premise charset existence in every AttachmentBase.
+
+2007-10-17  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * AlternateView.cs : dispose linked resources. Remove MonoTODOs.
+       * Attachment.cs : check null content string.
+         The string argument in .ctor(Stream,string) is name, not mediaType.
+         Use contentEncoding argument in CreateAttachmentFromString().
+       * AttachmentBase.cs : TransferEncoding default is QuotedPrintable.
+
+2007-10-17  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * MailMessage.cs : removed MonoTODO. some comment.
+       * SmtpException.cs, SmtpFailedRecipientsException.cs,
+         SmtpFailedRecipientException.cs : implemented serialization.
+
+2007-10-16  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SmtpClient.cs : use 3 StringBuilder.Replace() calls rather than
+         3 string.Replace() calls.
+
+2007-10-16  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SmtpClient.cs : do state check on other setters than set_Timeout().
+
+2007-10-16  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * MailMessage.cs : Some entire refactory on BodyEncoding and
+         IsBodyHtml. BodyEncoding and SubjectEncoding are guessed when
+         Body and Subject are set for each.
+       * SmtpClient.cs :
+         Subject header is encoded according to RFC 2047.
+         Body is encoded according to RFC 2821.
+         Output Date header.
+         ToQuotedPrintable() should take encoding into consideration.
+         For SevenBit/Unknown TransferEncoding, just decode with ASCII.
+         In set_UseDefaultCredentials(), raise NIE only when value is true.
+         In set_Timeout(), raise an error when Send() is in progress.
+
+2007-10-16  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SmtpClient.cs : Replace every \r and \n with \r\n per RFC 2821 
+         section 2.3.7, or you will receive SMTP error 451.
+
+2007-10-16  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * AlternateViewCollection.cs, LinkedResourceCollection.cs,
+         AttachmentCollection.cs : added missing 2.0 members.
+
+2007-06-17  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * MailAddress.cs: Throw ArgumentNullException if address is null.
+       Allow display name to be specified as part of the address. Fixes
+       bug #81854. Return zero-length string in DisplayName if no display 
+       name is set.
+
+2007-05-31  Jeffrey Stedfast  <fejj@gnome.org>
+
+       * SmtpClient.cs: Added an extensions parser to figure out if the
+       ESMTP server supports things like STARTTLS and which AUTH
+       mechanisms are supported. Don't try authenticating if no authmechs
+       are supported.
+
+2007-05-30  Jeffrey Stedfast  <fejj@novell.com>
+
+       * SmtpClient.cs: Fall back to HELO if EHLO fails. Also, do not
+       write out a Bcc header to the SMTP server - these are meant to be
+       dropped. MAIL FROM: and RCPT TO: commands are not meant to have a
+       space after the colon before the address - this will break on some
+       SMTP servers.
+
+2007-02-16  Geoff Norton  <gnorton@customerdna.com>
+
+       * SmtpClient.cs: Dont send bare LF.  Send <CR><LF> regardless
+       of platform.  (ref: http://cr.yp.to/docs/smtplf.html)
+
+2007-01-20  Miguel de Icaza  <miguel@novell.com>
+
+       * MailMessage.cs: Add suport to the MailMessage constructor to
+       take a comma-separated list of addresses (Bug #80548). 
+
+2006-12-12  Miguel de Icaza  <miguel@novell.com>
+
+       * MailMessage.cs: Fix this code so that it correctly reports
+       ArgumentNullExceptions.
+
+2006-12-12  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SmtpClient.cs : use CONFIGURATION_DEP when it is
+         System.Configuration.dll dependent.
+
+2006-12-10  David Elkind  <davide@mainsoft.com>
+
+       * Attachment.cs - proper file name handling added
+       * AttachmentBase.cs - proper MIME type handling added
+       * MailAddress.cs - Proper mail address handling ('<' and '>' addition) added
+       * MailMessage.cs - Better construction sequence
+       * SmtpClient.cs - Added proper handling of composite message (consisting of alternate views/attachments)
+                       - Added handling of user credentials 
+                       - Added handling of TLS (under TARGET_JVM)
+                       - Some other minor fixes
+
+2006-12-04  Konstantin Triger  <kostat@mainsoft.com>
+
+       * SmtpException.cs, SmtpFailedRecipientException.cs: TARGET_JVM limitation workaround.
+
+2006-12-01  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * SmtpClient.cs: Added MonoTODO for missing SSL/TLS support and 
+       updated existing MonoTODO (or changed them to FIXME) to be clearer
+       for anyone using the API.
+
+2006-10-31  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * SmtpException.cs: Fix visibility on .ctor(SerializationInfo,
+       StreamingContext).
+       * SmtpPermissionAttribute.cs: New (2.0). Security attribute for SMTP.
+       * SmtpPermission.cs: New (2.0). Security permission for SMTP.
+
 2006-09-28  Andrew Skiba  <andrews@mainsoft.com>
 
        * SmtpClient.cs: TARGET_JVM