From: Timo Sirainen Date: Mon, 13 Apr 2009 20:11:15 +0000 (-0400) Subject: maildir saving: If dovecot-uidlist reading failed, we might have gone forward and... X-Git-Tag: 2.0.alpha1~958 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d4cfb31afb0071801c15b155ce01c82a090a49a;p=thirdparty%2Fdovecot%2Fcore.git maildir saving: If dovecot-uidlist reading failed, we might have gone forward and crashed. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/maildir/maildir-save.c b/src/lib-storage/index/maildir/maildir-save.c index e5a76bade1..0963ef9fd2 100644 --- a/src/lib-storage/index/maildir/maildir-save.c +++ b/src/lib-storage/index/maildir/maildir-save.c @@ -624,7 +624,7 @@ maildir_transaction_save_commit_pre_sync(struct maildir_save_context *ctx) if (maildir_sync_header_refresh(mbox) < 0) return -1; if (maildir_uidlist_refresh_fast_init(mbox->uidlist) < 0) - return 1; + return -1; /* now that uidlist is locked, make sure all the existing mails have been added to index. we don't really look into the