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