[dovecot-cvs]
dovecot/src/lib-index/maildir maildir-sync.c,1.61,1.62
cras at procontrol.fi
cras at procontrol.fi
Sun Aug 24 10:31:37 EEST 2003
Update of /home/cvs/dovecot/src/lib-index/maildir
In directory danu:/tmp/cvs-serv16951/maildir
Modified Files:
maildir-sync.c
Log Message:
comment update
Index: maildir-sync.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/maildir/maildir-sync.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- maildir-sync.c 11 Aug 2003 01:56:37 -0000 1.61
+++ maildir-sync.c 24 Aug 2003 06:31:35 -0000 1.62
@@ -132,12 +132,14 @@
for example include microseconds in it which Dovecot does.
There's a simple way to prevent this from happening in some cases:
- Don't move the mail from new/ to cur/ if it's mtime (it's included
- in beginning of file name, so stat() isn't needed) is >= time() -
+ Don't move the mail from new/ to cur/ if it's mtime is >= time() -
MAILDIR_SYNC_SECS. The second delivery's link() call then fails
because the file is already in new/, and it will then use a
different filename. There's a few problems with this however:
+ - while it's usually possible to read the mtime from beginning of
+ the file name, it is against the Maildir specs. stat()ing the
+ file then makes syncing slower.
- another MUA might still move the mail to cur/
- if first file's flags are modified by either Dovecot or another
MUA, it's moved to cur/ (you _could_ just do the dirty-flagging
More information about the dovecot-cvs
mailing list