[Dovecot] Hardlinks in copy

Andreas Aardal Hanssen dovecot at andreas.hanssen.name
Tue Aug 12 23:24:18 EEST 2003


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




More information about the dovecot mailing list