Update of /cvsroot/csmaild/csmaild/src/Imap
In directory sc8-pr-cvs1:/tmp/cvs-serv25503/src/Imap
Modified Files:
Connection.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: Connection.cs
===================================================================
RCS file: /cvsroot/csmaild/csmaild/src/Imap/Connection.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Connection.cs 28 Jul 2003 00:15:17 -0000 1.7
--- Connection.cs 1 Aug 2003 22:02:37 -0000 1.8
***************
*** 188,194 ****
throw new Exception("Fucked up, this is just fucked up!");
! // this command will parse through the incoming line and make sure it's valid
! if(ParseAndValidate(line) && mCurrentCommand.Process())
{
}
ReadCommand();
--- 188,203 ----
throw new Exception("Fucked up, this is just fucked up!");
! ParseAndValidate(line);
!
! try
{
+ if(mCurrentCommand.Process())
+ {
+ }
+ }
+ catch(Exception ex)
+ {
+ SendTaggedMessage("BAD Unhandled error: " + ex.Message);
+ Console.WriteLine(ex.ToString());
}
ReadCommand();
|