Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-storage/index/maildir/maildir-sync.c @ 1962:4775ffa73874 HEAD
Syncing should be fixed now.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 03 May 2004 16:50:41 +0300 |
parents | 4dec6a3d79fd |
children | 0f4c4a043be1 |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-sync.c Mon May 03 16:04:32 2004 +0300 +++ b/src/lib-storage/index/maildir/maildir-sync.c Mon May 03 16:50:41 2004 +0300 @@ -481,7 +481,8 @@ } if (cur_mtime != ibox->last_cur_mtime || - ioloop_time - ibox->dirty_cur_time > MAILDIR_SYNC_SECS) { + (ibox->dirty_cur_time != 0 && + ioloop_time - ibox->dirty_cur_time > MAILDIR_SYNC_SECS)) { /* cur/ changed, or delayed cur/ check */ *cur_changed_r = TRUE; ibox->last_cur_mtime = cur_mtime;