dmarc-srg icon indicating copy to clipboard operation
dmarc-srg copied to clipboard

Unable to process reports that contain directories

Open andrewhenke opened this issue 2 years ago • 1 comments

Hello! I have noticed that the process of parsing and importing the emails from the IMAP connection fails if the attachment file contains a directory within the file archive.

Is it within the development roadmap to implement functionality to process both unnested and nested report formats -- it's something that I don't have control over, of course, and I'd like to be able to include the report contents in the system.

Thank you!

andrewhenke avatar Apr 04 '23 18:04 andrewhenke

Hello! RFC 7489 does not assume directories in the report file. I introduced this restriction intentionally, partly to weed out suspicious reports, and partly so as not to unnecessarily complicate the code that parses report files.

Maybe I will make support for directories inside zip files as an option, but not anytime soon. Sorry. You can still unzip report files by your own script, put them in a server directory and then automatically process them from the directory with this tool.

liuch avatar Apr 12 '23 17:04 liuch