471,596 Members | 1,505 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,596 software developers and data experts.

saving an e-mail attachement

I'm trying to figure out how to save an e-mail attachment from a POP3
mailbox. I've scoured the web, but -none- of the examples I have
found have actually worked. For instance, in this example:
http://groups.google.com/group/comp....8922943a164ccf,
fn is always None, but the e-mail -does- have an attachment (an xml
file).

Jul 31 '08 #1
1 990
ro**********@gmail.com wrote:
I'm trying to figure out how to save an e-mail attachment from a POP3
mailbox. I've scoured the web, but -none- of the examples I have
found have actually worked. For instance, in this example:
http://groups.google.com/group/comp....8922943a164ccf,
fn is always None, but the e-mail -does- have an attachment (an xml
file).

--
http://mail.python.org/mailman/listinfo/python-list

Try attached (caution *not* tested, I just cut and pasted it from a
larger script I use (it should work :) ).

I have used a similar method quite successfully.

HTH

Regards

Nicolaas

--

The three things to remember about Llamas:
1) They are harmless
2) They are deadly
3) They are made of lava, and thus nice to cuddle.

Aug 1 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by G-Factor | last post: by
1 post views Thread by Mahesh Devjibhai Dhola [MVP] | last post: by
2 posts views Thread by manning_news | last post: by
14 posts views Thread by Amitabh Deepak | last post: by
2 posts views Thread by =?Utf-8?B?bWFydGluMQ==?= | last post: by
27 posts views Thread by RobG | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.