Writing 'intercepted' e-mail message to a mailbox
Jacobus van der Merwe
jacobus at geo.co.za
Thu Apr 19 04:12:21 EDT 2001
Hi,
I am redirecting all email sent user1 at myhost.co.za to a python script,
which
extracts certain data from the e-mail and writes it to file. But now I
still want
user1 to receive this e-mail.
I read the incoming mail using
mailMessage = rfc822.Message(sys.stdin)
How can I get the message from my variable mailMessage into user1's
mailbox?? I can not find a method that does it.
Thanks in advance,
Jacobus
More information about the Python-list
mailing list