-
Notifications
You must be signed in to change notification settings - Fork 23
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
Parser issues on "From" #3
Comments
Ooops :) , I have a lot of work this week, so unfortunatly I will only fix this next week. |
Hi @jschoch , are you still interested in getting this fixed? |
Yup! |
Wow, who knew parsing email was such a kludge. I spent a ton of time reading the RFC's and trying different approaches. The problem is when the from header has something like that should be data |> String.strip |> String.split(~r/(,)(?=(?:[^"]|"[^"]*")*$)/) |> Enum.map(&MimeMail.Address.decode/1) This allows for the very oddball multiple from which the RFC's allow. Wondering if someone can take a look and see if this works. It may be good to only do this with the From: header |
Great library btw!!!!
The following is parsed incorrectly
here is the resulting parsed terms
The text was updated successfully, but these errors were encountered: