09 Dec 2021 04:01:40 UTC
- Distribution: Mail-DMARC
- Module version: 1.20211209
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (3)
- Testers (73 / 5 / 1)
- KwaliteeBus factor: 1
- 67.69% Coverage
- License: perl_5
- Perl: v5.10.0
- Download (776.35KB)
- MetaCPAN Explorer
- Subscribe to distribution
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- This version
- Latest version++ed by:1 non-PAUSE user
- COPYRIGHT AND LICENSE
Mail::DMARC::Report::Receive - process incoming DMARC reports
Receive DMARC reports and save them to the report store/database.
These methods are called by dmarc_receive program, which has its own documentation and usage instructions. The methods accept a message (or list of messages) and create an Email::Simple object from each, passing that object to from_email_simple.
Accepts an Email::Simple message object. Returns the type of DMARC report detected or undef if no DMARC report was detected.
When forensic reports are detected, no further processing is done.
When an aggregate report is detected, the report details are extracted from the message body as well as the Subject field/header and attachment metadata.
Parsing of the Subject and MIME metadata is necessary because the 2013 draft DMARC specification does not REQUIRE the envelope_to domain name to be included in the XML report. For example, the only way to know that the email which generated this particular report was sent to hotmail.com is to extract the envelope_to domain from the message metadata (Org Name=Microsoft, hotmail.com is not in the XML). So far, every messsage I have seen has had the envelope_to domain in one location or the other.
To extract messages from the message body, the MIME attachments are decompressed and passed to handle_body.
Accepts a XML message, parsing it with XML::LibXML and XPath expressions. The parsed data is stored in a Mail::DMARC::Report object. When the parsing is complete, the report object is saved to the report store.
Matt Simerson <email@example.com>
Davide Migliavacca <firstname.lastname@example.org>
Marc Bradshaw <email@example.com>
This software is copyright (c) 2021 by Matt Simerson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|