smtp - python

J

Josias L.G

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,048
Members
48,769
Latest member
Clifft

Latest Threads

Top