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