]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
maildir saving: If dovecot-uidlist reading failed, we might have gone forward and...
authorTimo Sirainen <tss@iki.fi>
Mon, 13 Apr 2009 20:11:15 +0000 (16:11 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 13 Apr 2009 20:11:15 +0000 (16:11 -0400)
--HG--
branch : HEAD

src/lib-storage/index/maildir/maildir-save.c

index e5a76bade1787ea7ac26314772d665943baa5c3e..0963ef9fd2f4f527d36729543738a02d6da56cea 100644 (file)
@@ -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