[Dovecot] Fileoperations in Maildir – problematic or okay?

Martin Burgraf martin.bg at web.de
Mon Aug 5 10:36:44 EEST 2013


Hi,

I'm wondering: Is it a problem to move and delete files inside a dovecot-managed maildir?

For example:
I have a folder ~/.maildir/.Sub1.Start/cur and a folder ~/.maildir/.Sub1.Start.old/cur
and like to regularly move old mails from the first to the second one.
Can you create a cron job saying something like:
find ~/.maildir/.Sub1.Start/cur -mtime +5 -exec mv {} ~/.maildir/.Sub1.Start.old/cur \;
?

I guess this would be some sort of problem, wouldn't it?
IIRC dovecot keeps indexes of the files inside a folder and moving them around like this may confuse the software, am I right?


bye
Martin


More information about the dovecot mailing list