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

net/mail: AddressList fails to parse addresses with a dot #4938

Closed
eaigner opened this issue Feb 28, 2013 · 6 comments
Closed

net/mail: AddressList fails to parse addresses with a dot #4938

eaigner opened this issue Feb 28, 2013 · 6 comments
Milestone

Comments

@eaigner
Copy link
Contributor

eaigner commented Feb 28, 2013

Header.AddressList(key) fails to parse the following address

    Asem H. <noreply@n.testflightapp.com>

I tested several addresses with whitespace, quotes, etc., and that's the only one with a
dot, so I assume that's the problem.
@dsymonds
Copy link
Contributor

dsymonds commented Mar 9, 2013

Comment 1:

That address doesn't conform to RFC 5322. The display-name needs to be quoted.
  "Asem H." <noreply@n.testflightapp.com>

Labels changed: removed go1.1maybe.

Status changed to WorkingAsIntended.

@eaigner
Copy link
Contributor Author

eaigner commented Mar 9, 2013

Comment 2:

I know, but mail headers floating around are malformed more often than not. Wouldn't it
be better to make the parser more lenient?

@rsc
Copy link
Contributor

rsc commented Mar 11, 2013

Comment 3:

I see no problem with making the mail parser accept this address, but I'd
like to postpone it until after Go 1.1. Thanks.

@ianlancetaylor
Copy link
Contributor

Comment 4:

Labels changed: added go1.2maybe.

Status changed to Thinking.

@rsc
Copy link
Contributor

rsc commented Jul 30, 2013

Comment 5:

Labels changed: added feature.

@bradfitz
Copy link
Contributor

bradfitz commented Aug 8, 2013

Comment 6:

This issue was closed by revision 73b8baa.

Status changed to Fixed.

@rsc rsc added this to the Go1.2 milestone Apr 14, 2015
@rsc rsc removed the go1.2maybe label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants