# HG changeset patch # User Timo Sirainen # Date 1239653475 14400 # Node ID aba994bec90b97c72b8e23e19aa158704e16214e # Parent 302bfa9ae10558e04a7dd6e7a8d9e6cff332f1a8 maildir saving: If dovecot-uidlist reading failed, we might have gone forward and crashed. diff -r 302bfa9ae105 -r aba994bec90b src/lib-storage/index/maildir/maildir-save.c --- a/src/lib-storage/index/maildir/maildir-save.c Sat Apr 11 23:12:48 2009 -0400 +++ b/src/lib-storage/index/maildir/maildir-save.c Mon Apr 13 16:11:15 2009 -0400 @@ -625,7 +625,7 @@ 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