Hi, Dovecotters.
In the Maildir code, dovecot-0.99.10/src/lib-storage/index/maildir/maildir-copy.c, I see that hardlinks are used. It seems that (line 185) if MAILDIR_COPY_WITH_HARDLINKS is exported, then copying is attempted by using link.
Having problems reading the source / flow of control, I resort to this list.
When a file is linked, the mtime is naturally kept on the destination.
This gives the destination message the same internaldate as the original.
The destination mailbox would then be likely to get an arrival with an
earlier internaldate than its newest message. The IMAP protocol says to
bump UIDVALIDITY when this happens.
Does Dovecot always bump UIDVALIDITY when messages are copied, or is not the mtime used for internaldate?
Best regards,
Andreas
-- Andreas Aardal Hanssen
On Tuesday, Aug 12, 2003, at 23:24 Europe/Helsinki, Andreas Aardal Hanssen wrote:
When a file is linked, the mtime is naturally kept on the destination. This gives the destination message the same internaldate as the original. The destination mailbox would then be likely to get an arrival with an earlier internaldate than its newest message.
Internaldate should be preserved while copying in any case.
The IMAP protocol says to bump UIDVALIDITY when this happens.
Where?
participants (2)
-
Andreas Aardal Hanssen
-
Timo Sirainen