dovecot-2.0: dsync: Try creating INBOX before fallbacking to jus...
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Wed Nov 18 02:25:36 EET 2009
    
    
  
details:   http://hg.dovecot.org/dovecot-2.0/rev/9670b1268a9a
changeset: 10349:9670b1268a9a
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 17 19:25:28 2009 -0500
description:
dsync: Try creating INBOX before fallbacking to just updating it.
diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
src/dsync/dsync-worker-local.c |    7 ++-----
diffs (18 lines):
diff -r 3f0752af52db -r 9670b1268a9a src/dsync/dsync-worker-local.c
--- a/src/dsync/dsync-worker-local.c	Tue Nov 17 18:53:09 2009 -0500
+++ b/src/dsync/dsync-worker-local.c	Tue Nov 17 19:25:28 2009 -0500
@@ -890,12 +890,9 @@ local_worker_create_mailbox(struct dsync
 	}
 	local_worker_copy_mailbox_update(dsync_box, &update);
 
-	if (strcasecmp(dsync_box->name, "INBOX") == 0)
+	ret = mailbox_create(box, &update, dsync_box->uid_validity == 0);
+	if (ret < 0 && strcasecmp(dsync_box->name, "INBOX") == 0)
 		ret = mailbox_update(box, &update);
-	else {
-		ret = mailbox_create(box, &update,
-				     dsync_box->uid_validity == 0);
-	}
 	if (ret < 0) {
 		dsync_worker_set_failure(_worker);
 		i_error("Can't create mailbox %s: %s", dsync_box->name,
    
    
More information about the dovecot-cvs
mailing list