Update of /cvsroot/csmail/csmail/src/CSMail.Utils
In directory sc8-pr-cvs1:/tmp/cvs-serv28344
Modified Files:
ChangeLog MimeUtils.cs
Log Message:
2003-02-06
* MimeUtils.cs : UpdateHeaders(IMimePart) - No need
to typcast to ContentType.
: Get/Set-TransferEncoding(StreamReader)
- Stubbed.
Index: ChangeLog
===================================================================
RCS file: /cvsroot/csmail/csmail/src/CSMail.Utils/ChangeLog,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- ChangeLog 7 Nov 2002 09:58:04 -0000 1.25
+++ ChangeLog 6 Feb 2003 19:12:05 -0000 1.26
@@ -1,4 +1,12 @@
+2003-02-06 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
+
+ * MimeUtils.cs : UpdateHeaders(IMimePart) - No need
+ to typcast to ContentType.
+ : Get/Set-TransferEncoding(StreamReader)
+ - Stubbed.
+
+
2002-11-07 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
* MimeUtils.cs : UpdateHeaders(IMimePart) - Implemented.
Index: MimeUtils.cs
===================================================================
RCS file: /cvsroot/csmail/csmail/src/CSMail.Utils/MimeUtils.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- MimeUtils.cs 7 Nov 2002 09:58:04 -0000 1.6
+++ MimeUtils.cs 6 Feb 2003 19:12:06 -0000 1.7
@@ -224,6 +224,21 @@
return TransferEncoding.Default;
}
+ [MailTODO]
+ public static TransferEncoding GetTransferEncoding(StreamReader reader,
+ out string stringValue)
+ {
+ throw new NotImplementedException();
+ }
+
+ [MailTODO]
+ public static TransferEncoding SetTransferEncoding(StreamReader reader,
+ TransferEncoding encoding,
+ string userDefinedValue)
+ {
+ throw new NotImplementedException();
+ }
+
public static string GetDefaultCharset()
{
Properties props = Properties.GetDefaultProperties();
@@ -235,7 +250,7 @@
" Don't know how to get from the VM");
return retVal;
}
-
+
public static void UpdateHeaders(IMimePart mimePart)
{
ContentType ct = mimePart.ContentType;
@@ -248,7 +263,7 @@
{
isMatched = true;
}
- if(!isMatched && ct == (ContentType)null)
+ if(!isMatched && ct == null)
{
ct = new ContentType("text/plain");
string charSet = "";
@@ -262,7 +277,7 @@
}
ct.Parameters["charset"] = charSet;
}
- if(ct == (ContentType)null)
+ if(ct == null)
{
ContentDisposition cd = mimePart.Disposition;
ct = new ContentType("text/plain");
|