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

Modified Files:
        MailFolderCC.cpp VFolder.cpp 
Log Message:
implemented searching in multiple folders, it compiles and seems to work for
single folder searches but dies horribly when searching in more than one
folder for now


Index: MailFolderCC.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/MailFolderCC.cpp,v
retrieving revision 1.635
retrieving revision 1.636
diff -b -u -2 -r1.635 -r1.636
--- MailFolderCC.cpp    17 Jul 2002 19:22:52 -0000      1.635
+++ MailFolderCC.cpp    23 Jul 2002 18:47:12 -0000      1.636
@@ -3289,5 +3289,5 @@
 
 Message *
-MailFolderCC::GetMessage(unsigned long uid)
+MailFolderCC::GetMessage(unsigned long uid) const
 {
    CHECK_DEAD_RC("Cannot access closed folder '%s'.", NULL);
@@ -3302,5 +3302,5 @@
    CHECK( hi, NULL, "invalid UID in GetMessage" );
 
-   return MessageCC::Create(this, *hi);
+   return MessageCC::Create((MailFolderCC *)this, *hi); // const_cast
 }
 

Index: VFolder.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/VFolder.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -u -2 -r1.8 -r1.9
--- VFolder.cpp 19 Jul 2002 21:36:29 -0000      1.8
+++ VFolder.cpp 23 Jul 2002 18:47:13 -0000      1.9
@@ -530,5 +530,5 @@
 }
 
-Message *MailFolderVirt::GetMessage(unsigned long uid)
+Message *MailFolderVirt::GetMessage(unsigned long uid) const
 {
    Msg *msg = GetMsgFromUID(uid);
@@ -540,5 +540,5 @@
       return NULL;
 
-   return MessageVirt::Create(this, uid, &msg->flags, message);
+   return MessageVirt::Create((MailFolderVirt *)this, uid, &msg->flags, message);
 }
 



-------------------------------------------------------
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