mail filter in python?
Garrett G. Hodgson
garry at sage.att.com
Tue Feb 8 14:20:56 EST 2000
François Pinard wrote:
> > 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...
>
> Do not underestimate what `procmail' does. It has a _lot_ of features, and
> was debugged over many years, by a rather careful programmer. Of course,
> one may try and do better, this is often how programs evolve. But the
> overall problem might much, much more obfuscated than procmail syntax :-).
that's two people who've pointed out the difficulty in getting it right.
perhaps a better approach is to build yourself a python syntax to
generate the crufty procmail syntax.
--
Garry Hodgson Every night
garry at sage.att.com a child is born
Software Innovation Services is a Holy Night.
AT&T Labs - Sophia Lyon Fahs
More information about the Python-list
mailing list