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

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

Date: Wed, 15 Mar 2017 22:16:25 -0300

To: Johannes Schauer, notmuch@notmuchmail.org

Cc:

From: David Bremner


David Bremner <david@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

Thread: