[corlib] Improve CancellationTokenSource test
[mono.git] / mcs / class / System / System.Net.Mail / ChangeLog
index e9d7df5f80d3c8b0f7c44d8c2768e2beae702429..4ef8abefea310755aee6e039df0fc59bf5c7c2c4 100644 (file)
@@ -1,3 +1,335 @@
+2010-06-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * SmtpClient.cs: support PLAIN authentication and throw if LOGIN and
+       PLAIN are not supported. Fixes bug #607249.
+
+2010-05-04  Miguel de Icaza  <miguel@novell.com>
+
+       * Apply patch from Ted Unangst to fix bug 574049
+
+2010-03-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * SmtpClient.cs: typo in reply-to header. Thanks to Chris Tomlinson.
+       Fixes bug #578271.
+
+2010-02-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * SmtpClient.cs: generate correct MIME when there are text and html
+       linked resources. Fixes bug #579984. Patch by Ásgeir Halldórsson.
+
+2010-01-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * SmtpClient.cs: rethrow inner exception so that
+       AsyncCompletedEventArgs.Error gets the right value on error. Patch
+       by Dimitar Dobrev.
+
+2009-12-11  Miguel de Icaza  <miguel@novell.com>
+
+       * SmtpClient.cs: Add half-implemented feature, TargetName for the
+       SPN SMTP system.
+       
+       * SmtpClient.cs, MailMessage.cs: Add 4.0 APIs.
+
+2009-08-20  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * SmtpClient.cs: Honor ServicePointManager.
+       ServerCertificateValidationCallback when provided
+
+2009-08-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * Attachment.cs: set the body encoding for multipart attachments.
+       Fixes bug #527177.
+
+2009-06-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * SmtpClient.cs: handle dots. Patch by Ted Unangst that fixes bug
+       #392875.
+
+2008-11-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * SmtpClient.cs: remove unused variable and obsolete comment.
+
+2008-09-17  Miguel de Icaza  <miguel@novell.com>
+
+       * SmtpClient.cs: Actually set some of the headers like Priority,
+       ReplyTo and Sender.
+
+2008-09-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SmtpClient.cs : attachment stream consumption was insufficient.
+         Fix bug #347553, by David Ion.
+
+2008-08-16  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * SmtpClient.cs: Fixed paramname of Argument(Null)Exceptions to match
+       MS. Removed upper limit check for Port. Modified Send to no longer
+       allow a whitespace-only Host. Moved checks for SpecifiedPickupDirectory
+       delivery method to SendFile, and use Path.IsPathRooted to check for
+       absolute paths instead of using a unix-only check. In Send, wrap all
+       non-SMTP errors in an SmtpException.
+       * SmtpException.cs: Correctly chain up all .ctors. Removed extra
+       null check in deserialization .ctor.
+
+2008-08-15  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SmtpClient.cs : fixed bug #382670, based on the patch by Ted
+         Unangst. DeriveryMethod.SpecifiedPickupDirectory was not supported.
+
+2008-08-14  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SmtpClient.cs : Patch by Ted Unangst, fixed bug #392843.
+         Encode emails correctly as well as join multiple emails
+         correctly.
+
+2008-08-12  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SmtpClient.cs : fixed bug #392682, in the same spirit in the
+         patch by Ted Unangst, to assure safety on socket closing.
+
+2008-08-07  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SmtpClient.cs : Fixed bug #392809, patch by Ted Unangst. Text body
+         was not copied to byte array which is being sent. 
+
+2008-04-21  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * SmtpClient.cs: Fix bug with string handling
+
+2008-04-21  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * SmtpClient.cs: Fix formatting
+
+2008-04-20 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
+
+       * SmtpClient.cs: made ParseExtension() work. After STARTTLS, reset
+       data retrieved from EHLO.
+       Fixes bug #377463.
+
+2008-04-03  Juraj Skripsky  <js@hotfeet.ch>
+
+       * Attachment.cs (InitName): Use Path.GetFileName instead of Substring hack.
+       Fixes bug #366947.
+
+2008-01-29  Juraj Skripsky  <js@hotfeet.ch>
+
+       * SmtpClient.cs (ToQuotedPrintable): Escape the escape character "=".
+
+2008-01-29  Juraj Skripsky  <js@hotfeet.ch>
+
+       * SmtpClient.cs: Remove ':' from the time zone offset in the
+       mail's date field. Fixes bug #351443.
+       (ToQuotedPrintable): Make sure text encoded as quoted-printable does
+       not contain more then 76 chars per line (required by rfc1521). Fixes
+       bug #351448.
+
+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.