dovecot-2.1: doveadm backup: Fixed "is source empty" check.

dovecot at dovecot.org dovecot at dovecot.org
Fri Aug 17 09:17:58 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/5f280c1ec9fd
changeset: 14671:5f280c1ec9fd
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Aug 17 09:17:48 2012 +0300
description:
doveadm backup: Fixed "is source empty" check.
In POP3 boxes there is only INBOX, and it's possible that source becomes
empty while backup has mails. The check is now "has source always been
empty?"

diffstat:

 src/doveadm/dsync/dsync-brain.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 670f467ff5c5 -r 5f280c1ec9fd src/doveadm/dsync/dsync-brain.c
--- a/src/doveadm/dsync/dsync-brain.c	Wed Aug 15 13:43:16 2012 +0300
+++ b/src/doveadm/dsync/dsync-brain.c	Fri Aug 17 09:17:48 2012 +0300
@@ -313,7 +313,7 @@
 	if (count == 0)
 		return TRUE;
 	if (count == 1 && strcasecmp(boxes[0]->name, "INBOX") == 0 &&
-	    boxes[0]->message_count == 0)
+	    boxes[0]->message_count == 0 && boxes[0]->uid_next == 1)
 		return TRUE;
 	return FALSE;
 }


More information about the dovecot-cvs mailing list