mail filter in python?

Gerrit Holl gerrit.holl at pobox.com
Mon Feb 7 17:01:56 CET 2000


Oleg Broytmann wrote on 949932068:
> On Mon, 7 Feb 2000, Gerrit Holl wrote:
> > > 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...
> 
>    Welcome to the wonderful world of Security! :))) (and locking problems)
>    Procmail, being here for a long time, has a LOT of builtin mechanisms
> for locking, security checks, portability and so on.

File locking isn't hard to implement, what kind of security checks do you
mean? Python is portable so that's not a problem.

>    It would be hard to reimplement all that from scratch :(

I don't think so. Security is not an issue, the command runs under the
right uid.

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