- Fix parsing emails with an uncompressed aggregate report attachment (Closes #607)
- Add `--no-prettify-json` CLI option (PR #617)
This commit is contained in:
Sean Whalen
2025-11-20 20:47:57 -05:00
parent 2a7ce47bb1
commit 082b3d355f
6 changed files with 49 additions and 23 deletions

2
.gitignore vendored
View File

@@ -142,4 +142,6 @@ scratch.py
parsedmarc/resources/maps/base_reverse_dns.csv
parsedmarc/resources/maps/unknown_base_reverse_dns.csv
parsedmarc/resources/maps/sus_domains.csv
parsedmarc/resources/maps/unknown_domains.txt
*.bak

16
.vscode/launch.json vendored
View File

@@ -11,6 +11,22 @@
"program": "${file}",
"console": "integratedTerminal"
},
{
"name": "sample.eml",
"type": "debugpy",
"request": "launch",
"module": "parsedmarc.cli",
"args": ["samples/private/sample.eml"]
},
{
"name": "find_sus_domains.py",
"type": "debugpy",
"request": "launch",
"program": "find_sus_domains.py",
"args": ["-i", "unknown_domains.txt", "-o", "sus_domains.csv"],
"cwd": "${workspaceFolder}/parsedmarc/resources/maps",
"console": "integratedTerminal"
},
{
"name": "sortlists.py",
"type": "debugpy",

View File

@@ -1,6 +1,12 @@
Changelog
=========
8.18.8
------
- Fix parsing emails with an uncompressed aggregate report attachment (Closes #607)
- Add `--no-prettify-json` CLI option (PR #617)
8.18.7
------

View File

@@ -103,7 +103,9 @@ def _main():
def process_reports(reports_):
indent_value = 2 if opts.prettify_json else None
output_str = "{0}\n".format(json.dumps(reports_, ensure_ascii=False, indent=indent_value))
output_str = "{0}\n".format(
json.dumps(reports_, ensure_ascii=False, indent=indent_value)
)
if not opts.silent:
print(output_str)
@@ -483,7 +485,7 @@ def _main():
"--no-prettify-json",
action="store_false",
dest="prettify_json",
help="output JSON in a single line without indentation"
help="output JSON in a single line without indentation",
)
arg_parser.add_argument("-v", "--version", action="version", version=__version__)
@@ -625,7 +627,7 @@ def _main():
webhook_aggregate_url=None,
webhook_forensic_url=None,
webhook_smtp_tls_url=None,
webhook_timeout=60
webhook_timeout=60,
)
args = arg_parser.parse_args()

View File

@@ -1,2 +1,2 @@
__version__ = "8.18.7"
__version__ = "8.18.8"
USER_AGENT = f"parsedmarc/{__version__}"