domainaware / parsedmarc

A Python package and CLI for parsing aggregate and forensic DMARC reports
https://domainaware.github.io/parsedmarc/
Apache License 2.0
961 stars 209 forks source link

Fix new config variables previously not propagated in the code #524

Closed ryuksan closed 1 month ago

ryuksan commented 1 month ago

523

The new config variables were not correctly propagated in the code (8.11.0).

always_use_local_files - Disables the download of the reverse DNS map
local_reverse_dns_map_path - Overrides the default local file path to use for the reverse DNS map
reverse_dns_map_url - Overrides the default download URL for the reverse DNS map

i.e. If you set the config variable always_use_local_files = True in the parsedmarc.ini, it will always be False while parsing the reports using a mbox or mailbox

There are 2 specific calls to parse_report_email that need the new arguments to be passed (in __init__.py) Without passing them, the default value (Falseor None) will always be applied. After that, this code should be propagated back in the __init__.py and cli.py files