Quoting from James Stone's mail on Sun, Oct 12, 2003 at 04:11:04PM +0100:
Please find python script attached. I should be able to add the size
deletion feature as well, but I want to be happy that this script is
working optimally first. Would be grateful for any feedback on the code,
or experiences from using the script.
The script seems to be great. I had a few doubts of how exactly the
time calculation was being done. However, I now see that local
timestamps are indeed being used. A few notes:
- mold_remover cannot be used as a cron job as the comments indicate.
fetchmail running in daemon mode and the cron job may run together
causing problems in accessing the id file as well as the mailbox.
- ssl and various auth methods supported by fetchmail are not
supported here. When security is an issue, this script cannot be
used.
- The id file format may change soon and may already have timestamps.
Then, mold_remover may not have to write any files then!
- IMAP UIDs may be supported soon. Then, mold_remover should do the
same for IMAP also!
--
Sunil Shetye.