Update of /cvsroot/mahogany/M/include/mail
In directory usw-pr-cvs1:/tmp/cvs-serv3271/include/mail

Modified Files:
        VFolder.h 
Log Message:
handle UID properly in MFVirt

Index: VFolder.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/mail/VFolder.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -b -u -2 -r1.3 -r1.4
--- VFolder.h   17 Jul 2002 14:43:55 -0000      1.3
+++ VFolder.h   17 Jul 2002 21:34:33 -0000      1.4
@@ -155,5 +155,6 @@
 
    /// common part of SetMessageFlag and SetSequenceFlag
-   virtual bool DoSetMessageFlag(unsigned long uid,
+   virtual bool DoSetMessageFlag(SequenceKind kind,
+                                 unsigned long uid,
                                  int flag,
                                  bool set = true);
@@ -169,11 +170,17 @@
 
       /// the UID of this message in that folder
-      UIdType uid;
+      UIdType uidPhys;
+
+      /// the UID of this message in this folder
+      UIdType uidVirt;
 
       /// the flags of the message in this folder (not original one)
       int flags;
 
-      Msg(MailFolder *mf_, UIdType uid_, int flags_)
-         : mf(mf_), uid(uid_), flags(flags_) { mf->IncRef(); }
+      Msg(MailFolder *mf_, UIdType uidPhys_, UIdType uidVirt_, int flags_)
+         : mf(mf_), uidPhys(uidPhys_), uidVirt(uidVirt_), flags(flags_)
+      {
+         mf->IncRef();
+      }
 
       ~Msg() { mf->DecRef(); }
@@ -196,4 +203,7 @@
    OpenMode m_openMode;
 
+   /// the highest UID we have assigned so far
+   UIdType m_uidLast;
+
    //@}
 
@@ -212,6 +222,5 @@
 
    /// get the Msg corresponding to the given UID or NULL
-   Msg *MailFolderVirt::GetMsgFromUID(UIdType uid) const
-      { return GetMsgFromMsgno(uid); }
+   Msg *MailFolderVirt::GetMsgFromUID(UIdType uid) const;
 
    /// add a new message (takes ownership of it)



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to