saving an e-mail attachement

Aspersieman aspersieman at
Fri Aug 1 10:08:24 CEST 2008

robinsiebler at 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:
> fn is always None, but the e-mail -does- have an attachment (an xml
> file).
> --
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.





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. 

-------------- next part --------------
A non-text attachment was scrubbed...
Type: text/x-python
Size: 2351 bytes
Desc: not available
URL: <>

More information about the Python-list mailing list