Update of /cvsroot/csmail/csmail/src/CSMail
In directory sc8-pr-cvs1:/tmp/cvs-serv3340
Modified Files:
ChangeLog MimeBodyPart.cs Multipart.cs
Log Message:
2003-02-07
* Multipart.cs : PartState { get; } - Removed.
* MimeBodyPart.cs : UpdateHeaders() - Implemented.
Index: ChangeLog
===================================================================
RCS file: /cvsroot/csmail/csmail/src/CSMail/ChangeLog,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -r1.67 -r1.68
--- ChangeLog 22 Jan 2003 14:57:56 -0000 1.67
+++ ChangeLog 6 Feb 2003 19:26:31 -0000 1.68
@@ -1,12 +1,8 @@
-2003-01-22 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
+2003-02-07 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
- * ContentDisposition.cs : ctor(string) - Fixed bug.
-
-2003-01-03 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
-
- * MimeBodyPart.cs : Size - Partial implementation.
- : ContentDisposition - Completed.
+ * Multipart.cs : PartState { get; } - Removed.
+ * MimeBodyPart.cs : UpdateHeaders() - Implemented.
2002-11-07 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
Index: MimeBodyPart.cs
===================================================================
RCS file: /cvsroot/csmail/csmail/src/CSMail/MimeBodyPart.cs,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- MimeBodyPart.cs 22 Jan 2003 13:48:36 -0000 1.11
+++ MimeBodyPart.cs 6 Feb 2003 19:26:32 -0000 1.12
@@ -10,6 +10,7 @@
using System;
using System.IO;
+using CSMail.Utils;
namespace CSMail
{
@@ -27,10 +28,6 @@
/// The content of this part.
/// </summary>
protected byte[] content;
- /// <summary>
- /// The stream associated with the content for the part.
- /// </summary>
- protected StreamReader reader;
/// <summary>
/// Creates an empty part.
@@ -49,7 +46,6 @@
[MailTODO]
public MimeBodyPart(StreamReader reader)
{
- this.reader = reader;
throw new NotImplementedException();
}
@@ -71,15 +67,12 @@
/// The size of the headers plus the size of body
/// (the actual message), in bytes, for this body part.
/// </value>
+ [MailTODO]
public override long Size
{
get
{
- if(content != null)
- return content.Length;
- if(reader != null && reader.BaseStream != null)
- return reader.BaseStream.Length;
- return -1;
+ throw new NotImplementedException();
}
}
@@ -167,14 +160,11 @@
{
get
{
- return new ContentDisposition(Headers["Content-Disposition"]);
+ throw new NotImplementedException();
}
set
{
- if(value != null)
- Headers["Content-Disposition"] = value.ToString();
- else
- Headers.Remove(Header.GetHeaderByName("Content-Disposition", true));
+ throw new NotImplementedException();
}
}
@@ -305,10 +295,9 @@
/// called.
/// </para>
/// </remarks>
- [MailTODO]
public virtual void UpdateHeaders()
{
- throw new NotImplementedException();
+ MimeUtils.UpdateHeaders(this);
}
/// <summary>
Index: Multipart.cs
===================================================================
RCS file: /cvsroot/csmail/csmail/src/CSMail/Multipart.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- Multipart.cs 7 Nov 2002 09:56:35 -0000 1.7
+++ Multipart.cs 6 Feb 2003 19:26:33 -0000 1.8
@@ -92,6 +92,7 @@
}
}
+/*
protected virtual StateBag PartState
{
get
@@ -103,6 +104,7 @@
return partState;
}
}
+*/
/// <summary>
/// When implemented, writes the content to the stream.
|