rfc822 module: deleting headers

Peter Hansen peter at engcorp.com
Wed May 22 08:00:36 EDT 2002


Tim Roberts wrote:
> 
> I don't know about .qmail, but sendmail's .forward cannot be used to filter
> e-mail.  You can read the message, send it somewhere else, store it to
> file, or do other things, but you can't alter the message on its way to
> your local mailbox.  Indeed, in your example, you didn't DO anything with
> your altered message.  You read it from stdin and modified it in memory,
> but you didn't write it anywhere.
> 
> You might want to investigate procmail.  It is designed for this kind of
> application.  If .qmail is supposed to support the same kind of
> functionality, then you need to figure out where you are supposed to WRITE
> the modified message.

Since Jason develops TMDA, and since TMDA (which I just installed under
qmail) successfully intercepts email messages and either holds them
for later deliver, or bounces them, or deletes them, I'm pretty sure
that (a) qmail actually allows such things, and (b) Jason knows most
of how to do it. :-)

I was going to reply to him (before I recognized his name) to say he
might look at the TMDA source for inspiration, but obviously that would
be the least useful help I could give. :-)

(Jason, I've had TMDA installed for about ten hours, and already my
spam level has dropped to zero.  Thank you!)

-Peter



More information about the Python-list mailing list