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

Loss of data in "From" header value, when value has a comma. #31

Open
glr0221 opened this issue Jul 30, 2019 · 0 comments
Open

Loss of data in "From" header value, when value has a comma. #31

glr0221 opened this issue Jul 30, 2019 · 0 comments

Comments

@glr0221
Copy link

glr0221 commented Jul 30, 2019

In the file "dist/utils.js" you have the function encodeHeaderValue(). In that function when the key is "From", the code invokes convertAddresses(parseAddresses(value)); When this happens, the value "xxx, yyy [email protected]" becomes "yyy [email protected]".

Is the special handling of the comma-character because of the assumption that multiple email addresses are separated by commas? I don't think there can be multiple "From" addresses in an email though. If there can be only one "From" address, then the value should be used as is. Or am i mistaken that the "From" value can only be singular?

Thank you!!

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