Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Fetch files from mail in python

2 views
Skip to first unread message

Chris Rebert

unread,
Mar 30, 2010, 7:39:08 PM3/30/10
to hid...@gmail.com, pytho...@python.org
On Tue, Mar 30, 2010 at 4:33 PM, <hid...@gmail.com> wrote:
> Hello list, i want to know how could i fetch a file from an email, what kind
> of library i have to use for that, actually i am working in the support of
> IMAP and POP3.

Next time, consult the Global Module Index
(http://docs.python.org/modindex.html) before posting.

IMAP: http://docs.python.org/library/imaplib.html
POP: http://docs.python.org/library/poplib.html

Cheers,
Chris
--
http://blog.rebertia.com

Chris Rebert

unread,
Mar 30, 2010, 8:56:27 PM3/30/10
to hid...@gmail.com, pytho...@python.org
> On Mar 30, 2010 7:39pm, Chris Rebert <cl...@rebertia.com> wrote:
>> On Tue, Mar 30, 2010 at 4:33 PM,  hid...@gmail.com> wrote:
>> > Hello list, i want to know how could i fetch a file from an email, what
>> > kind
>> > of library i have to use for that, actually i am working in the support
>> > of
>> > IMAP and POP3.
>>

On Tue, Mar 30, 2010 at 5:47 PM, <hid...@gmail.com> wrote:
> I did that but i want to know if i have a file inside the mail how could i
> download that file from my mail.

I believe you'd use the email.parser module:
http://docs.python.org/library/email.parser.html

Cheers,
Chris

Message has been deleted
0 new messages