Commit Graph
21 Commits
Author SHA1 Message Date
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Gonzalo Paniagua Javier 7dd124f59c Avoid key duplication error from bogus ContentType
Fixes bug #4542.
2012-04-20 13:57:22 -04:00
Gonzalo Paniagua Javier 2343162928 Fix To2047 2011-03-11 16:17:12 -05:00
Gonzalo Paniagua Javier 49afdb7c77 Fixed parsing of content-type parameters.
* ContentType.cs: correctly parse values inside double-quotes.
	Fixes bug #625026.
2010-08-10 11:37:29 -04:00
Zoltan Varga 5b6a9db59e 2009-09-23 Zoltan Varga <[email protected]>
* ContentType.cs: Fix the net 2.1 build.

svn path=/trunk/mcs/; revision=142486
2009-09-23 13:06:34 +00:00
Atsushi Eno 59c4c3dbd2 2009-04-02 Atsushi Enomoto <[email protected]>
* ContentType.cs : when there are especials, quote parameter values.

	* ContentTypeTest.cs : add quotation test for especials.


svn path=/trunk/mcs/; revision=130842
2009-04-02 08:22:05 +00:00
Atsushi Eno f20381f211 2008-08-14 Atsushi Enomoto <[email protected]>
* SmtpClient.cs : Patch by Ted Unangst, fixed bug #392843.
          Encode emails correctly as well as join multiple emails
          correctly.

        * ContentType.cs : patch by Ted Unangst, fixed bug #392843.
          handle RFC2047 encoding.


svn path=/trunk/mcs/; revision=110488
2008-08-14 15:31:41 +00:00
Atsushi Eno 2b45c53a53 2008-02-16 Atsushi Enomoto <[email protected]>
* ContentType.cs : Reject such MediaType that lacks '/'.
	  Do not reject such parameters that are not standard ones.

	* ContentTypeTest.cs : (oops we didn't have ChangeLog here) added
	  another .ctor() test.


svn path=/trunk/mcs/; revision=95854
2008-02-16 07:58:49 +00:00
Atsushi Eno 30a99519cf 2007-12-05 Atsushi Enomoto <[email protected]>
* ContentType.cs : for SubjectEncoding, null is returned instead of 
	  ASCII (.net compat way). For this cosmetic change, BodyEncoding is 
	  changed to fill ASCII automatically.

	* MailMessage.cs : fixing cosmetic .net compatibility. Automatically
	  fill ASCII when guessed encoding is nothing.

	* MailMessageTest.cs : fixed test to just compare codepage. I can't
	  stand with this trivial difference (w/ BOM or not) as regression,
	  and fixing this "regression" causes practical bug (garbage BOM
	  insertion).


svn path=/trunk/mcs/; revision=90771
2007-12-05 16:05:27 +00:00
Atsushi Eno 2dec17b103 2007-12-05 Atsushi Enomoto <[email protected]>
* Attachment.cs : use correct TransferEncoding when (Text)Encoding
	  is specified.
	* MailMessage.cs : ContentTransferEncoding implementation went into
	  ContentType.

	* ContentType.cs : added GuessTransferEncoding() to guess correct
	  encoding type for sys.net.mail.Attachment.
	  Here UTF8Encoding should not include BOM.


svn path=/trunk/mcs/; revision=90740
2007-12-05 09:49:37 +00:00
Atsushi Eno a822478ad4 2007-10-22 Atsushi Enomoto <[email protected]>
* ContentType.cs : moved couple of encoding stuff to here.
	  Encode non-ASCII value in RFC 2047.


svn path=/trunk/mcs/; revision=87906
2007-10-22 13:50:30 +00:00
Marek Habersack 214636ed74 2007-09-28 Marek Habersack <[email protected]>
* ContentDisposition.cs: if the file name contains spaces, enclose
	it in quotes. Fixes bug #324084.

svn path=/trunk/mcs/; revision=86562
2007-09-28 10:23:25 +00:00
John Luke bc6f90e373 2006-01-13 John Luke <[email protected]>
* ContentDisposition.cs: use String.Compare instead
        of comparing .ToLower's


svn path=/trunk/mcs/; revision=55539
2006-01-13 19:18:00 +00:00
John Luke a895acd659 2006-01-02 John Luke <[email protected]>
* ContentDisposition.cs: remove [MonoTODO]'s
        access and store the properties in Parameters
        ToString is now just DispositionType + the parameters
        * ContentType.cs: remove [MonoTODO]'s
        use parameters to store Name, Boundary, and CharSet
        ToString is now just MediaType + the parameters
        throw FormatException for unrecognized paremeter in ctor
        * TransferEncoding.cs: remove [Serializable]

svn path=/trunk/mcs/; revision=54993
2006-01-03 01:31:59 +00:00
John Luke d46799b1c9 2005-12-26 John Luke <[email protected]>
* ContentDisposition.cs: Size is -1 by default
        throw ArgumentNullException and ArgumentException for
        set_DispositionType
        * ContentType.cs: throw ArgumentNullException, ArgumentException,
        and FormatException for set_MediaType
        don't print Boundary,Name in ToString() if they are ""

svn path=/trunk/mcs/; revision=54852
2005-12-26 18:21:47 +00:00
John Luke e0262fc1cc 2005-12-23 John Luke <[email protected]>
* ContentDisposition.cs: override GetHashCode and
        Equals, implement ToString,
        fix Size to be long not int,
        implement Inline property,
        implement the ctors
        * ContentType.cs: override GetHashCode and Equals
        implement ToString, implement the ctors


svn path=/trunk/mcs/; revision=54825
2005-12-24 03:31:21 +00:00
John Luke 6df6dad96d add [Serializable] and fix the values of System.Net.Mime.TransferEncoding
svn path=/trunk/mcs/; revision=54770
2005-12-23 04:00:11 +00:00
John Luke b6441ad3f9 2005-12-22 John Luke <[email protected]>
minor updates I noticed for 2.0 final API
        * DispositionTypeNames.cs: change to a static class
        * MediaTypeNames.cs: change these to static classes
        * TransferEncoding.cs: remove Binary and EightBit


svn path=/trunk/mcs/; revision=54767
2005-12-23 02:29:34 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Tim Coleman e440dc3bc6 2004-09-09 Tim Coleman <[email protected]>
* ContentType.cs: Changes to MIME headers

svn path=/trunk/mcs/; revision=33691
2004-09-10 04:28:51 +00:00
Tim Coleman 92271efab8 2004-09-04 Tim Coleman <[email protected]>
* ContentDisposition.cs ContentType.cs DispositionTypeNames.cs
        * MediaTypeNames.cs TransferEncoding.cs:
                New class stubs for 2.0

svn path=/trunk/mcs/; revision=33344
2004-09-04 19:51:06 +00:00