pyMail icon indicating copy to clipboard operation
pyMail copied to clipboard

Attachment handling not functional

Open raymondlu31 opened this issue 7 years ago • 0 comments

It can print msg as string, which includes encoded attachment MIME part, but it cannot parse/separate attachment name and data as expected.

Tested with jpg and pdf files, pdf test case stop with IO error:

Traceback (most recent call last): File "xxx.py", line 31, in fileob = open(attachment['name'],'wb') IOError: [Errno 2] No such file or directory: '\\webreq\WebReqDocs\469f6b6f0571492cb5bf11ffbcc7f7c0636282076179722797.pdf'

The actual attachment file name is "__webreq_WebReqDocs_469f6b6f0571492cb5bf11ffbcc7f7c0636282076179722797.pdf" It seems got wrong escape.

raymondlu31 avatar Jun 01 '17 01:06 raymondlu31