gutmensch / docker-dmarc-report

211 stars 23 forks source link

"processed" and "error" IMAP folders - doesn't move #49

Open ghnp5 opened 5 months ago

ghnp5 commented 5 months ago

Hey!

It appears that the move to "processed" and "error" might not be working.

All that is happening is that the emails are being marked as Read, but they stay in the Inbox folder.

I also tried to create the "processed" and "error" folders, but it's still not moving.

--

However anyway, as I have a cron that expires the emails after some time, I probably would like to keep the current behavior, to keep the emails in Inbox.

For that effect, do I just remove the env vars PARSER_IMAP_MOVE_FOLDER and PARSER_IMAP_MOVE_FOLDER_ERR, or do I need to keep them, but empty, or... ?

Thanks!

ghnp5 commented 5 months ago

I see this functionality is actually part of techsneeze/dmarcts-report-parser.

And I see that its output is logged in /var/log/nginx/dmarc-reports.log.

Looking at the logs, the problem is that the folder isn't detected, and it's failing to CREATE the folder.

For the move to work, the folder has to exist already, and prefix it with INBOX..

e.g. if I want to move the emails to Trash: INBOX.Trash

ghnp5 commented 5 months ago

Might be a good idea to let the output go to docker logs instead of /var/log/nginx/dmarc-reports.log :-)

Thank you!