liuch / dmarc-srg

A php parser, viewer and summary report generator for incoming DMARC reports.
GNU General Public License v3.0
218 stars 32 forks source link

Unable to process reports that contain directories #60

Open andrewhenke opened 1 year ago

andrewhenke commented 1 year ago

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!

liuch commented 1 year ago

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.