mail filter in python?

Gerrit Holl gerrit.holl at pobox.com
Mon Feb 7 15:46:41 CET 2000


Remco Gerlich wrote on 949925767:
> Greg McFarlane wrote in comp.lang.python:
> > I am looking for a replacement for the "filter" program that comes
> > with elm - something that I do not have to compile and something that
> > is easy to hack on.  Does anyone know of a python version?
> 
> The best program out there for this sort of thing is Procmail. It does
> everything. It's not Python, it is compiled C. But the config files are easy
> to make.
> 
> http://www.procmail.org

The procmail syntax is really obfuscated. What about creating a mail
filter with a Python syntax? Shouldn't be too difficult, just create
some functions (drop, match_header) and execfile() a file with the
rexec module...

regards,
Gerrit.

-- 
homepage: http://www.nl.linux.org/~gerrit
-----BEGIN GEEK CODE BLOCK----- http://www.geekcode.com
Version: 3.12
GCS dpu s-:-- a14 C++++>$ UL++ P--- L+++ E--- W++ N o? K? w--- !O
!M !V PS+ PE? Y? PGP-- t- 5? X? R- tv- b+(++) DI D+ G++ !e !r !y
-----END GEEK CODE BLOCK----- moc.edockeeg.www//:ptth




More information about the Python-list mailing list