cyberdefenders / email-header-analyzer

E-Mail Header Analyzer
https://mailheaderanalyzer.herokuapp.com/
Other
638 stars 158 forks source link

Unknown string format when parsing timestamp? #5

Closed tomakey closed 6 years ago

tomakey commented 6 years ago

MHA hitting problem parsing this line (error 500): Received: by server.domain.com id xx228x1xxxx0 for first.last@domain2.com; Sun, 1 Apr 2018 03:01:53 -0400 (envelope-from bounce_yyyy-first.last=domain2.com@domain.com)

Server side error messages: raise ValueError("Unknown string format:", timestr) ValueError: (u'Unknown string format:', 'Sun, 1 Apr 2018 03:01:53 -0400 (envelope-from bounce_yyyy-first.last=domain2.com@domain.com)')

lnxg33k commented 6 years ago

That is because the fuzzy dateutil.parser parser used (envelope-from bounce_yyyy-first.last=domain2.com@domain.com) as a timezone.