Module: MailReport::Dmarc

Defined in:
lib/mailreport/dmarc.rb,
lib/mailreport/dmarc/report.rb,
lib/mailreport/dmarc/document.rb

Overview

RFC 7489 ยง7.2 aggregate reports.

Defined Under Namespace

Classes: AuthResults, DkimAuthResult, Document, Identifiers, Policy, Reason, Record, Report, SpfAuthResult

Constant Summary collapse

REPORT_NAME =
/\.xml\z/i

Class Method Summary collapse

Class Method Details

.parse(bytes) ⇒ Object



10
11
12
13
14
# File 'lib/mailreport/dmarc.rb', line 10

def self.parse(bytes)
  if xml = Archive.open(bytes, name: REPORT_NAME)
    Document.new(xml).report
  end
end