-
Notifications
You must be signed in to change notification settings - Fork 36
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
Bracketing not supported #52
Comments
Hi! To my understanding, the RFC rules don't allow this format as-is. (Getting technical, the fundamental reason is that the It would be valid if it were quoted, for example:
So from the perspective of this library, which was created to parse email addresses according to this specification, this is expected. Now, that doesn't solve your problem. In curiosity, I wonder, what is your use case, what outside system is sending you emails in this format, and under what circumstances or as part of what protocol? That will help us figure out if there's anything this library can help with in a sane way. If there is a relevant spec or this is a common format then we could provide an option to allow it. |
Hi, sorry for the delay. I received an email with this format from a big corporate employee. So my use case is not really original. However, it's the only company that sends us this kind of format. Hope it helps. |
Hi,
I am using the 'email-addresses' package in order to parse incoming emails senders.
However, sometimes I get something like "JOHN DOE[XXX - DOE John] [email protected]". The functions parseOneAddress() and parseAddressList() both return
null
(image below).Would be nice to accept this kind of format.
Thanks!
The text was updated successfully, but these errors were encountered: