dovecot-2.2: pop3c: Use UIDLs as GUIDs.

dovecot at dovecot.org dovecot at dovecot.org
Thu Dec 19 04:02:19 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/a56ef53bd3ce
changeset: 17066:a56ef53bd3ce
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Dec 19 04:01:58 2013 +0200
description:
pop3c: Use UIDLs as GUIDs.

diffstat:

 src/lib-storage/index/pop3c/pop3c-mail.c    |  2 ++
 src/lib-storage/index/pop3c/pop3c-storage.c |  3 ++-
 2 files changed, 4 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r ba855eac00db -r a56ef53bd3ce src/lib-storage/index/pop3c/pop3c-mail.c
--- a/src/lib-storage/index/pop3c/pop3c-mail.c	Tue Dec 17 21:33:32 2013 +0200
+++ b/src/lib-storage/index/pop3c/pop3c-mail.c	Thu Dec 19 04:01:58 2013 +0200
@@ -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 @@
 
 	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 -r ba855eac00db -r a56ef53bd3ce src/lib-storage/index/pop3c/pop3c-storage.c
--- a/src/lib-storage/index/pop3c/pop3c-storage.c	Tue Dec 17 21:33:32 2013 +0200
+++ b/src/lib-storage/index/pop3c/pop3c-storage.c	Thu Dec 19 04:01:58 2013 +0200
@@ -280,7 +280,8 @@
 
 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,


More information about the dovecot-cvs mailing list