]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3c: Use UIDLs as GUIDs.
authorTimo Sirainen <tss@iki.fi>
Thu, 19 Dec 2013 02:01:58 +0000 (04:01 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 19 Dec 2013 02:01:58 +0000 (04:01 +0200)
src/lib-storage/index/pop3c/pop3c-mail.c
src/lib-storage/index/pop3c/pop3c-storage.c

index 4a1ef5b940068c6dda80ef00d81ee4dd0226c781..78eb02da1f84a92f5cd579d8ae2db2a7bf52ba01 100644 (file)
@@ -1,6 +1,7 @@
 /* Copyright (c) 2011-2013 Dovecot authors, see the included COPYING file */
 
 #include "lib.h"
+#include "ioloop.h"
 #include "istream.h"
 #include "index-mail.h"
 #include "pop3c-client.h"
@@ -153,6 +154,7 @@ pop3c_mail_get_special(struct mail *_mail, enum mail_fetch_field field,
 
        switch (field) {
        case MAIL_FETCH_UIDL_BACKEND:
+       case MAIL_FETCH_GUID:
                if (mbox->msg_uidls == NULL) {
                        if (pop3c_sync_get_uidls(mbox) < 0)
                                return -1;
index e4411e33393e5d9bf7a1ba4bc5c8e0b1a10080da..9476fb713ebdf364d12bf63c12cf1c80ca92f8e7 100644 (file)
@@ -280,7 +280,8 @@ static bool pop3c_storage_is_inconsistent(struct mailbox *box)
 
 struct mail_storage pop3c_storage = {
        .name = POP3C_STORAGE_NAME,
-       .class_flags = MAIL_STORAGE_CLASS_FLAG_NO_ROOT,
+       .class_flags = MAIL_STORAGE_CLASS_FLAG_NO_ROOT |
+               MAIL_STORAGE_CLASS_FLAG_HAVE_MAIL_GUIDS,
 
        .v = {
                pop3c_get_setting_parser_info,