Fix date parsing to be even more forgiving
authorMagnus Hagander <magnus@hagander.net>
Tue, 8 Jan 2019 10:05:14 +0000 (11:05 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 8 Jan 2019 10:05:14 +0000 (11:05 +0100)
commit2bc1f82f8f8efea5b26fb28b987579b98d7ee171
treee6470918c5834f55a4b4cf0e4ba6e2063944f708
parent420333a64ce22694f7899b2bacb54074dd66fa9b
Fix date parsing to be even more forgiving

In particular, if parsing the date either fails or if it results in a
date that's in the future, fall back to parsing the dates out of the
Received: headers instead, because at some point there we will find a
parsable date for sure (if not before then when it hit one of our own
servers)
loader/lib/parser.py