Skip to content

search through all namespaces #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MEschenbacher
Copy link
Contributor

The mail providers gmx.net and web.de send dmarc reports with xml dmarc namespaces
(https://datatracker.ietf.org/doc/draft-ietf-dmarc-aggregate-reporting/):

...

and generate a parsing error

Error while parsing files/gmx.net!example.org!1721865600!1721951999!0d5403a6-de18-473b-938e-2bc41d0d271e.xml: File "files/gmx.net!example.org!1721865600!1721951999!0d5403a6-de18-473b-938e-2bc41d0d271e.xml" has no metadata reporting

This commit uses the wildcard xpath syntax supported since python 3.8 to correctly parse them.

The mail providers gmx.net and web.de send dmarc reports with xml dmarc
namespaces
(https://datatracker.ietf.org/doc/draft-ietf-dmarc-aggregate-reporting/):

<?xml version="1.0" encoding="UTF-8"?>
<feedback xmlns="urn:ietf:params:xml:ns:dmarc-2.0">
  <report_metadata>
...

and generate a parsing error

Error while parsing files/gmx.net!example.org!1721865600!1721951999!0d5403a6-de18-473b-938e-2bc41d0d271e.xml: File "files/gmx.net!example.org!1721865600!1721951999!0d5403a6-de18-473b-938e-2bc41d0d271e.xml" has no metadata reporting

This commit uses the wildcard xpath syntax supported since python 3.8 to
correctly parse them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant