[haiku-commits] r40735 - haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib

  • From: clemens.zeidler@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 28 Feb 2011 07:44:38 +0100 (CET)

Author: czeidler
Date: 2011-02-28 07:44:37 +0100 (Mon, 28 Feb 2011)
New Revision: 40735
Changeset: http://dev.haiku-os.org/changeset/40735

Modified:
   
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/IMAPHandler.cpp
Log:
Very bad idea to not add kDeleted flagged mails to the message list since the 
position in the list is used as a message id. The result was that the server 
synced the wrong messages.



Modified: 
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/IMAPHandler.cpp
===================================================================
--- 
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/IMAPHandler.cpp
 2011-02-27 22:44:21 UTC (rev 40734)
+++ 
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/IMAPHandler.cpp
 2011-02-28 06:44:37 UTC (rev 40735)
@@ -208,9 +208,6 @@
        if (!ParseMinMessage(extracted, minMessage))
                return false;
 
-       if ((minMessage.flags & kDeleted) != 0)
-               return true;
-
        fMinMessageList->push_back(minMessage);
        fStorage.AddNewMessage(minMessage.uid, minMessage.flags, fData);
        return true;
@@ -294,9 +291,6 @@
        if (!FetchMinMessageCommand::ParseMinMessage(extracted, minMessage))
                return false;
 
-       if ((minMessage.flags & kDeleted) != 0)
-               return true;
-
        fMinMessageList->push_back(minMessage);
        return true;
 }


Other related posts:

  • » [haiku-commits] r40735 - haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib - clemens . zeidler