SpamScope / mail-parser

Tokenizer for raw mails
https://pypi.python.org/pypi/mail-parser
Apache License 2.0
367 stars 87 forks source link

Added support to enable/disable received header parsing errors #91

Closed nitishkansal closed 1 week ago

nitishkansal commented 3 years ago

There is logging of error when received header parsing returns more than 1 match and its most of the time not correct regex and end up in error. Added a flag in functions to suppress that logging. By default it will be true and will keep working as it is but it will give an option to users if they want to turn it off as it happened in our case, we dont want to parse it but its creating unnecessary noise in our error logging.

fedelemantuano commented 1 week ago

This code conflicts with new refactoring.