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