python script as an emergency mailbox cleaner

Karlheinz klingbeil lunqual at
Tue Sep 23 19:02:09 CEST 2003

Alex Martelli wrote:

> All my mailboxes have been filling up with files of about 130k to 150k, no
> doubt copies of some immensely popular virus.  So, I've no doubt lost lots
> of real mail because of "mailbox full" conditions (the proliferating fake
> bounce messages more or less ensure nobody knows their mail to me has
> bounced, either).
> As an emergency response I and Anna developed, over the last half hour, a
> small Python script to be run from cron every few minutes and
> automatically
> scrub any POP3 mailbox from files in the target size range.  I'm saving
> them to a local file for potential later perusal, but that's obviously

I have made a quick and dirty pop-cleaner, mor configurable with size, regex
to deny and regular pattern match to explicitly allow mails
look at (only 3kb)

Greetz.... lunqual

More information about the Python-list mailing list