mirror of
https://github.com/mailscope/kumomta.git
synced 2026-10-03 14:05:32 +00:00
Fallout from the xfer far-future timestamp issue is that we could try to produce a DSN for a message with a crazy date, which chrono's default RFC2822 rendering gives up on with a very hostile panic. This commit adds our own infallible rfc2822 formatter. It is infallible rather than fallible because dates can be formatted from inside Display impls where the full chain may not be prepared to handle an error.