dovecot-2.2: pop3c: Allow mailbox_update() for Dovecot's interna...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 12 16:29:22 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/8cf22cba16d4
changeset: 16494:8cf22cba16d4
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 12 16:29:17 2013 +0300
description:
pop3c: Allow mailbox_update() for Dovecot's internal fields.

diffstat:

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

diffs (20 lines):

diff -r 09ac72cdfa8e -r 8cf22cba16d4 src/lib-storage/index/pop3c/pop3c-storage.c
--- a/src/lib-storage/index/pop3c/pop3c-storage.c	Wed Jun 12 16:27:47 2013 +0300
+++ b/src/lib-storage/index/pop3c/pop3c-storage.c	Wed Jun 12 16:29:17 2013 +0300
@@ -204,9 +204,13 @@
 pop3c_mailbox_update(struct mailbox *box,
 		     const struct mailbox_update *update ATTR_UNUSED)
 {
-	mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
-			       "POP3 mailbox update isn't supported");
-	return -1;
+	if (!guid_128_is_empty(update->mailbox_guid) ||
+	    update->uid_validity != 0 || update->min_next_uid != 0 ||
+	    update->min_first_recent_uid != 0) {
+		mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
+				       "POP3 mailbox update isn't supported");
+	}
+	return index_storage_mailbox_update(box, update);
 }
 
 static int pop3c_mailbox_get_metadata(struct mailbox *box,


More information about the dovecot-cvs mailing list