Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Import reports from email (attachments) #9

Open
andreasschulze opened this issue Jun 16, 2018 · 2 comments
Open

Import reports from email (attachments) #9

andreasschulze opened this issue Jun 16, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@andreasschulze
Copy link

currently dmarc-viewer (manage.py parse --type in /path/to/directory/) consume a directory with multiple uncompressed report.xml already extracted from e-mail messages, right?

would be handy if it could consume a directory with multiple messages, extract the attachement, optional decompress an then import data. As bonus, reading rfc822 messages from an IMAP server would be really cool! Then processed message could be moved to IMAP-folder done/ or fail/
(Idea: https://metacpan.org/pod/distribution/Mail-DMARC/bin/dmarc_receive)

@lukpueh
Copy link
Member

lukpueh commented Jun 17, 2018

Great idea!

@lukpueh lukpueh changed the title handling input Import reports from email (attachments) Jun 17, 2018
@lukpueh lukpueh added the enhancement New feature or request label Jun 17, 2018
@andreasschulze
Copy link
Author

I write a program that consume email messages and extract xml_content

https://andreasschulze.de/tmp/parse_emails_with_xml_data.py.txt

this program read my corpus of ~12k reports I received and send over tha last years
without errors.
Hopefully you could integrate that code in dmarc-viewer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants