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