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