erikcw wrote:
> resp = p.retr(msg_num)
> if resp[0].startswith('+OK'):
You don't have to check this; errors are transformed into exceptions.
> fileObj = StringIO.StringIO()
cStringIO is faster
> fileObj.write( part.get_payload() )
You have to reset the file pointer to the beginning: fileObj.seek(0),
else ZipFile will not be able to read the contents.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
