[Csmail-patches] CVS: csmail/src/CSMail BodyPart.cs,1.1,1.2 ChangeLog,1.25,1.26 Folder.cs,1.4,1.5 In
Status: Pre-Alpha
Brought to you by:
mastergaurav
From: Gaurav V. <mas...@us...> - 2002-09-04 06:35:45
|
Update of /cvsroot/csmail/csmail/src/CSMail In directory usw-pr-cvs1:/tmp/cvs-serv16952 Modified Files: BodyPart.cs ChangeLog Folder.cs InternetAddressList.cs Message.cs Provider.cs URLName.cs Log Message: 2002-09-04 * BodyPart.cs : ParentProperty - Marked "virtual" * Folder.cs : URL { get; } - Removed MailTODO * Message.cs : IsExpunged {get; set;} - Implemented : Folder { get; } - Implemented : ReplyTo { set; } - Removed : ReplyTo { get; } - Marked "virtual" - Implemented Index: BodyPart.cs =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/BodyPart.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- BodyPart.cs 20 Jun 2002 02:43:24 -0000 1.1 +++ BodyPart.cs 4 Sep 2002 06:35:42 -0000 1.2 @@ -28,7 +28,7 @@ } } - protected Multipart ParentProperty + protected virtual Multipart ParentProperty { get { Index: ChangeLog =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/ChangeLog,v retrieving revision 1.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- ChangeLog 3 Sep 2002 12:49:49 -0000 1.25 +++ ChangeLog 4 Sep 2002 06:35:42 -0000 1.26 @@ -1,4 +1,14 @@ +2002-09-04 Gaurav Vaish <mastergaurav AT users DOT sf DOT net> + + * BodyPart.cs : ParentProperty - Marked "virtual" + * Folder.cs : URL { get; } - Removed MailTODO + * Message.cs : IsExpunged {get; set;} - Implemented + : Folder { get; } - Implemented + : ReplyTo { set; } - Removed + : ReplyTo { get; } - Marked "virtual" + - Implemented + 2002-09-03 Gaurav Vaish <mastergaurav AT users DOT sf DOT net> * Session.cs : GetStore, GetTransport - Completed Index: Folder.cs =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/Folder.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- Folder.cs 3 Sep 2002 12:38:45 -0000 1.4 +++ Folder.cs 4 Sep 2002 06:35:42 -0000 1.5 @@ -112,7 +112,6 @@ } } - [MailTODO] public URLName URL { get Index: InternetAddressList.cs =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/InternetAddressList.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- InternetAddressList.cs 28 Aug 2002 10:17:12 -0000 1.3 +++ InternetAddressList.cs 4 Sep 2002 06:35:42 -0000 1.4 @@ -197,7 +197,7 @@ /// <summary> /// Returns a CRLF separated list of Addresses. /// Do I need to take care of anything??? - /// </summray> + /// </summary> public override string ToString() { string retVal = String.Empty; Index: Message.cs =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/Message.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- Message.cs 20 Jun 2002 03:57:59 -0000 1.5 +++ Message.cs 4 Sep 2002 06:35:42 -0000 1.6 @@ -15,21 +15,35 @@ { public abstract class Message: IPart { + /// <summary> + /// Folder that contains this message. + /// </summary> protected Folder folder; + /// <summary> + /// The message number in the folder. + /// </summary> protected int index; + /// <summary> + /// Session associated with this message + /// </summary> protected Session session; + /// <summary> + /// Has this been message expunged from the folder? + /// </summary> + private bool isExpunged; protected Message() { + this.isExpunged = false; } - protected Message(Folder folder, int index) + protected Message(Folder folder, int index) : this() { this.folder = folder; this.index = index; } - protected Message(Session session) + protected Message(Session session) : this() { this.session = session; } @@ -63,45 +77,39 @@ public abstract int AddHeaders(HeaderList headers); public abstract void Write(TextWriter writer); - [MailTODO] public virtual Folder Folder { get { - throw new NotImplementedException(); + return folder; } } - [MailTODO] public bool IsExpunged { get { - throw new NotImplementedException(); + return isExpunged; } set { - throw new NotImplementedException(); + isExpunged = value; } } - [MailTODO] - public IAddressList ReplyTo + public virtual IAddressList ReplyTo { get { - throw new NotImplementedException(); - } - set - { - throw new NotImplementedException(); + return (IAddressList)From; } } - [MailTODO] public bool IsSet(MessageFlags flag) { - throw new NotImplementedException(); + if(!Enum.IsDefined(typeof(MessageFlags), flag)) + throw new ArgumentException("[IsSet] Illegal value to check"); + return ((flag & Flags) == flag); } } } Index: Provider.cs =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/Provider.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- Provider.cs 30 Aug 2002 08:41:28 -0000 1.5 +++ Provider.cs 4 Sep 2002 06:35:42 -0000 1.6 @@ -35,9 +35,9 @@ /// <summary> /// Format of rawline: - /// protocol = <proto>; type = <type>; class = <class>; - /// vendor = <vendor>; version = <version>; - /// assembly = <assembly> + /// protocol = <proto>; type = <type>; class = <class>; + /// vendor = <vendor>; version = <version>; + /// assembly = <assembly> /// Note that they may appear in any order. Vendor and version /// may be missing. '=' may be replaced by a ':' /// </summary> Index: URLName.cs =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/URLName.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- URLName.cs 3 Sep 2002 12:38:45 -0000 1.3 +++ URLName.cs 4 Sep 2002 06:35:42 -0000 1.4 @@ -107,11 +107,11 @@ } } - [MailTODO] /// <summary> /// The URL is to be of the form: /// protocol://[user[:pass@]]host[:port]/file /// </summary> + [MailTODO] private void ParseURL(string url) { throw new NotImplementedException(); |