[PATCH 2/2] lib: clamp return value of g_mime_utils_header_decode_date to >=0

David Bremner david at tethera.net
Wed Mar 15 18:16:25 PDT 2017


David Bremner <david at tethera.net> writes:

> For reasons not completely understood at this time, gmime (as of
> 2.6.22) is returning a date before 1900 on bad date input. Since this
> confuses some other software, we clamp such dates to 0,
> i.e. 1970-01-01.

series pushed, amended per Tomi's suggestion. It's possible I've been
writing an unhealthy amount of scheme lately. Dunno what else would make
the ternary if operator look sensible.

d


More information about the notmuch mailing list