Update of /cvsroot/csmail/csmail/src/CSMail
In directory usw-pr-cvs1:/tmp/cvs-serv11485
Modified Files:
Constants.cs ContentType.cs ChangeLog
Added Files:
ParseException.cs
Log Message:
2002-10-04
* Constants.cs : RFC822Tokens,
MIMETokens - Added new fields.
* CotentType.cs : ctor(string) - Initial implementation.
* ParseException.cs : Added new exception class.
--- NEW FILE ---
/**
* Namespace: CSMail
* Class: ParseException
*
* Author: Gaurav Vaish
* Maintainer: mastergaurav AT users DOT sf DOT net
*
* (C) Gaurav Vaish (2002)
*/
using System;
namespace CSMail
{
public class ParseException : Exception
{
public ParseException() : base()
{
}
public ParseException(string message) : base(message)
{
}
}
}
Index: Constants.cs
===================================================================
RCS file: /cvsroot/csmail/csmail/src/CSMail/Constants.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Constants.cs 3 Oct 2002 08:58:48 -0000 1.5
+++ Constants.cs 4 Oct 2002 11:14:42 -0000 1.6
@@ -60,6 +60,9 @@
public const char CR = '\r';
public const char LF = '\n';
+ public const string RFC822Delimiters = "()<>@,;:\\\"\t [].";
+ public const string MIMEDelimiters = "()<>@,;:\\\"\t []/?=";
+
/// <summary>
/// Key that holds class-name for store service provider.
/// </summary>
Index: ContentType.cs
===================================================================
RCS file: /cvsroot/csmail/csmail/src/CSMail/ContentType.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ContentType.cs 30 Sep 2002 04:01:37 -0000 1.5
+++ ContentType.cs 4 Oct 2002 11:14:42 -0000 1.6
@@ -25,6 +25,27 @@
private string subType;
private ParameterList parameters;
+ // :\\\"\t []/?="
+ public static readonly char[] Tokens = new char[]{
+ '(',
+ ')',
+ '<',
+ '>',
+ '@',
+ ',',
+ ';',
+ ':',
+ '\\',
+ '"',
+ '\t',
+ ' ',
+ '[',
+ ']',
+ '/',
+ '?',
+ '='
+ };
+
/// <summary>
/// Create an instance with the primary as the <c>PrimaryType</c>
/// and sub as the <c>SubType</c>
@@ -65,6 +86,7 @@
[MailTODO]
public ContentType(string headerValue)
{
+
throw new NotImplementedException();
}
Index: ChangeLog
===================================================================
RCS file: /cvsroot/csmail/csmail/src/CSMail/ChangeLog,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- ChangeLog 3 Oct 2002 08:58:48 -0000 1.53
+++ ChangeLog 4 Oct 2002 11:14:42 -0000 1.54
@@ -1,4 +1,11 @@
+2002-10-04 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
+
+ * Constants.cs : RFC822Tokens,
+ MIMETokens - Added new fields.
+ * CotentType.cs : ctor(string) - Initial implementation.
+ * ParseException.cs : Added new exception class.
+
2002-10-01 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
* Constants.cs : CR, LF - Added new constants.
|