dovecot-1.2: maildir: Don't force a resync when saving.

dovecot at dovecot.org dovecot at dovecot.org
Thu Sep 10 19:07:59 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/f1a29b13f7dc
changeset: 9373:f1a29b13f7dc
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Sep 10 12:07:53 2009 -0400
description:
maildir: Don't force a resync when saving.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-storage/index/maildir/maildir-uidlist.c |    4 ++--

diffs (21 lines):

diff -r b359aac78f92 -r f1a29b13f7dc src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c	Wed Sep 09 00:50:16 2009 -0400
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c	Thu Sep 10 12:07:53 2009 -0400
@@ -834,7 +834,7 @@ maildir_uidlist_has_changed(struct maild
 	*recreated_r = FALSE;
 
 	if ((ret = maildir_uidlist_stat(uidlist, &st)) <= 0)
-		return ret;
+		return ret < 0 ? -1 : 1;
 
 	if (st.st_ino != uidlist->fd_ino ||
 	    !CMP_DEV_T(st.st_dev, uidlist->fd_dev)) {
@@ -878,7 +878,7 @@ int maildir_uidlist_refresh(struct maild
 		if (ret <= 0) {
 			if (UIDLIST_IS_LOCKED(uidlist))
 				uidlist->locked_refresh = TRUE;
-			return ret;
+			return ret < 0 ? -1 : 1;
 		}
 
 		if (recreated)


More information about the dovecot-cvs mailing list