Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachment handling not functional #7

Open
raymondlu31 opened this issue Jun 1, 2017 · 0 comments
Open

Attachment handling not functional #7

raymondlu31 opened this issue Jun 1, 2017 · 0 comments

Comments

@raymondlu31
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant