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