[Dovecot] Are Mail files in /Maildir/cur & /Maildir/.Sent read-only ?

Noel Butler noel.butler at ausics.net
Tue Jan 26 23:58:13 EET 2010


On Tue, 2010-01-26 at 14:47 +0200, Timo Sirainen wrote:


> 
> No, file's ctime changes when you change flags. mtime never changes. But
> mtime can't really be trusted. An IMAP client can save a new messages
> with INTERNALDATE set to 10 years ago, and the file's mtime will be from
> 10 years ago. Or just copying a message to another mailbox preserves the
> mtime.
> 
> > If you want to delete mails of a certain age you can you use either the 
> > Dovecot Xxpunge plugin or a cronjob with a command like:
> > 
> > find /home -mtime +30 -name *,ST -exec rm {} \;
> 
> I'd use -ctime.


and I'd go a little further by replacing  -exec rm ...  with     -print
| /usr/bin/perl -nle 'unlink;'


--
Kind Regards,
SSA Noel Butler
L.C.P No. 251002 
________________________________________________________________________
This Email, including any attachments, may contain legally privileged
information, therefore remains confidential and subject to copyright
protected under international law. You may not disseminate or reveal any
part to anyone without the authors express written authority to do so.
If you are not the intended recipient, please notify the sender and
delete all relevance of this message including any attachments,
immediately. Confidentiality, copyright, and legal privilege are not
waived or lost by reason of the mistaken delivery of this message. Only
PDF and ODF documents are accepted, do not send Microsoft proprietary
formatted documents.

________________________________________________________________________


More information about the dovecot mailing list