domainaware / parsedmarc

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

Unexpected error: Can't convert 'PosixPath' object to str implicitly #457

Open AndreKR opened 6 months ago

AndreKR commented 6 months ago

I'm trying out parsedmarc and it doesn't seem to understand the report I gave it. The error message is:

Message with subject [...] is not a valid aggregate DMARC report: Unexpected error: Can't convert 'PosixPath' object to str implicitly

Here's the full log output:

patschi-parsedmarc-dockerized-parsedmarc-1  |    DEBUG:__init__.py:1109:Found 2 messages in INBOX
patschi-parsedmarc-dockerized-parsedmarc-1  |    DEBUG:__init__.py:1117:Processing 2 messages
patschi-parsedmarc-dockerized-parsedmarc-1  |    DEBUG:__init__.py:1121:Processing message 1 of 2: UID 1
patschi-parsedmarc-dockerized-parsedmarc-1  |     INFO:__init__.py:827:Parsing mail from "DMARC Aggregate Report" <dmarcreport@microsoft.com>
patschi-parsedmarc-dockerized-parsedmarc-1  |  WARNING:__init__.py:1141:Message with subject "Report Domain: webkr.de Submitter: protection.outlook.com Report-ID: 06006bd53086498e94916d2cd79b1baa" is not a valid aggregate DMARC report: Unexpected error: Can't convert 'PosixPath' object to str implicitly

The email in question: report.zip