smtp - python

Josias L.G josiaslg at bsd.com.br
Wed Jun 8 16:18:40 EDT 2011


Hi for all,
I'm very newbie in python and is very good language.
I'm trying to adopt a example:

import smtpd
import asyncore

server = smtpd.PureProxy(('127.0.0.1', 1025), ('mail', 25))

asyncore.loop()

I'm trying to copy the email that is send to another email in maildir format.  
Here, i'm reading about the mailbox module, however, i don't know how start that (get the email that was transferred and, trought mailbox module, save all mails in one file). 

Can someone indicate something to me read ?.. examples... texts and etc.

Thanks.




More information about the Python-list mailing list