[corlib] Improve CancellationTokenSource test
[mono.git] / mcs / class / System / System.Net.Mail / ChangeLog
1 2010-06-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
2
3         * SmtpClient.cs: support PLAIN authentication and throw if LOGIN and
4         PLAIN are not supported. Fixes bug #607249.
5
6 2010-05-04  Miguel de Icaza  <miguel@novell.com>
7
8         * Apply patch from Ted Unangst to fix bug 574049
9
10 2010-03-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
11
12         * SmtpClient.cs: typo in reply-to header. Thanks to Chris Tomlinson.
13         Fixes bug #578271.
14
15 2010-02-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
16
17         * SmtpClient.cs: generate correct MIME when there are text and html
18         linked resources. Fixes bug #579984. Patch by Ásgeir Halldórsson.
19
20 2010-01-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
21
22         * SmtpClient.cs: rethrow inner exception so that
23         AsyncCompletedEventArgs.Error gets the right value on error. Patch
24         by Dimitar Dobrev.
25
26 2009-12-11  Miguel de Icaza  <miguel@novell.com>
27
28         * SmtpClient.cs: Add half-implemented feature, TargetName for the
29         SPN SMTP system.
30         
31         * SmtpClient.cs, MailMessage.cs: Add 4.0 APIs.
32
33 2009-08-20  Sebastien Pouliot  <sebastien@ximian.com>
34
35         * SmtpClient.cs: Honor ServicePointManager.
36         ServerCertificateValidationCallback when provided
37
38 2009-08-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
39
40         * Attachment.cs: set the body encoding for multipart attachments.
41         Fixes bug #527177.
42
43 2009-06-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
44
45         * SmtpClient.cs: handle dots. Patch by Ted Unangst that fixes bug
46         #392875.
47
48 2008-11-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
49
50         * SmtpClient.cs: remove unused variable and obsolete comment.
51
52 2008-09-17  Miguel de Icaza  <miguel@novell.com>
53
54         * SmtpClient.cs: Actually set some of the headers like Priority,
55         ReplyTo and Sender.
56
57 2008-09-05  Atsushi Enomoto  <atsushi@ximian.com>
58
59         * SmtpClient.cs : attachment stream consumption was insufficient.
60           Fix bug #347553, by David Ion.
61
62 2008-08-16  Gert Driesen  <drieseng@users.sourceforge.net>
63
64         * SmtpClient.cs: Fixed paramname of Argument(Null)Exceptions to match
65         MS. Removed upper limit check for Port. Modified Send to no longer
66         allow a whitespace-only Host. Moved checks for SpecifiedPickupDirectory
67         delivery method to SendFile, and use Path.IsPathRooted to check for
68         absolute paths instead of using a unix-only check. In Send, wrap all
69         non-SMTP errors in an SmtpException.
70         * SmtpException.cs: Correctly chain up all .ctors. Removed extra
71         null check in deserialization .ctor.
72
73 2008-08-15  Atsushi Enomoto  <atsushi@ximian.com>
74
75         * SmtpClient.cs : fixed bug #382670, based on the patch by Ted
76           Unangst. DeriveryMethod.SpecifiedPickupDirectory was not supported.
77
78 2008-08-14  Atsushi Enomoto  <atsushi@ximian.com>
79
80         * SmtpClient.cs : Patch by Ted Unangst, fixed bug #392843.
81           Encode emails correctly as well as join multiple emails
82           correctly.
83
84 2008-08-12  Atsushi Enomoto  <atsushi@ximian.com>
85
86         * SmtpClient.cs : fixed bug #392682, in the same spirit in the
87           patch by Ted Unangst, to assure safety on socket closing.
88
89 2008-08-07  Atsushi Enomoto  <atsushi@ximian.com>
90
91         * SmtpClient.cs : Fixed bug #392809, patch by Ted Unangst. Text body
92           was not copied to byte array which is being sent. 
93
94 2008-04-21  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
95
96         * SmtpClient.cs: Fix bug with string handling
97
98 2008-04-21  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
99
100         * SmtpClient.cs: Fix formatting
101
102 2008-04-20 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
103
104         * SmtpClient.cs: made ParseExtension() work. After STARTTLS, reset
105         data retrieved from EHLO.
106         Fixes bug #377463.
107
108 2008-04-03  Juraj Skripsky  <js@hotfeet.ch>
109
110         * Attachment.cs (InitName): Use Path.GetFileName instead of Substring hack.
111         Fixes bug #366947.
112
113 2008-01-29  Juraj Skripsky  <js@hotfeet.ch>
114
115         * SmtpClient.cs (ToQuotedPrintable): Escape the escape character "=".
116
117 2008-01-29  Juraj Skripsky  <js@hotfeet.ch>
118
119         * SmtpClient.cs: Remove ':' from the time zone offset in the
120         mail's date field. Fixes bug #351443.
121         (ToQuotedPrintable): Make sure text encoded as quoted-printable does
122         not contain more then 76 chars per line (required by rfc1521). Fixes
123         bug #351448.
124
125 2007-12-06  Atsushi Enomoto  <atsushi@ximian.com>
126
127         * AlternateView.cs : supply charset info for ContentType.
128         * SmtpClient.cs : for ToQuotedPrintable() input, don't use utf8
129           StreamReader to get input string. Just use Encoding.GetBytes().
130           Fixed bug #346162.
131
132 2007-12-05  Atsushi Enomoto  <atsushi@ximian.com>
133
134         * MailMessage.cs : fixing cosmetic .net compatibility. Automatically
135           fill ASCII when guessed encoding is nothing.
136
137 2007-12-05  Atsushi Enomoto  <atsushi@ximian.com>
138
139         * SmtpClient.cs : fold base64 string at 76 characters.
140           Should fix bug #344974.
141
142 2007-12-05  Atsushi Enomoto  <atsushi@ximian.com>
143
144         * Attachment.cs : use correct TransferEncoding when (Text)Encoding
145           is specified.
146         * MailMessage.cs : ContentTransferEncoding implementation went into
147           ContentType.
148
149 2007-12-04  Arina Itkes <arinai@mainsoft.com>
150
151         * SmtpException.cs, SmtpFailedRecipientException.cs,
152           SmtpFailedRecipientsException.cs: 
153           Changes for SOAP serialization compatibility with .NET. 
154
155 2007-11-05  Atsushi Enomoto  <atsushi@ximian.com>
156
157         fixed bug #339037.
158         * AlternateView.cs : CreateAlternateViewFromString() allows null
159           Encoding.
160         * SmtpClient.cs : looks like when Body is null and AlternativeViews
161           contains only 1 item, then the alternate view becomes as if it
162           were just a body. To make this possible, added couple of more
163           transfer-encoding conversion methods.
164           For more AlternateViews cases, Body is treated
165           as empty. With attachments it is even complicated: those alternate
166           views are just in one boundary, so do not send empty string.
167           Removed debug output (Console.WriteLine).
168
169           What a mess.
170
171 2007-10-30 Arina Itkes <arinai@mainsoft.com>
172
173         * SmtpClient.cs: Fix of SmtpClient.Read() method:
174         Added check of string position before calling 
175         Substring and IndexOf methods of string.
176
177 2007-10-23  Atsushi Enomoto  <atsushi@ximian.com>
178
179         * SmtpClient.cs : small async refactory.
180
181 2007-10-23  Atsushi Enomoto  <atsushi@ximian.com>
182
183         * SmtpClient.cs : Implemented async operations.
184
185 2007-10-23  Atsushi Enomoto  <atsushi@ximian.com>
186
187         * Attachment.cs : reverted previous change. NameEncoding is not
188           guessed at set_Name().
189
190 2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
191
192         * SmtpClient.cs : lunatic cyclic build.
193
194 2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
195
196         * AttachmentBase.cs : implemented Dispose(bool).
197
198 2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
199
200         * AttachmentCollection.cs : remove TODO.
201         * Attachment.cs : guess NameEncoding when set_Name().
202         * MailMessage.cs : moved encoding guess impl to ContentType.
203         * SmtpClient.cs : moved RFC 2047 encoding impl to ContentType.
204           Support attachment Name encoding. Added some SSL changes (it's not
205           working yet).
206
207 2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
208
209         * SmtpClient.cs : attachment refactory. First, determine whether we
210           send multipart/mixed for attachments. Second, determine whether we
211           send multipart/alternative for AlternateViews.
212           Consider LinkedResources. Mark EnableSsl as TODO.
213
214 2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
215
216         * LinkedResource.cs : Now they are implemented and soon to be
217           supported. Fixed TransferEncoding (same as other AttachmentBase).
218
219 2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>
220
221         * Attachment.cs : null name is allowed.
222
223 2007-10-19  Atsushi Enomoto  <atsushi@ximian.com>
224
225         * AlternateView.cs, AttachmentView.cs, AttachmentBase.cs :
226           reverted default back to TransferEncoding.Base64 again, and use
227           QuotedPrintable only when created from string.
228           No need to check null Stream at AlternateView.ctor(). See base.
229         * SmtpClient.cs : For multipart message, do not send body twice (it
230           still emits extraneous part, which should be fixed too).
231           Do not premise charset existence in every AttachmentBase.
232
233 2007-10-17  Atsushi Enomoto  <atsushi@ximian.com>
234
235         * AlternateView.cs : dispose linked resources. Remove MonoTODOs.
236         * Attachment.cs : check null content string.
237           The string argument in .ctor(Stream,string) is name, not mediaType.
238           Use contentEncoding argument in CreateAttachmentFromString().
239         * AttachmentBase.cs : TransferEncoding default is QuotedPrintable.
240
241 2007-10-17  Atsushi Enomoto  <atsushi@ximian.com>
242
243         * MailMessage.cs : removed MonoTODO. some comment.
244         * SmtpException.cs, SmtpFailedRecipientsException.cs,
245           SmtpFailedRecipientException.cs : implemented serialization.
246
247 2007-10-16  Atsushi Enomoto  <atsushi@ximian.com>
248
249         * SmtpClient.cs : use 3 StringBuilder.Replace() calls rather than
250           3 string.Replace() calls.
251
252 2007-10-16  Atsushi Enomoto  <atsushi@ximian.com>
253
254         * SmtpClient.cs : do state check on other setters than set_Timeout().
255
256 2007-10-16  Atsushi Enomoto  <atsushi@ximian.com>
257
258         * MailMessage.cs : Some entire refactory on BodyEncoding and
259           IsBodyHtml. BodyEncoding and SubjectEncoding are guessed when
260           Body and Subject are set for each.
261         * SmtpClient.cs :
262           Subject header is encoded according to RFC 2047.
263           Body is encoded according to RFC 2821.
264           Output Date header.
265           ToQuotedPrintable() should take encoding into consideration.
266           For SevenBit/Unknown TransferEncoding, just decode with ASCII.
267           In set_UseDefaultCredentials(), raise NIE only when value is true.
268           In set_Timeout(), raise an error when Send() is in progress.
269
270 2007-10-16  Atsushi Enomoto  <atsushi@ximian.com>
271
272         * SmtpClient.cs : Replace every \r and \n with \r\n per RFC 2821 
273           section 2.3.7, or you will receive SMTP error 451.
274
275 2007-10-16  Atsushi Enomoto  <atsushi@ximian.com>
276
277         * AlternateViewCollection.cs, LinkedResourceCollection.cs,
278           AttachmentCollection.cs : added missing 2.0 members.
279
280 2007-06-17  Gert Driesen  <drieseng@users.sourceforge.net>
281
282         * MailAddress.cs: Throw ArgumentNullException if address is null.
283         Allow display name to be specified as part of the address. Fixes
284         bug #81854. Return zero-length string in DisplayName if no display 
285         name is set.
286
287 2007-05-31  Jeffrey Stedfast  <fejj@gnome.org>
288
289         * SmtpClient.cs: Added an extensions parser to figure out if the
290         ESMTP server supports things like STARTTLS and which AUTH
291         mechanisms are supported. Don't try authenticating if no authmechs
292         are supported.
293
294 2007-05-30  Jeffrey Stedfast  <fejj@novell.com>
295
296         * SmtpClient.cs: Fall back to HELO if EHLO fails. Also, do not
297         write out a Bcc header to the SMTP server - these are meant to be
298         dropped. MAIL FROM: and RCPT TO: commands are not meant to have a
299         space after the colon before the address - this will break on some
300         SMTP servers.
301
302 2007-02-16  Geoff Norton  <gnorton@customerdna.com>
303
304         * SmtpClient.cs: Dont send bare LF.  Send <CR><LF> regardless
305         of platform.  (ref: http://cr.yp.to/docs/smtplf.html)
306
307 2007-01-20  Miguel de Icaza  <miguel@novell.com>
308
309         * MailMessage.cs: Add suport to the MailMessage constructor to
310         take a comma-separated list of addresses (Bug #80548). 
311
312 2006-12-12  Miguel de Icaza  <miguel@novell.com>
313
314         * MailMessage.cs: Fix this code so that it correctly reports
315         ArgumentNullExceptions.
316
317 2006-12-12  Atsushi Enomoto  <atsushi@ximian.com>
318
319         * SmtpClient.cs : use CONFIGURATION_DEP when it is
320           System.Configuration.dll dependent.
321
322 2006-12-10  David Elkind  <davide@mainsoft.com>
323
324         * Attachment.cs - proper file name handling added
325         * AttachmentBase.cs - proper MIME type handling added
326         * MailAddress.cs - Proper mail address handling ('<' and '>' addition) added
327         * MailMessage.cs - Better construction sequence
328         * SmtpClient.cs - Added proper handling of composite message (consisting of alternate views/attachments)
329                         - Added handling of user credentials 
330                         - Added handling of TLS (under TARGET_JVM)
331                         - Some other minor fixes
332
333 2006-12-04  Konstantin Triger  <kostat@mainsoft.com>
334
335         * SmtpException.cs, SmtpFailedRecipientException.cs: TARGET_JVM limitation workaround.
336
337 2006-12-01  Sebastien Pouliot  <sebastien@ximian.com>
338
339         * SmtpClient.cs: Added MonoTODO for missing SSL/TLS support and 
340         updated existing MonoTODO (or changed them to FIXME) to be clearer
341         for anyone using the API.
342
343 2006-10-31  Sebastien Pouliot  <sebastien@ximian.com>
344
345         * SmtpException.cs: Fix visibility on .ctor(SerializationInfo,
346         StreamingContext).
347         * SmtpPermissionAttribute.cs: New (2.0). Security attribute for SMTP.
348         * SmtpPermission.cs: New (2.0). Security permission for SMTP.
349
350 2006-09-28  Andrew Skiba  <andrews@mainsoft.com>
351
352         * SmtpClient.cs: TARGET_JVM
353
354 2006-03-11  Miguel de Icaza  <miguel@novell.com>
355
356         * MailAddress.cs: Comment out unused field to remove warning. 
357
358 2006-1-13  John Luke  <john.luke@gmail.com>
359
360         * MailMessage.cs: add [MonoTODO] for FormatException in ctor,
361         throw ArugmentNullException's from the ctors,
362         add internal BodyContentType property,
363         change BodyEncoding to use BodyContentType,
364         change IsBodyHtml to use BodyContentType,
365         * SmtpClient.cs: set timeout initially to 100000,
366         don't throw ArgumentOutOfRangeException when Timeout = 0,
367         add [MonoTODO] for set_host, and throw Exceptions for it,
368         add [MonoTODO] for UseDefaultCredentials,
369         get messageContentType from the message,
370         use "127.0.0.1" for Host and 25 for Port
371         if host or port is not specified until reading
372         them from the configuration files is done
373
374 2006-1-02  John Luke  <john.luke@gmail.com>
375
376         * DeliveryNotificationOptions: fix value of Delay
377         
378 2005-12-26  John Luke  <john.luke@gmail.com>
379
380         * AttachmentCollection.cs: mark sealed
381         * DeliveryNotificationOptions.cs: fix values
382         
383 2005-12-25  John Luke  <john.luke@gmail.com>
384
385         * SmtpStatusCode.cs: OK > Ok
386         * AttachmentBase.cs: ContentID > ContentId,
387         add set_ContentType
388         * AlternateViewCollection.cs: remove destructor,
389         make default ctor internal
390         * MailMessage.cs: add default ctor,
391         remove destructor
392         * Attachment.cs: add (string, string) ctor,
393         add set_NameEncoding
394         * LinkedResourceCollection.cs: remove destructor,
395         make default ctor internal
396         * AttachmentCollection.cs: mark Dispose virtual,
397         add ISerializable, make default ctor internal
398
399 2005-12-24  John Luke  <john.luke@gmail.com>
400
401         * LinkedResource.cs: new File
402         * AttachmentBase.cs: new File
403         * MailPriority.cs: new File
404         * AlternateViewCollection.cs: new File
405         * DeliveryNotificationOptions.cs: new File
406         * SmtpFailedRecipientException.cs: new File
407         * AlternateView.cs: new File
408         * LinkedResourceCollection.cs: new File
409         * MailMessage.cs: add some missing properties, update API for 2.0 final 
410         * Attachment.cs: inherit from AttachmentBase, update API for 2.0 final
411         * MailAddress.cs: fix ToString, override Equals and GetHashCode
412         * SmtpFailedRecipientsException.cs: use SmtpFailedRecipientException
413         * SmtpException.cs: add [Serializable], ISerializable
414         * MailAddressCollection.cs: inherit from Collection<MailAddress>
415         * AttachmentCollection.cs: inherit from Collection<Attachment>
416         * SmtpAccess.cs: add missing value
417         * SmtpClient.cs: update for 2.0 final API
418         * SmtpStatusCode.cs: add missing value
419 2005-12-24  John Luke  <john.luke@gmail.com>
420
421         * MailMessage.cs: use text/plain by default,
422         patch by Andy Waddell <awaddell@fnfr.com>,
423         fixes bug #76972
424
425 2005-12-22  John Luke  <john.luke@gmail.com>
426
427         * SmtpClient.cs: remove use of TransferEncodings that
428         no longer exist in .net 2 final API
429         
430 2005-12-14  Chris Toshok  <toshok@ximian.com>
431
432         * SmtpDeliveryMethod.cs: new enum.
433
434 2004-09-10  Tim Coleman <tim@timcoleman.com>
435         * SmtpClient.cs SmtpFailedRecipientsException.cs:
436                 Add failed recipient exception handling.
437
438 2004-09-09  Tim Coleman <tim@timcoleman.com>
439         * AttachmentCollection.cs MailAddressCollection.cs:
440                 New classes
441         * Attachment.cs: Set content string
442         * MailMessage.cs: Use new collection classes
443         * SmtpClient.cs: Lots of MIME cleanup
444
445 2004-09-08  Tim Coleman <tim@timcoleman.com>
446         * Attachment.cs: Add SetContentFromFile methods
447         * MailMessage.cs: Add MIME-Version header
448         * SmtpClient.cs: Add some attachment handling.
449
450 2004-09-04  Tim Coleman <tim@timcoleman.com>
451         * Attachment.cs MailAddress.cs MailMessage.cs SendCompletedEventHandler.cs
452         * SmtpAccess.cs SmtpClient.cs SmtpException.cs SmtpStatusCode.cs:
453                 New class stubs for 2.0