kn 4a044aaefe Fix CopyArrivalDate for timestamps with single digit day of the month
On timestamps such as " 4-Mar-2018 16:49:25 -0500", mbsync would abort if
the Channel option `CopyArrivalDate' was set.

The IMAP protocol specifies a date format beginning with a day-of-month
space-padded to two characters.  The "%d" specifier in glibc's strptime(3)
will consume a space-padded day of month, but OpenBSD's "%d" only accepts
leading zeroes.

Prodded by this issue, our strptime(3) now strips leading spaces with "%e"
as of lib/libc/time/strptime.c r1.25.

Found, analysed and patch (using "%n%d" instead of "%e") from
Evan Silberman <evan at jklol dot net>, thanks!
2019-02-21 19:22:27 +00:00
..
2018-05-12 14:33:50 +00:00
2018-05-12 14:33:50 +00:00