Fetch files from mail in python
Chris Rebert
clp2 at rebertia.com
Tue Mar 30 20:56:27 EDT 2010
> On Mar 30, 2010 7:39pm, Chris Rebert <clp2 at rebertia.com> wrote:
>> On Tue, Mar 30, 2010 at 4:33 PM, hidura at 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.
>>
>> IMAP: http://docs.python.org/library/imaplib.html
>> POP: http://docs.python.org/library/poplib.html
On Tue, Mar 30, 2010 at 5:47 PM, <hidura at 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
More information about the Python-list
mailing list