Use Maildir++ scheme for naming files. This includes the message size in the
filename which with some mail systems is used for quota caluclation.
If link()ing from the tmp/ directory to the new/ directory fails with EEXIST
try with another target filename again after sleeping for some time (Break out
after 5 attempts).
|