2

Fetchmail only has the option to delete mail from the server or not. Is there something that exists that does basically exactly what fetchmail does, except which also supports the option to only delete mail older than some time period?

2 Answers 2

1

What you want is getmail.

http://pyropus.ca/software/getmail/

You want the delete_after (integer) attribute:

if set, getmail will delete messages this number of days after first seeing them, if they have been retrieved and delivered.

0

Provided you aren't running in daemon mode. You can configure a separate fetchmail instance to run periodically with the flush flag.

Such as: #Flush fetchmail weekly 1 1 * * 1 cd /home/username; /usr/bin/fetchmail --flush

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .