-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Inconsistent parsing of message_id and in_reply_to #197
Comments
Hi @nielspeen , I just checked the Lines 212 to 214 in ed93fe4
The Best regards, |
It seems like the same thing is happening with references. Does this have a particular background or could we remove the less than / greater than signs in reply-to and references? PS: Awesome project :) |
Maybe it is easy not to delete the signs at the message id? I already tried to find out why the characters at the message ids are present at all. Unfortunately I haven't found anything about it in the RFCs so far. |
After a long search to see if the angle brackets belong to the message id, I finally found something in the RFC. According to RFC 2822 (page 25):
Other sources:
https://stackoverflow.com/a/34811337/10599992
I therefore interpret that all What do you think about it, @Webklex? Should we maybe write a separate class for the three headers, similar to the address class? In this we could then also provide the message ids with the angle brackets. I look forward to hearing your thoughts on this! |
Describe the bug
Header::parse removes
<
and>
frommessage_id
, but not fromin_reply_to
.A message with
Message-ID: <[email protected]>
will have$message->message_id="[email protected]"
A message with
In-Reply-To: <[email protected]>
will have$message->in_reply_to="<[email protected]>"
As a result the two cannot be compared or used in database queries without first removing
<
and>
fromin_reply_to
.Expected behavior
message_id
andin_reply_to
should use the same format/parsing, so they can be used in queries and comparisons.The text was updated successfully, but these errors were encountered: