Hi list,

On 1/28/26 23:10, John Levine via mailop wrote:
It appears that A.Schulze via mailop <[email protected]> said:
Hello experts,

today, I found messages with this header:

        Date: Wed Jan 28 14:46:29 CET 2026

You are correct, it's wrong.

- python3.13 say: valid -> email.utils.parsedate() does not return 'None'

I looked at the code and it's deliberate. There have been a lot of
mail programmers in the past that didn't read the spec, so it's
adapting to reality.


For the record: Rspamd also finds:
Symbol: INVALID_DATE (1.50)

One should not write a software that GENERATES such Date headers. However, when reading Mails with such Date headers, one might be more tolerant in accepting format errors instead of rejecting the input. That's also what Rspamd does here: score 1.5 points but do not reject it completely. I guess that's also the intention of the Python programmers that allowed parsing this header successfully.

Did you test, what MUAs like Thunderbird, Outlook, GMail, Roundcube, or Mutt do with such an header? I don't think you need to test an Python-based MUA. ;-)

Regards,
--
Patrick Cernko <[email protected]>

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
mailop mailing list
[email protected]
https://list.mailop.org/listinfo/mailop

Reply via email to