[dovecot-cvs] dovecot/src/lib-index/maildir maildir-sync.c,1.31,1.32
cras at procontrol.fi
cras at procontrol.fi
Thu Apr 10 00:52:22 EEST 2003
Update of /home/cvs/dovecot/src/lib-index/maildir
In directory danu:/tmp/cvs-serv6678/lib-index/maildir
Modified Files:
maildir-sync.c
Log Message:
Don't index new mails in cur/ if we don't have uidlist.lock
Index: maildir-sync.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/maildir/maildir-sync.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- maildir-sync.c 9 Apr 2003 20:10:01 -0000 1.31
+++ maildir-sync.c 9 Apr 2003 20:52:20 -0000 1.32
@@ -261,8 +261,8 @@
return FALSE;
}
- if (new_count == 0) {
- /* all done */
+ if (new_count == 0 || !INDEX_IS_UIDLIST_LOCKED(index)) {
+ /* all done (or can't do it since we don't have lock) */
return TRUE;
}
More information about the dovecot-cvs
mailing list