[haiku-commits] r41071 - haiku/trunk/src/servers/mail

  • From: clemens.zeidler@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 21 Mar 2011 21:02:48 +0100 (CET)

Author: czeidler
Date: 2011-03-21 21:02:48 +0100 (Mon, 21 Mar 2011)
New Revision: 41071
Changeset: https://dev.haiku-os.org/changeset/41071

Modified:
   haiku/trunk/src/servers/mail/MailDaemon.cpp
Log:
Create an index for MAIL:account_id. If you using POP3 update to this revision! 
POP3 queries for this attribute and if no mails are found with this id it will 
delete the missing mails on the server (if the option is ticked).



Modified: haiku/trunk/src/servers/mail/MailDaemon.cpp
===================================================================
--- haiku/trunk/src/servers/mail/MailDaemon.cpp 2011-03-21 19:32:58 UTC (rev 
41070)
+++ haiku/trunk/src/servers/mail/MailDaemon.cpp 2011-03-21 20:02:48 UTC (rev 
41071)
@@ -38,7 +38,7 @@
                B_MAIL_ATTR_CC, B_MAIL_ATTR_FROM, B_MAIL_ATTR_NAME,
                B_MAIL_ATTR_PRIORITY, B_MAIL_ATTR_REPLY, B_MAIL_ATTR_STATUS,
                B_MAIL_ATTR_SUBJECT, B_MAIL_ATTR_TO, B_MAIL_ATTR_THREAD,
-               NULL
+               B_MAIL_ATTR_ACCOUNT, NULL
        };
 
        // add mail indices for all devices capable of querying
@@ -57,7 +57,7 @@
                fs_create_index(device, "MAIL:draft", B_INT32_TYPE, 0);
                fs_create_index(device, B_MAIL_ATTR_WHEN, B_INT32_TYPE, 0);
                fs_create_index(device, B_MAIL_ATTR_FLAGS, B_INT32_TYPE, 0);
-               fs_create_index(device, B_MAIL_ATTR_ACCOUNT, B_INT32_TYPE, 0);
+               fs_create_index(device, B_MAIL_ATTR_ACCOUNT_ID, B_INT32_TYPE, 
0);
                fs_create_index(device, B_MAIL_ATTR_READ, B_INT32_TYPE, 0);
        }
 }


Other related posts: