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

Fix attachment parsing when a semicolon character ends the Content-Di… #100

Merged
merged 1 commit into from
Oct 6, 2017

Conversation

sblondon
Copy link
Contributor

@sblondon sblondon commented Oct 6, 2017

…sposition line

This pull-request is due to the issue #99.

If there is a ; at the end of the line, the last element of the splitted list (which is an empty string) is ignored so no exception is raised.

As you can see in the 4th assertion in test_parse_attachment(), the filename is wrapped into " characters. Perhaps, they should be removed?
I can do it in this PR or do another one.
I don't know if there are cases of filename attributes without " characters.

@martinrusev martinrusev merged commit 6e0ee23 into martinrusev:master Oct 6, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants