Open moorereason opened 6 months ago
I suppose that this is the same issue:
[INFO] files: found 243 input files in /home/james/Maildir/.dmarc/cur/
[ERROR] files: mimetype text/plain; charset=utf-8 not supported in file /home/james/Maildir/.dmarc/cur/..., skip
...
[ERROR] processFiles: reports list is empty
Since that error includes every single dmarc report received, how is dmarc-report-converter
useful? Am I missing something? Do each of the dmarc report files need to be manually extracted before processing?
@thx1111, I think you're problem is unrelated.
I've received some emails that use inline MIME headers which are silently ignored.
Sample content:
At the very least, it would help to log a message:
The underlying issue is here: https://github.com/tierpod/dmarc-report-converter/blob/abf80ca2ebc98e0437aaa4253fe7b4f4e0ec716f/cmd/dmarc-report-converter/imap.go#L173-L174
An offending message returns headers of type
*mail.InlineHeader
. The go-message API for inline vs attachment headers is very different. See https://github.com/emersion/go-message/issues/138 for a discussion about the need for feature parity between the two types, but it doesn't appear that any work has been done.