From: Timo Sirainen Date: Thu, 19 Dec 2013 02:01:58 +0000 (+0200) Subject: pop3c: Use UIDLs as GUIDs. X-Git-Tag: 2.2.10~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e130bb802c8bfb6c6cc44e5c8bc098b4fa5af789;p=thirdparty%2Fdovecot%2Fcore.git pop3c: Use UIDLs as GUIDs. --- diff --git a/src/lib-storage/index/pop3c/pop3c-mail.c b/src/lib-storage/index/pop3c/pop3c-mail.c index 4a1ef5b940..78eb02da1f 100644 --- a/src/lib-storage/index/pop3c/pop3c-mail.c +++ b/src/lib-storage/index/pop3c/pop3c-mail.c @@ -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; diff --git a/src/lib-storage/index/pop3c/pop3c-storage.c b/src/lib-storage/index/pop3c/pop3c-storage.c index e4411e3339..9476fb713e 100644 --- a/src/lib-storage/index/pop3c/pop3c-storage.c +++ b/src/lib-storage/index/pop3c/pop3c-storage.c @@ -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,