Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-storage/index/maildir/maildir-sync.c @ 3520:e2fe8222449d HEAD
s/occured/occurred/
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 07 Aug 2005 14:41:19 +0300 |
parents | db29cc6754d5 |
children | e9695ec7925b |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-sync.c Sun Aug 07 14:28:13 2005 +0300 +++ b/src/lib-storage/index/maildir/maildir-sync.c Sun Aug 07 14:41:19 2005 +0300 @@ -5,14 +5,14 @@ it's problems: We want to be as efficient as we can. The most efficient way to - check if changes have occured is to stat() the new/ and cur/ + check if changes have occurred is to stat() the new/ and cur/ directories and uidlist file - if their mtimes haven't changed, there's no changes and we don't need to do anything. Problem 1: Multiple changes can happen within a single second - nothing guarantees that once we synced it, someone else didn't just then make a modification. Such modifications wouldn't get noticed - until a new modification occured later. + until a new modification occurred later. Problem 2: Syncing cur/ directory is much more costly than syncing new/. Moving mails from new/ to cur/ will always change mtime of