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
Message parser chocking on charset-encoded addresses #7
Comments
Hello, The issue is caused by missing space between the displayed name However, I am aware that RFC requirement sometimes are too hard. There is so called strict mode which (when disabled) allows some of the mandatory requirements to be omitted. Unfortunately, the case with the address is not included. What I can do is take a look into the code and check if the fix can be made easily without breaking the existing functionality. Also, the MIME formatter/parser recognizes only ASCII and UTF-8 formats of the address (i.e. the displayed name part). Other formats like Windows-1252 are not supported. Doing that would require dealing with various codecs, probably by using an external library. Regards, |
Thanks for looking into this. If I am not mistaken, according to RFC2822 section 3.4 the white space (
Thanks. Concurrently, I wanted to toy with |
Actually, the bug exists only when Q encoding is used for the displayed name. In the case |
@xguerin Take a look of the latest commit, tagged with version_0-16-1 on the master branch. It allows parsing of the Q encoded name/address in the case when no space exists between the displayed name and the address. Internal tests (which are far from being perfect) look fine, no existing feature should be broken. |
Thanks ! That fixes it for that particular header. |
Hello there!
The message parser is giving me the following error:
Thrown from
message.cpp:716
, because of the following sender address:My initial intuition is that MIME header encodings are not supported, but I might very well be wrong. I'll do a bit more digging, but any guidance would be appreciated :)
Thanks,
The text was updated successfully, but these errors were encountered: