fix Date header generated by got-notify-email
commit15ff48f3a4567fbd4e399927ef2cd565ff19421f
authorStefan Sperling <stsp@stsp.name>
Fri, 10 May 2024 21:25:16 +0000 (10 21:25 +0000)
committerStefan Sperling <stsp@stsp.name>
Fri, 10 May 2024 21:25:16 +0000 (10 21:25 +0000)
tree197df75b08fa8dbcd469446ea6db9bea5aefa591
parent1ddd9d55d5c5f0e3df1e0f102ebbd8c9b420a0fb
fix Date header generated by got-notify-email

asctime_r() is not a source of valid date strings for email.
Borrow code from OpenSMTPD instead for this purpose.

Problem reported by naddy, who also found the smtpd code to use.
gotd/libexec/got-notify-email/got-notify-email.c