Hi!
Like Jan Klaverstijn I am interested in deleting mails after N days,
except that I need it for IMAP. I have the following solution in mind:
When emails get fetched from the server, fetchmails writes time, UID,
server, username, mailbox in one line into a logfile
(e.g. mailcleaner.log). This needs a modification of the source of
fetchmail. This logging should only be done if it is enabled by the
user.
A second programm reads mailcleaner.log and fetchmailrc and deletes
messages which where fetched more than N days ago.
Before doing any coding I want to know what you think about it. It
think the changes to fetchmail will be very small and would not affect
other fetchmail users.
thomas
--
Thomas Guettler <guettli(_at_)thomas-guettler(_dot_)de>
http://www.thomas-guettler.de