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

2017-03-15 Thread David Bremner
David Bremner 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

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

2017-03-15 Thread Tomi Ollila
On Sun, Mar 12 2017, David Bremner wrote: > 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. > --- >

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

2017-03-12 Thread David Bremner
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. --- lib/message.cc | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff