You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is the line break (\r\n) inside the date part.
I am not an expert, but looking at RFC 5322, this case looks to me like the obsolete date and time syntax. Is this crate meant to support that? Or are we supposed to work around this? (E.g. by reading the Date header field in these cases.)
By the way, thanks for your work on this. Really useful for my upcoming mail client :)
The text was updated successfully, but these errors were encountered:
The date seems correct, it's the CRLF that is breaking the parser. Although the ABNF does not allow CRLFs within a date, any whitespace can be replaced with a CRLF in order to fold the lines.
I'll look into this as soon as I have some time.
I got sent a mail which makes the parser output
None
for thereceived
date. Here is a test case to reproduce the problem:The problem is the line break (
\r\n
) inside the date part.I am not an expert, but looking at RFC 5322, this case looks to me like the obsolete date and time syntax. Is this crate meant to support that? Or are we supposed to work around this? (E.g. by reading the
Date
header field in these cases.)By the way, thanks for your work on this. Really useful for my upcoming mail client :)
The text was updated successfully, but these errors were encountered: