Closed waldner closed 10 months ago
Thanks for reporting this.
There was indeed a bug in the function that converts the time to RFC2822 format.
The bug existed in msmtp ever since it began writing Date headers. The code was imported from mpop, where it was introduced in version 0.7.0 in 2005. At that time, I was apparently stupid enough to think that meddling with time data manually instead of using strftime
was in some way justifiable. I should have known better.
This is fixed now in both msmtp and mpop.
Thanks!
Just after midnight 1/1/2024, an msmtp instance started adding
Date:
headers like this:The system date of the machine where this is running is correct:
set_date_header
must be at the default ofauto
, since it's not configured.UPDATE: As I wrote this, 1AM ticked and after 1AM, the added
Date:
header is back to normal:So take this as informational, perhaps there is some corner case that only appears during the hour from 00:00 to 1:00 on the 1/1.