Automatic archival and expiration of messages?
Bernhard Erdmann
be at berdmann.de
Sun Feb 1 06:23:34 EST 2004
Mark London wrote:
> In order to keep INBOX to a reasonable size, I would like to set up an
> automatic system that would automatically move old messages from INBOX
> to another folder. Any suggestions? Thanks. - Mark
Some sort of
find user/mark -maxdepth 1 -type f -mtime +100 -exec mv {}
user/mark/oldmail \;
reconstruct user.mark
reconstruct user.mark.oldmail
could help. I don't know what happens to IMAP flags this way. Maybe the
IMAP approach would be better, i.e. using Perl to talk IMAP to move your
mails.
More information about the Info-cyrus
mailing list