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