[csmaild-cvs] csmaild/src/Common Common.2002.csproj,1.2,1.3 Common.csproj,1.6,1.7 Mailbox.cs,1.8,1.9
Brought to you by:
tamc
From: <ta...@us...> - 2003-08-01 22:02:40
|
Update of /cvsroot/csmaild/csmaild/src/Common In directory sc8-pr-cvs1:/tmp/cvs-serv25503/src/Common Modified Files: Common.2002.csproj Common.csproj Mailbox.cs Message.cs MessageCollection.cs Log Message: Updated 1.0 project files to include new stuff Added blank SMTP project Added initial rfc2822 message parser and object model (not finished but it's lightening outside ;)) Can now add messages to the messagecollection The enumerator for messagecollection works properly now Added method to mailstore provider to allow for accessing the raw message via a reader Added ability to have optional arguments on IMAP commands Fixed literal string parsing External accessors to the sequence range Very high level generic exception handling to handle all those errors I don't want to fix (and don't want them to mess up the connection) Index: Common.2002.csproj =================================================================== RCS file: /cvsroot/csmaild/csmaild/src/Common/Common.2002.csproj,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Common.2002.csproj 29 Jul 2003 00:46:28 -0000 1.2 --- Common.2002.csproj 1 Aug 2003 22:02:37 -0000 1.3 *************** *** 137,140 **** --- 137,190 ---- BuildAction = "Compile" /> + <File + RelPath = "Rfc2822\Address.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\AddressGroup.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\AddressList.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\AddressMailbox.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\AddressMailboxList.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\HeaderField.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\HeaderFieldList.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\Interpreter.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\Message.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\MessageBody.cs" + SubType = "Code" + BuildAction = "Compile" + /> </Include> </Files> Index: Common.csproj =================================================================== RCS file: /cvsroot/csmaild/csmaild/src/Common/Common.csproj,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Common.csproj 29 Jul 2003 00:46:28 -0000 1.6 --- Common.csproj 1 Aug 2003 22:02:37 -0000 1.7 *************** *** 144,147 **** --- 144,197 ---- BuildAction = "Compile" /> + <File + RelPath = "Rfc2822\Address.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\AddressGroup.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\AddressList.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\AddressMailbox.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\AddressMailboxList.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\HeaderField.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\HeaderFieldList.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\Interpreter.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\Message.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Rfc2822\MessageBody.cs" + SubType = "Code" + BuildAction = "Compile" + /> </Include> </Files> Index: Mailbox.cs =================================================================== RCS file: /cvsroot/csmaild/csmaild/src/Common/Mailbox.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Mailbox.cs 30 Jul 2003 22:32:34 -0000 1.8 --- Mailbox.cs 1 Aug 2003 22:02:37 -0000 1.9 *************** *** 162,166 **** // TODO: make this more efficient then having to load all the messages for(uint idx = 0; idx < Messages.Count; ++idx) ! if(!Messages.BySeq(idx).Seen) return idx; return 0; --- 162,166 ---- // TODO: make this more efficient then having to load all the messages for(uint idx = 0; idx < Messages.Count; ++idx) ! if(!Messages.BySeq(idx+1).Seen) return idx; return 0; Index: Message.cs =================================================================== RCS file: /cvsroot/csmaild/csmaild/src/Common/Message.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Message.cs 29 Jul 2003 00:46:28 -0000 1.4 --- Message.cs 1 Aug 2003 22:02:37 -0000 1.5 *************** *** 2,5 **** --- 2,7 ---- using System; + using System.Collections.Specialized; + using System.IO; namespace Common *************** *** 131,134 **** --- 133,144 ---- { return mSize; + } + } + + public Rfc2822.Message Rfc822Message + { + get + { + return new Rfc2822.Interpreter(mMailstoreProvider.GetRawMessageReader(mProvidersIdentifier)).Interpret(); } } Index: MessageCollection.cs =================================================================== RCS file: /cvsroot/csmaild/csmaild/src/Common/MessageCollection.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MessageCollection.cs 29 Jul 2003 00:46:28 -0000 1.2 --- MessageCollection.cs 1 Aug 2003 22:02:37 -0000 1.3 *************** *** 46,49 **** --- 46,51 ---- public void Add(Message msg) { + mSequenceList.Add((uint)(mSequenceList.Count+1), msg); + mUidList.Add(msg.UniqueId, msg); } *************** *** 55,59 **** public override IEnumerator GetEnumerator() { ! return mSequenceList.GetEnumerator(); } #endregion --- 57,61 ---- public override IEnumerator GetEnumerator() { ! return mSequenceList.Values.GetEnumerator(); } #endregion |