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