<spanclass="n">logging</span><spanclass="o">.</span><spanclass="n">warning</span><spanclass="p">(</span><spanclass="s2">"Cannot download GeoIP database in parallel mode"</span><spanclass="p">)</span>
<spanclass="n">logging</span><spanclass="o">.</span><spanclass="n">warning</span><spanclass="p">(</span><spanclass="s2">"GeoLite2-Country.mmdb is missing."</span>
<spanclass="s2">"please install and run geoipupdate as root to "</span>
<spanclass="s2">"get the latest version."</span><spanclass="p">)</span>
@@ -1280,7 +1281,7 @@ supply the headers of sample emails. Very few provide the entire email.</p>
against the same domain that the end user sees.</p>
<p>A message passes a DMARC check by passing DKIM or SPF, <strong>as long as the related
indicators are also in alignment</strong>.</p>
<tableclass="docutils align-center">
<tableclass="docutils align-default">
<colgroup>
<colstyle="width: 33%"/>
<colstyle="width: 33%"/>
@@ -1393,7 +1394,7 @@ to the mailing list post address, and not their email address.</p>
<divclass="section"id="mailman-2">
<h4>Mailman 2<aclass="headerlink"href="#mailman-2"title="Permalink to this headline">¶</a></h4>
<p>Navigate to General Settings, and configure the settings below</p>
<tableclass="docutils align-center">
<tableclass="docutils align-default">
<colgroup>
<colstyle="width: 74%"/>
<colstyle="width: 26%"/>
@@ -1426,7 +1427,7 @@ to the mailing list post address, and not their email address.</p>
</tbody>
</table>
<p>Navigate to Non-digest options, and configure the settings below</p>
<tableclass="docutils align-center">
<tableclass="docutils align-default">
<colgroup>
<colstyle="width: 66%"/>
<colstyle="width: 34%"/>
@@ -1447,7 +1448,7 @@ to the mailing list post address, and not their email address.</p>
</tbody>
</table>
<p>Navigate to Privacy Options> Sending Filters, and configure the settings below</p>
<tableclass="docutils align-center">
<tableclass="docutils align-default">
<colgroup>
<colstyle="width: 79%"/>
<colstyle="width: 21%"/>
@@ -1474,7 +1475,7 @@ to the mailing list post address, and not their email address.</p>
<p>Make Subject prefix blank.</p>
<p>Navigate to Settings> Alter Messages</p>
<p>Configure the settings below</p>
<tableclass="docutils align-center">
<tableclass="docutils align-default">
<colgroup>
<colstyle="width: 79%"/>
<colstyle="width: 21%"/>
@@ -1505,7 +1506,7 @@ to the mailing list post address, and not their email address.</p>
</table>
<p>Navigate to Settings> DMARC Mitigation</p>
<p>Configure the settings below</p>
<tableclass="docutils align-center">
<tableclass="docutils align-default">
<colgroup>
<colstyle="width: 52%"/>
<colstyle="width: 48%"/>
@@ -1544,7 +1545,7 @@ no longer spoof email addresses with domains protected by DMARC.</p>
<divclass="section"id="id3">
<h4>Mailman 2<aclass="headerlink"href="#id3"title="Permalink to this headline">¶</a></h4>
<p>Navigate to Privacy Options> Sending Filters, and configure the settings below</p>
<tableclass="docutils align-center">
<tableclass="docutils align-default">
<colgroup>
<colstyle="width: 79%"/>
<colstyle="width: 21%"/>
@@ -1579,7 +1580,7 @@ the original sender.</p>
<divclass="section"id="id4">
<h4>Mailman 3<aclass="headerlink"href="#id4"title="Permalink to this headline">¶</a></h4>
<p>In the DMARC Mitigations tab of the Settings page, configure the settings below</p>
<tableclass="docutils align-center">
<tableclass="docutils align-default">
<colgroup>
<colstyle="width: 49%"/>
<colstyle="width: 51%"/>
@@ -1620,43 +1621,43 @@ that enforce with a DMARC quarantine or reject policy.</p>
<p>A Python package for parsing DMARC reports</p>
<dlclass="exception">
<dtid="parsedmarc.IMAPError">
<emclass="property">exception </em><codeclass="descclassname">parsedmarc.</code><codeclass="descname">IMAPError</code><aclass="reference internal"href="_modules/parsedmarc.html#IMAPError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.IMAPError"title="Permalink to this definition">¶</a></dt>
<emclass="property">exception </em><codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">IMAPError</code><aclass="reference internal"href="_modules/parsedmarc.html#IMAPError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.IMAPError"title="Permalink to this definition">¶</a></dt>
<dd><p>Raised when an IMAP error occurs</p>
</dd></dl>
<dlclass="exception">
<dtid="parsedmarc.InvalidAggregateReport">
<emclass="property">exception </em><codeclass="descclassname">parsedmarc.</code><codeclass="descname">InvalidAggregateReport</code><aclass="reference internal"href="_modules/parsedmarc.html#InvalidAggregateReport"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.InvalidAggregateReport"title="Permalink to this definition">¶</a></dt>
<emclass="property">exception </em><codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">InvalidAggregateReport</code><aclass="reference internal"href="_modules/parsedmarc.html#InvalidAggregateReport"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.InvalidAggregateReport"title="Permalink to this definition">¶</a></dt>
<dd><p>Raised when an invalid DMARC aggregate report is encountered</p>
</dd></dl>
<dlclass="exception">
<dtid="parsedmarc.InvalidDMARCReport">
<emclass="property">exception </em><codeclass="descclassname">parsedmarc.</code><codeclass="descname">InvalidDMARCReport</code><aclass="reference internal"href="_modules/parsedmarc.html#InvalidDMARCReport"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.InvalidDMARCReport"title="Permalink to this definition">¶</a></dt>
<emclass="property">exception </em><codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">InvalidDMARCReport</code><aclass="reference internal"href="_modules/parsedmarc.html#InvalidDMARCReport"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.InvalidDMARCReport"title="Permalink to this definition">¶</a></dt>
<dd><p>Raised when an invalid DMARC report is encountered</p>
</dd></dl>
<dlclass="exception">
<dtid="parsedmarc.InvalidForensicReport">
<emclass="property">exception </em><codeclass="descclassname">parsedmarc.</code><codeclass="descname">InvalidForensicReport</code><aclass="reference internal"href="_modules/parsedmarc.html#InvalidForensicReport"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.InvalidForensicReport"title="Permalink to this definition">¶</a></dt>
<emclass="property">exception </em><codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">InvalidForensicReport</code><aclass="reference internal"href="_modules/parsedmarc.html#InvalidForensicReport"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.InvalidForensicReport"title="Permalink to this definition">¶</a></dt>
<dd><p>Raised when an invalid DMARC forensic report is encountered</p>
</dd></dl>
<dlclass="exception">
<dtid="parsedmarc.ParserError">
<emclass="property">exception </em><codeclass="descclassname">parsedmarc.</code><codeclass="descname">ParserError</code><aclass="reference internal"href="_modules/parsedmarc.html#ParserError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.ParserError"title="Permalink to this definition">¶</a></dt>
<emclass="property">exception </em><codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">ParserError</code><aclass="reference internal"href="_modules/parsedmarc.html#ParserError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.ParserError"title="Permalink to this definition">¶</a></dt>
<dd><p>Raised whenever the parser fails for some reason</p>
</dd></dl>
<dlclass="exception">
<dtid="parsedmarc.SMTPError">
<emclass="property">exception </em><codeclass="descclassname">parsedmarc.</code><codeclass="descname">SMTPError</code><aclass="reference internal"href="_modules/parsedmarc.html#SMTPError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.SMTPError"title="Permalink to this definition">¶</a></dt>
<emclass="property">exception </em><codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">SMTPError</code><aclass="reference internal"href="_modules/parsedmarc.html#SMTPError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.SMTPError"title="Permalink to this definition">¶</a></dt>
<dd><p>Raised when a SMTP error occurs</p>
</dd></dl>
<dlclass="function">
<dtid="parsedmarc.email_results">
<codeclass="descclassname">parsedmarc.</code><codeclass="descname">email_results</code><spanclass="sig-paren">(</span><em>results</em>, <em>host</em>, <em>mail_from</em>, <em>mail_to</em>, <em>port=0</em>, <em>ssl=False</em>, <em>user=None</em>, <em>password=None</em>, <em>subject=None</em>, <em>attachment_filename=None</em>, <em>message=None</em>, <em>ssl_context=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#email_results"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.email_results"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">email_results</code><spanclass="sig-paren">(</span><emclass="sig-param">results</em>, <emclass="sig-param">host</em>, <emclass="sig-param">mail_from</em>, <emclass="sig-param">mail_to</em>, <emclass="sig-param">port=0</em>, <emclass="sig-param">ssl=False</em>, <emclass="sig-param">user=None</em>, <emclass="sig-param">password=None</em>, <emclass="sig-param">subject=None</em>, <emclass="sig-param">attachment_filename=None</em>, <emclass="sig-param">message=None</em>, <emclass="sig-param">ssl_context=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#email_results"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.email_results"title="Permalink to this definition">¶</a></dt>
<dd><p>Emails parsing results as a zip file</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -1680,12 +1681,12 @@ that enforce with a DMARC quarantine or reject policy.</p>
<dlclass="function">
<dtid="parsedmarc.extract_xml">
<codeclass="descclassname">parsedmarc.</code><codeclass="descname">extract_xml</code><spanclass="sig-paren">(</span><em>input_</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#extract_xml"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.extract_xml"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">extract_xml</code><spanclass="sig-paren">(</span><emclass="sig-param">input_</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#extract_xml"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.extract_xml"title="Permalink to this definition">¶</a></dt>
<dd><p>Extracts xml from a zip or gzip file at the given path, file-like object,
or bytes.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>input</strong>– A path to a file, a file like object, or bytes</p>
<ddclass="field-odd"><p><strong>input_</strong>– A path to a file, a file like object, or bytes</p>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>The extracted XML</p>
@@ -1698,7 +1699,7 @@ or bytes.</p>
<dlclass="function">
<dtid="parsedmarc.get_dmarc_reports_from_inbox">
<codeclass="descclassname">parsedmarc.</code><codeclass="descname">get_dmarc_reports_from_inbox</code><spanclass="sig-paren">(</span><em>host=None</em>, <em>user=None</em>, <em>password=None</em>, <em>connection=None</em>, <em>port=None</em>, <em>ssl=True</em>, <em>ssl_context=None</em>, <em>move_supported=None</em>, <em>reports_folder='INBOX'</em>, <em>archive_folder='Archive'</em>, <em>delete=False</em>, <em>test=False</em>, <em>nameservers=None</em>, <em>dns_timeout=6.0</em>, <em>strip_attachment_payloads=False</em>, <em>results=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#get_dmarc_reports_from_inbox"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.get_dmarc_reports_from_inbox"title="Permalink to this definition">¶</a></dt>
<dd><p>Fetches and parses DMARC reports from sn inbox</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -1734,7 +1735,7 @@ or bytes.</p>
<dlclass="function">
<dtid="parsedmarc.get_imap_capabilities">
<codeclass="descclassname">parsedmarc.</code><codeclass="descname">get_imap_capabilities</code><spanclass="sig-paren">(</span><em>server</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#get_imap_capabilities"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.get_imap_capabilities"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">get_imap_capabilities</code><spanclass="sig-paren">(</span><emclass="sig-param">server</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#get_imap_capabilities"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.get_imap_capabilities"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a list of an IMAP server’s capabilities</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -1746,7 +1747,7 @@ or bytes.</p>
<dlclass="function">
<dtid="parsedmarc.get_report_zip">
<codeclass="descclassname">parsedmarc.</code><codeclass="descname">get_report_zip</code><spanclass="sig-paren">(</span><em>results</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#get_report_zip"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.get_report_zip"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">get_report_zip</code><spanclass="sig-paren">(</span><emclass="sig-param">results</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#get_report_zip"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.get_report_zip"title="Permalink to this definition">¶</a></dt>
<dd><p>Creates a zip file of parsed report output</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -1763,7 +1764,7 @@ or bytes.</p>
<dlclass="function">
<dtid="parsedmarc.parse_aggregate_report_file">
<codeclass="descclassname">parsedmarc.</code><codeclass="descname">parse_aggregate_report_file</code><spanclass="sig-paren">(</span><em>_input</em>, <em>nameservers=None</em>, <em>dns_timeout=2.0</em>, <em>parallel=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#parse_aggregate_report_file"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.parse_aggregate_report_file"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">parse_aggregate_report_file</code><spanclass="sig-paren">(</span><emclass="sig-param">_input</em>, <emclass="sig-param">nameservers=None</em>, <emclass="sig-param">dns_timeout=2.0</em>, <emclass="sig-param">parallel=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#parse_aggregate_report_file"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.parse_aggregate_report_file"title="Permalink to this definition">¶</a></dt>
<dd><p>Parses a file at the given path, a file-like object. or bytes as a
aggregate DMARC report</p>
<dlclass="field-list simple">
@@ -1787,7 +1788,7 @@ aggregate DMARC report</p>
<dlclass="function">
<dtid="parsedmarc.parse_aggregate_report_xml">
<codeclass="descclassname">parsedmarc.</code><codeclass="descname">parse_aggregate_report_xml</code><spanclass="sig-paren">(</span><em>xml</em>, <em>nameservers=None</em>, <em>timeout=2.0</em>, <em>parallel=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#parse_aggregate_report_xml"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.parse_aggregate_report_xml"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">parse_aggregate_report_xml</code><spanclass="sig-paren">(</span><emclass="sig-param">xml</em>, <emclass="sig-param">nameservers=None</em>, <emclass="sig-param">timeout=2.0</em>, <emclass="sig-param">parallel=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#parse_aggregate_report_xml"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.parse_aggregate_report_xml"title="Permalink to this definition">¶</a></dt>
<dd><p>Parses a DMARC XML report string and returns a consistent OrderedDict</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -1810,7 +1811,7 @@ aggregate DMARC report</p>
<dlclass="function">
<dtid="parsedmarc.parse_forensic_report">
<codeclass="descclassname">parsedmarc.</code><codeclass="descname">parse_forensic_report</code><spanclass="sig-paren">(</span><em>feedback_report</em>, <em>sample</em>, <em>msg_date</em>, <em>nameservers=None</em>, <em>dns_timeout=2.0</em>, <em>strip_attachment_payloads=False</em>, <em>parallel=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#parse_forensic_report"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.parse_forensic_report"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">parse_forensic_report</code><spanclass="sig-paren">(</span><emclass="sig-param">feedback_report</em>, <emclass="sig-param">sample</em>, <emclass="sig-param">msg_date</em>, <emclass="sig-param">nameservers=None</em>, <emclass="sig-param">dns_timeout=2.0</em>, <emclass="sig-param">strip_attachment_payloads=False</em>, <emclass="sig-param">parallel=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#parse_forensic_report"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.parse_forensic_report"title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a DMARC forensic report and sample to a <codeclass="docutils literal notranslate"><spanclass="pre">OrderedDict</span></code></p>
<codeclass="descclassname">parsedmarc.</code><codeclass="descname">parse_report_email</code><spanclass="sig-paren">(</span><em>input_</em>, <em>nameservers=None</em>, <em>dns_timeout=2.0</em>, <em>strip_attachment_payloads=False</em>, <em>parallel=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#parse_report_email"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.parse_report_email"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">parse_report_email</code><spanclass="sig-paren">(</span><emclass="sig-param">input_</em>, <emclass="sig-param">nameservers=None</em>, <emclass="sig-param">dns_timeout=2.0</em>, <emclass="sig-param">strip_attachment_payloads=False</em>, <emclass="sig-param">parallel=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#parse_report_email"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.parse_report_email"title="Permalink to this definition">¶</a></dt>
<dd><p>Parses a DMARC report from an email</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>input</strong>– An emailed DMARC report in RFC 822 format, as bytes or a string</p></li>
<li><p><strong>input_</strong>– An emailed DMARC report in RFC 822 format, as bytes or a string</p></li>
<li><p><strong>nameservers</strong> (<em>list</em>) – A list of one or more nameservers to use</p></li>
<li><p><strong>dns_timeout</strong> (<em>float</em>) – Sets the DNS timeout in seconds</p></li>
<codeclass="descclassname">parsedmarc.</code><codeclass="descname">parse_report_file</code><spanclass="sig-paren">(</span><em>input_</em>, <em>nameservers=None</em>, <em>dns_timeout=2.0</em>, <em>strip_attachment_payloads=False</em>, <em>parallel=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#parse_report_file"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.parse_report_file"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">parse_report_file</code><spanclass="sig-paren">(</span><emclass="sig-param">input_</em>, <emclass="sig-param">nameservers=None</em>, <emclass="sig-param">dns_timeout=2.0</em>, <emclass="sig-param">strip_attachment_payloads=False</em>, <emclass="sig-param">parallel=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#parse_report_file"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.parse_report_file"title="Permalink to this definition">¶</a></dt>
<dd><p>Parses a DMARC aggregate or forensic file at the given path, a
file-like object. or bytes</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>input</strong>– A path to a file, a file like object, or bytes</p></li>
<li><p><strong>input_</strong>– A path to a file, a file like object, or bytes</p></li>
<li><p><strong>nameservers</strong> (<em>list</em>) – A list of one or more nameservers to use</p></li>
<li><p><strong>public DNS resolvers by default</strong><strong>)</strong> (<em>(</em><em>Cloudflare's</em>) –</p></li>
<li><p><strong>dns_timeout</strong> (<em>float</em>) – Sets the DNS timeout in seconds</p></li>
@@ -1891,7 +1892,7 @@ file-like object. or bytes</p>
<codeclass="descclassname">parsedmarc.</code><codeclass="descname">parsed_aggregate_reports_to_csv</code><spanclass="sig-paren">(</span><em>reports</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#parsed_aggregate_reports_to_csv"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.parsed_aggregate_reports_to_csv"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">parsed_aggregate_reports_to_csv</code><spanclass="sig-paren">(</span><emclass="sig-param">reports</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#parsed_aggregate_reports_to_csv"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.parsed_aggregate_reports_to_csv"title="Permalink to this definition">¶</a></dt>
<dd><p>Converts one or more parsed aggregate reports to flat CSV format, including
<codeclass="descclassname">parsedmarc.</code><codeclass="descname">parsed_forensic_reports_to_csv</code><spanclass="sig-paren">(</span><em>reports</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#parsed_forensic_reports_to_csv"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.parsed_forensic_reports_to_csv"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">parsed_forensic_reports_to_csv</code><spanclass="sig-paren">(</span><emclass="sig-param">reports</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#parsed_forensic_reports_to_csv"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.parsed_forensic_reports_to_csv"title="Permalink to this definition">¶</a></dt>
<dd><p>Converts one or more parsed forensic reports to flat CSV format, including
headers</p>
<dlclass="field-list simple">
@@ -1927,7 +1928,7 @@ headers</p>
<dlclass="function">
<dtid="parsedmarc.save_output">
<codeclass="descclassname">parsedmarc.</code><codeclass="descname">save_output</code><spanclass="sig-paren">(</span><em>results</em>, <em>output_directory='output'</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#save_output"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.save_output"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.</code><codeclass="sig-name descname">save_output</code><spanclass="sig-paren">(</span><emclass="sig-param">results</em>, <emclass="sig-param">output_directory='output'</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#save_output"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.save_output"title="Permalink to this definition">¶</a></dt>
<dd><p>Save report data in the given directory</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -1941,7 +1942,7 @@ headers</p>
<dlclass="function">
<dtid="parsedmarc.watch_inbox">
<codeclass="descclassname">parsedmarc.</code><codeclass="descname">watch_inbox</code><spanclass="sig-paren">(</span><em>host</em>, <em>username</em>, <em>password</em>, <em>callback</em>, <em>port=None</em>, <em>ssl=True</em>, <em>ssl_context=None</em>, <em>reports_folder='INBOX'</em>, <em>archive_folder='Archive'</em>, <em>delete=False</em>, <em>test=False</em>, <em>wait=30</em>, <em>nameservers=None</em>, <em>dns_timeout=6.0</em>, <em>strip_attachment_payloads=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc.html#watch_inbox"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.watch_inbox"title="Permalink to this definition">¶</a></dt>
<dd><p>Use an IDLE IMAP connection to parse incoming emails, and pass the results
to a callback function</p>
<dlclass="field-list simple">
@@ -1973,19 +1974,19 @@ to a callback function</p>
<spanid="parsedmarc-elastic"></span><h3>parsedmarc.elastic<aclass="headerlink"href="#module-parsedmarc.elastic"title="Permalink to this headline">¶</a></h3>
<dlclass="exception">
<dtid="parsedmarc.elastic.AlreadySaved">
<emclass="property">exception </em><codeclass="descclassname">parsedmarc.elastic.</code><codeclass="descname">AlreadySaved</code><aclass="reference internal"href="_modules/parsedmarc/elastic.html#AlreadySaved"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.elastic.AlreadySaved"title="Permalink to this definition">¶</a></dt>
<emclass="property">exception </em><codeclass="sig-prename descclassname">parsedmarc.elastic.</code><codeclass="sig-name descname">AlreadySaved</code><aclass="reference internal"href="_modules/parsedmarc/elastic.html#AlreadySaved"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.elastic.AlreadySaved"title="Permalink to this definition">¶</a></dt>
<dd><p>Raised when a report to be saved matches an existing report</p>
</dd></dl>
<dlclass="exception">
<dtid="parsedmarc.elastic.ElasticsearchError">
<emclass="property">exception </em><codeclass="descclassname">parsedmarc.elastic.</code><codeclass="descname">ElasticsearchError</code><aclass="reference internal"href="_modules/parsedmarc/elastic.html#ElasticsearchError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.elastic.ElasticsearchError"title="Permalink to this definition">¶</a></dt>
<emclass="property">exception </em><codeclass="sig-prename descclassname">parsedmarc.elastic.</code><codeclass="sig-name descname">ElasticsearchError</code><aclass="reference internal"href="_modules/parsedmarc/elastic.html#ElasticsearchError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.elastic.ElasticsearchError"title="Permalink to this definition">¶</a></dt>
<dd><p>Raised when an Elasticsearch error occurs</p>
</dd></dl>
<dlclass="function">
<dtid="parsedmarc.elastic.create_indexes">
<codeclass="descclassname">parsedmarc.elastic.</code><codeclass="descname">create_indexes</code><spanclass="sig-paren">(</span><em>names</em>, <em>settings=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/elastic.html#create_indexes"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.elastic.create_indexes"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.elastic.</code><codeclass="sig-name descname">create_indexes</code><spanclass="sig-paren">(</span><emclass="sig-param">names</em>, <emclass="sig-param">settings=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/elastic.html#create_indexes"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.elastic.create_indexes"title="Permalink to this definition">¶</a></dt>
<dd><p>Create Elasticsearch indexes</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -1999,7 +2000,7 @@ to a callback function</p>
<dlclass="function">
<dtid="parsedmarc.elastic.migrate_indexes">
<codeclass="descclassname">parsedmarc.elastic.</code><codeclass="descname">migrate_indexes</code><spanclass="sig-paren">(</span><em>aggregate_indexes=None</em>, <em>forensic_indexes=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/elastic.html#migrate_indexes"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.elastic.migrate_indexes"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.elastic.</code><codeclass="sig-name descname">migrate_indexes</code><spanclass="sig-paren">(</span><emclass="sig-param">aggregate_indexes=None</em>, <emclass="sig-param">forensic_indexes=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/elastic.html#migrate_indexes"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.elastic.migrate_indexes"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">parsedmarc.elastic.</code><codeclass="descname">save_aggregate_report_to_elasticsearch</code><spanclass="sig-paren">(</span><em>aggregate_report</em>, <em>index_suffix=None</em>, <em>monthly_indexes=False</em>, <em>number_of_shards=1</em>, <em>number_of_replicas=1</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/elastic.html#save_aggregate_report_to_elasticsearch"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.elastic.save_aggregate_report_to_elasticsearch"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.elastic.</code><codeclass="sig-name descname">save_aggregate_report_to_elasticsearch</code><spanclass="sig-paren">(</span><emclass="sig-param">aggregate_report</em>, <emclass="sig-param">index_suffix=None</em>, <emclass="sig-param">monthly_indexes=False</em>, <emclass="sig-param">number_of_shards=1</em>, <emclass="sig-param">number_of_replicas=1</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/elastic.html#save_aggregate_report_to_elasticsearch"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.elastic.save_aggregate_report_to_elasticsearch"title="Permalink to this definition">¶</a></dt>
<dd><p>Saves a parsed DMARC aggregate report to ElasticSearch</p>
<codeclass="descclassname">parsedmarc.elastic.</code><codeclass="descname">save_forensic_report_to_elasticsearch</code><spanclass="sig-paren">(</span><em>forensic_report</em>, <em>index_suffix=None</em>, <em>monthly_indexes=False</em>, <em>number_of_shards=1</em>, <em>number_of_replicas=1</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/elastic.html#save_forensic_report_to_elasticsearch"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.elastic.save_forensic_report_to_elasticsearch"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.elastic.</code><codeclass="sig-name descname">save_forensic_report_to_elasticsearch</code><spanclass="sig-paren">(</span><emclass="sig-param">forensic_report</em>, <emclass="sig-param">index_suffix=None</em>, <emclass="sig-param">monthly_indexes=False</em>, <emclass="sig-param">number_of_shards=1</em>, <emclass="sig-param">number_of_replicas=1</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/elastic.html#save_forensic_report_to_elasticsearch"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.elastic.save_forensic_report_to_elasticsearch"title="Permalink to this definition">¶</a></dt>
<dd><p>Saves a parsed DMARC forensic report to ElasticSearch</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -2055,7 +2056,7 @@ index</p></li>
<dlclass="function">
<dtid="parsedmarc.elastic.set_hosts">
<codeclass="descclassname">parsedmarc.elastic.</code><codeclass="descname">set_hosts</code><spanclass="sig-paren">(</span><em>hosts</em>, <em>use_ssl=False</em>, <em>ssl_cert_path=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/elastic.html#set_hosts"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.elastic.set_hosts"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.elastic.</code><codeclass="sig-name descname">set_hosts</code><spanclass="sig-paren">(</span><emclass="sig-param">hosts</em>, <emclass="sig-param">use_ssl=False</em>, <emclass="sig-param">ssl_cert_path=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/elastic.html#set_hosts"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.elastic.set_hosts"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">save_aggregate_reports_to_splunk</code><spanclass="sig-paren">(</span><em>aggregate_reports</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/splunk.html#HECClient.save_aggregate_reports_to_splunk"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.splunk.HECClient.save_aggregate_reports_to_splunk"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">save_aggregate_reports_to_splunk</code><spanclass="sig-paren">(</span><emclass="sig-param">aggregate_reports</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/splunk.html#HECClient.save_aggregate_reports_to_splunk"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.splunk.HECClient.save_aggregate_reports_to_splunk"title="Permalink to this definition">¶</a></dt>
<dd><p>Saves aggregate DMARC reports to Splunk</p>
<codeclass="descname">save_forensic_reports_to_splunk</code><spanclass="sig-paren">(</span><em>forensic_reports</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/splunk.html#HECClient.save_forensic_reports_to_splunk"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.splunk.HECClient.save_forensic_reports_to_splunk"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">save_forensic_reports_to_splunk</code><spanclass="sig-paren">(</span><emclass="sig-param">forensic_reports</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/splunk.html#HECClient.save_forensic_reports_to_splunk"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.splunk.HECClient.save_forensic_reports_to_splunk"title="Permalink to this definition">¶</a></dt>
<dd><p>Saves forensic DMARC reports to Splunk</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -2111,7 +2112,7 @@ index</p></li>
<dlclass="exception">
<dtid="parsedmarc.splunk.SplunkError">
<emclass="property">exception </em><codeclass="descclassname">parsedmarc.splunk.</code><codeclass="descname">SplunkError</code><aclass="reference internal"href="_modules/parsedmarc/splunk.html#SplunkError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.splunk.SplunkError"title="Permalink to this definition">¶</a></dt>
<emclass="property">exception </em><codeclass="sig-prename descclassname">parsedmarc.splunk.</code><codeclass="sig-name descname">SplunkError</code><aclass="reference internal"href="_modules/parsedmarc/splunk.html#SplunkError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.splunk.SplunkError"title="Permalink to this definition">¶</a></dt>
<dd><p>Raised when a Splunk API error occurs</p>
</dd></dl>
@@ -2123,19 +2124,19 @@ index</p></li>
<p>Utility functions that might be useful for other projects</p>
<dlclass="exception">
<dtid="parsedmarc.utils.DownloadError">
<emclass="property">exception </em><codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">DownloadError</code><aclass="reference internal"href="_modules/parsedmarc/utils.html#DownloadError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.DownloadError"title="Permalink to this definition">¶</a></dt>
<emclass="property">exception </em><codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">DownloadError</code><aclass="reference internal"href="_modules/parsedmarc/utils.html#DownloadError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.DownloadError"title="Permalink to this definition">¶</a></dt>
<dd><p>Rasied when an error occurs when downloading a file</p>
</dd></dl>
<dlclass="exception">
<dtid="parsedmarc.utils.EmailParserError">
<emclass="property">exception </em><codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">EmailParserError</code><aclass="reference internal"href="_modules/parsedmarc/utils.html#EmailParserError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.EmailParserError"title="Permalink to this definition">¶</a></dt>
<emclass="property">exception </em><codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">EmailParserError</code><aclass="reference internal"href="_modules/parsedmarc/utils.html#EmailParserError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.EmailParserError"title="Permalink to this definition">¶</a></dt>
<dd><p>Raised when an error parsing the email occurs</p>
</dd></dl>
<dlclass="function">
<dtid="parsedmarc.utils.convert_outlook_msg">
<codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">convert_outlook_msg</code><spanclass="sig-paren">(</span><em>msg_bytes</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#convert_outlook_msg"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.convert_outlook_msg"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">convert_outlook_msg</code><spanclass="sig-paren">(</span><emclass="sig-param">msg_bytes</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#convert_outlook_msg"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.convert_outlook_msg"title="Permalink to this definition">¶</a></dt>
<dd><p>Uses the <codeclass="docutils literal notranslate"><spanclass="pre">msgconvert</span></code> Perl utility to convert an Outlook MS file to
standard RFC 822 format</p>
<dlclass="field-list simple">
@@ -2150,7 +2151,7 @@ standard RFC 822 format</p>
<dlclass="function">
<dtid="parsedmarc.utils.decode_base64">
<codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">decode_base64</code><spanclass="sig-paren">(</span><em>data</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#decode_base64"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.decode_base64"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">decode_base64</code><spanclass="sig-paren">(</span><emclass="sig-param">data</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#decode_base64"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.decode_base64"title="Permalink to this definition">¶</a></dt>
<dd><p>Decodes a base64 string, with padding being optional</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -2167,7 +2168,7 @@ standard RFC 822 format</p>
<dlclass="function">
<dtid="parsedmarc.utils.get_base_domain">
<codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">get_base_domain</code><spanclass="sig-paren">(</span><em>domain</em>, <em>use_fresh_psl=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#get_base_domain"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.get_base_domain"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">get_base_domain</code><spanclass="sig-paren">(</span><emclass="sig-param">domain</em>, <emclass="sig-param">use_fresh_psl=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#get_base_domain"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.get_base_domain"title="Permalink to this definition">¶</a></dt>
<dd><p>Gets the base domain name for the given domain</p>
<codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">get_filename_safe_string</code><spanclass="sig-paren">(</span><em>string</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#get_filename_safe_string"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.get_filename_safe_string"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">get_filename_safe_string</code><spanclass="sig-paren">(</span><emclass="sig-param">string</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#get_filename_safe_string"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.get_filename_safe_string"title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a string to a string that is safe for a filename
:param string: A string to make safe for a filename
:type string: str</p>
@@ -2208,7 +2209,7 @@ standard RFC 822 format</p>
<dlclass="function">
<dtid="parsedmarc.utils.get_ip_address_country">
<codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">get_ip_address_country</code><spanclass="sig-paren">(</span><em>ip_address</em>, <em>parallel=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#get_ip_address_country"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.get_ip_address_country"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">get_ip_address_country</code><spanclass="sig-paren">(</span><emclass="sig-param">ip_address</em>, <emclass="sig-param">parallel=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#get_ip_address_country"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.get_ip_address_country"title="Permalink to this definition">¶</a></dt>
<dd><p>Uses the MaxMind Geolite2 Country database to return the ISO code for the
country associated with the given IPv4 or IPv6 address</p>
<dlclass="field-list simple">
@@ -2229,7 +2230,7 @@ country associated with the given IPv4 or IPv6 address</p>
<dlclass="function">
<dtid="parsedmarc.utils.get_ip_address_info">
<codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">get_ip_address_info</code><spanclass="sig-paren">(</span><em>ip_address</em>, <em>cache=None</em>, <em>nameservers=None</em>, <em>timeout=2.0</em>, <em>parallel=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#get_ip_address_info"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.get_ip_address_info"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">get_ip_address_info</code><spanclass="sig-paren">(</span><emclass="sig-param">ip_address</em>, <emclass="sig-param">cache=None</em>, <emclass="sig-param">nameservers=None</em>, <emclass="sig-param">timeout=2.0</em>, <emclass="sig-param">parallel=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#get_ip_address_info"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.get_ip_address_info"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns reverse DNS and country information for the given IP address</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -2253,7 +2254,7 @@ country associated with the given IPv4 or IPv6 address</p>
<dlclass="function">
<dtid="parsedmarc.utils.get_reverse_dns">
<codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">get_reverse_dns</code><spanclass="sig-paren">(</span><em>ip_address</em>, <em>cache=None</em>, <em>nameservers=None</em>, <em>timeout=2.0</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#get_reverse_dns"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.get_reverse_dns"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">get_reverse_dns</code><spanclass="sig-paren">(</span><emclass="sig-param">ip_address</em>, <emclass="sig-param">cache=None</em>, <emclass="sig-param">nameservers=None</em>, <emclass="sig-param">timeout=2.0</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#get_reverse_dns"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.get_reverse_dns"title="Permalink to this definition">¶</a></dt>
<dd><p>Resolves an IP address to a hostname using a reverse DNS query</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -2276,7 +2277,7 @@ country associated with the given IPv4 or IPv6 address</p>
<codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">human_timestamp_to_datetime</code><spanclass="sig-paren">(</span><em>human_timestamp</em>, <em>to_utc=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#human_timestamp_to_datetime"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.human_timestamp_to_datetime"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">human_timestamp_to_datetime</code><spanclass="sig-paren">(</span><emclass="sig-param">human_timestamp</em>, <emclass="sig-param">to_utc=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#human_timestamp_to_datetime"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.human_timestamp_to_datetime"title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a human-readable timestamp into a Python <codeclass="docutils literal notranslate"><spanclass="pre">DateTime</span></code> object</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -2296,7 +2297,7 @@ country associated with the given IPv4 or IPv6 address</p>
<codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">human_timestamp_to_timestamp</code><spanclass="sig-paren">(</span><em>human_timestamp</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#human_timestamp_to_timestamp"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.human_timestamp_to_timestamp"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">human_timestamp_to_timestamp</code><spanclass="sig-paren">(</span><emclass="sig-param">human_timestamp</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#human_timestamp_to_timestamp"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.human_timestamp_to_timestamp"title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a human-readable timestamp into a into a UNIX timestamp</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -2313,7 +2314,7 @@ country associated with the given IPv4 or IPv6 address</p>
<dlclass="function">
<dtid="parsedmarc.utils.is_outlook_msg">
<codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">is_outlook_msg</code><spanclass="sig-paren">(</span><em>content</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#is_outlook_msg"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.is_outlook_msg"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">is_outlook_msg</code><spanclass="sig-paren">(</span><emclass="sig-param">content</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#is_outlook_msg"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.is_outlook_msg"title="Permalink to this definition">¶</a></dt>
<dd><p>Checks if the given content is a Outlook msg OLE file</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -2330,7 +2331,7 @@ country associated with the given IPv4 or IPv6 address</p>
<dlclass="function">
<dtid="parsedmarc.utils.parse_email">
<codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">parse_email</code><spanclass="sig-paren">(</span><em>data</em>, <em>strip_attachment_payloads=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#parse_email"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.parse_email"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">parse_email</code><spanclass="sig-paren">(</span><emclass="sig-param">data</em>, <emclass="sig-param">strip_attachment_payloads=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#parse_email"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.parse_email"title="Permalink to this definition">¶</a></dt>
<dd><p>A simplified email parser</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -2345,7 +2346,7 @@ country associated with the given IPv4 or IPv6 address</p>
<dlclass="function">
<dtid="parsedmarc.utils.query_dns">
<codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">query_dns</code><spanclass="sig-paren">(</span><em>domain</em>, <em>record_type</em>, <em>cache=None</em>, <em>nameservers=None</em>, <em>timeout=2.0</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#query_dns"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.query_dns"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">query_dns</code><spanclass="sig-paren">(</span><emclass="sig-param">domain</em>, <emclass="sig-param">record_type</em>, <emclass="sig-param">cache=None</em>, <emclass="sig-param">nameservers=None</em>, <emclass="sig-param">timeout=2.0</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#query_dns"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.query_dns"title="Permalink to this definition">¶</a></dt>
<dd><p>Queries DNS</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -2369,7 +2370,7 @@ country associated with the given IPv4 or IPv6 address</p>
<dlclass="function">
<dtid="parsedmarc.utils.timestamp_to_datetime">
<codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">timestamp_to_datetime</code><spanclass="sig-paren">(</span><em>timestamp</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#timestamp_to_datetime"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.timestamp_to_datetime"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">timestamp_to_datetime</code><spanclass="sig-paren">(</span><emclass="sig-param">timestamp</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#timestamp_to_datetime"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.timestamp_to_datetime"title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a UNIX/DMARC timestamp to a Python <codeclass="docutils literal notranslate"><spanclass="pre">DateTime</span></code> object</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@@ -2386,7 +2387,7 @@ country associated with the given IPv4 or IPv6 address</p>
<dlclass="function">
<dtid="parsedmarc.utils.timestamp_to_human">
<codeclass="descclassname">parsedmarc.utils.</code><codeclass="descname">timestamp_to_human</code><spanclass="sig-paren">(</span><em>timestamp</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#timestamp_to_human"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.timestamp_to_human"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">parsedmarc.utils.</code><codeclass="sig-name descname">timestamp_to_human</code><spanclass="sig-paren">(</span><emclass="sig-param">timestamp</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/parsedmarc/utils.html#timestamp_to_human"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#parsedmarc.utils.timestamp_to_human"title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a UNIX/DMARC timestamp to a human-readable string</p>
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.