Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7255

smtp - python

From "Josias L.G" <josiaslg@bsd.com.br>
Subject smtp - python
Date 2011-06-08 17:18 -0300
Newsgroups comp.lang.python
Message-ID <mailman.31.1307564329.11593.python-list@python.org> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

smtp - python "Josias L.G" <josiaslg@bsd.com.br> - 2011-06-08 17:18 -0300

csiph-web