[csmaild-cvs] csmaild/src/Common Mailbox.cs,1.3,1.4 Message.cs,1.2,1.3
Brought to you by:
tamc
|
From: <ta...@us...> - 2003-07-26 01:44:11
|
Update of /cvsroot/csmaild/csmaild/src/Common
In directory sc8-pr-cvs1:/tmp/cvs-serv906/src/Common
Modified Files:
Mailbox.cs Message.cs
Log Message:
UIDs, UIDVALIDITYs, and literal sizes can all be uint.MaxValue big
Finished up parenthesized list parser, it should work for all commands that need it except SEARCH for now
Quite a bit of fixing yet to do to handle buffer overruns and large transmissions, but for small things (can fit into memory), we should be alright for now
Index: Mailbox.cs
===================================================================
RCS file: /cvsroot/csmaild/csmaild/src/Common/Mailbox.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Mailbox.cs 25 Jul 2003 03:39:12 -0000 1.3
--- Mailbox.cs 25 Jul 2003 23:35:24 -0000 1.4
***************
*** 13,18 ****
private string mName;
private string mFullName;
! private int mNextUniqueId;
! private int mUniqueIdValidity;
private Mailbox mParent;
private Mailbox[] mChildren; // TODO: Make a strongly typed collection
--- 13,18 ----
private string mName;
private string mFullName;
! private uint mNextUniqueId;
! private uint mUniqueIdValidity;
private Mailbox mParent;
private Mailbox[] mChildren; // TODO: Make a strongly typed collection
***************
*** 39,43 ****
/// The id that SHOULD be assigned to the next new message in this mailbox
/// </summary>
! public int NextUniqueId
{
get
--- 39,43 ----
/// The id that SHOULD be assigned to the next new message in this mailbox
/// </summary>
! public uint NextUniqueId
{
get
***************
*** 50,54 ****
/// The UIDVALIDITY of this mailbox
/// </summary>
! public int UniqueIdValidity
{
get
--- 50,54 ----
/// The UIDVALIDITY of this mailbox
/// </summary>
! public uint UniqueIdValidity
{
get
***************
*** 100,104 ****
#endregion
! public Mailbox(IMailstoreProvider provider, string name, string fullName, int nextUniqueId, int uniqueIdValidity, User user) : base(provider)
{
mNextUniqueId = nextUniqueId;
--- 100,104 ----
#endregion
! public Mailbox(IMailstoreProvider provider, string name, string fullName, uint nextUniqueId, uint uniqueIdValidity, User user) : base(provider)
{
mNextUniqueId = nextUniqueId;
Index: Message.cs
===================================================================
RCS file: /cvsroot/csmaild/csmaild/src/Common/Message.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Message.cs 25 Jul 2003 03:39:12 -0000 1.2
--- Message.cs 25 Jul 2003 23:35:24 -0000 1.3
***************
*** 11,15 ****
{
#region Variables
! private int mUniqueId;
private bool mSeen;
private bool mAnswered;
--- 11,15 ----
{
#region Variables
! private uint mUniqueId;
private bool mSeen;
private bool mAnswered;
***************
*** 25,29 ****
/// The UID of this message
/// </summary>
! public int UniqueId
{
get
--- 25,29 ----
/// The UID of this message
/// </summary>
! public uint UniqueId
{
get
***************
*** 135,139 ****
#endregion
! public Message(IMailstoreProvider provider, int uid, bool seen, bool answered, bool flagged, bool deleted, bool draft, int size) : base(provider)
{
mUniqueId = uid;
--- 135,139 ----
#endregion
! public Message(IMailstoreProvider provider, uint uid, bool seen, bool answered, bool flagged, bool deleted, bool draft, int size) : base(provider)
{
mUniqueId = uid;
|