foten wrote:
The problem I'm having is when I'm trying to extract the attachement using f=open(Filename, "wb") f.write(msg.get_payload(decode=1)) f.close() Not the whole message is decoded and stored! When only trying f.write(msg.get_payload()) I see that the last 255 bytes are missing.
How is this possible, I receive every last byte from stdin?
I don't think its a Python problem. Those methods are used in a lot of places. Your file is most likely not what it is supposed to be.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list