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

Allow for escaped quote in quoted text #102

Merged
merged 1 commit into from May 2, 2016
Merged

Allow for escaped quote in quoted text #102

merged 1 commit into from May 2, 2016

Conversation

ro0NL
Copy link
Contributor

@ro0NL ro0NL commented May 1, 2016

According to https://en.wikipedia.org/wiki/Email_address#Local_part we should expect an email address like "very.(),:;<>[]\".VERY.\"very@\\ \"very\".unusual"@strange.example.com.

I.e. an escaped quote in a quoted text part, currently the local part parser reaches until "very.(),:;<>[]\.

@coveralls
Copy link

coveralls commented May 1, 2016

Coverage Status

Coverage decreased (-0.5%) to 91.724% when pulling b7a5182 on ro0NL:bugfix/escaped-quotes into 8853b6b on egulias:master.

@ro0NL
Copy link
Contributor Author

ro0NL commented May 1, 2016

FYI i think the right solution for #101 and #68 is to let the parser return a full AST for the given email address, from which you can reconstruct the email adress exactly as given. I.e. it allows for formatters. That way you would also have warnings per part as currently domain warnings can override local warnings, which is fine from a validation POV but we lose context.

@egulias
Copy link
Owner

egulias commented May 2, 2016

It probably is. Lets chat on #101

@egulias egulias merged commit 102932a into egulias:master May 2, 2016
@ro0NL ro0NL mentioned this pull request May 2, 2016
@ro0NL ro0NL deleted the bugfix/escaped-quotes branch May 2, 2016 14:48
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

3 participants