Extract zip file from email attachment
gagsl-py2 at yahoo.com.ar
Sat Apr 7 07:51:22 CEST 2007
> > Could the file like object still be encoded in MIME or something?
> Yes it is. You don't need to seek(0).
> Try this:
> decoded = email.base64mime.decode(part.get_payload())
decoded = part.get_payload(decode=True)
zip = zipfile.ZipFile(fileObj)
More information about the Python-list