changeset 8940:aba994bec90b HEAD

maildir saving: If dovecot-uidlist reading failed, we might have gone forward and crashed.
author Timo Sirainen <tss@iki.fi>
date Mon, 13 Apr 2009 16:11:15 -0400
parents 302bfa9ae105
children eb9e5ab575a9
files src/lib-storage/index/maildir/maildir-save.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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