Replies: 6 comments 4 replies
-
Here is the full DMARC report because Yahoo format is missing many elements <?xml version="1.0"?>
<feedback>
<report_metadata>
<org_name>Yahoo</org_name>
<email>dmarchelp@yahooinc.com</email>
<report_id>1735694883.674529</report_id>
<date_range>
<begin>1735603200</begin>
<end>1735689599</end>
</date_range>
</report_metadata>
<policy_published>
<domain>listes.comptoir.net</domain>
<adkim>r</adkim>
<aspf>r</aspf>
<p>quarantine</p>
<pct>100</pct>
</policy_published>
<record>
<row>
<source_ip>49.12.227.144</source_ip>
<count>30</count>
<policy_evaluated>
<disposition>none</disposition>
<dkim>pass</dkim>
<spf>pass</spf>
</policy_evaluated>
</row>
<identifiers>
<header_from>listes.comptoir.net</header_from>
</identifiers>
<auth_results>
<dkim>
<domain>listes.comptoir.net</domain>
<selector>default</selector>
<result>pass</result>
</dkim>
<spf>
<domain>listes.comptoir.net</domain>
<result>pass</result>
</spf>
</auth_results>
</record>
</feedback> |
Beta Was this translation helpful? Give feedback.
-
I'm try with hundred of reports and make some changes because of datum type or ValueError like : final class PolicyOverrideReason
{
public function __construct(
public readonly PolicyOverrideType $type,
public readonly ?string $comment = null,
) {}
public static function fromArray(array|string $policy): self
{
if (is_array($policy))
return new self(
type: PolicyOverrideType::from($policy['type']),
comment: $policy['comment'] ?? null,
);
try {
return new self(
type: PolicyOverrideType::from($policy),
comment: null,
);
} catch (\ValueError $ex) {
return new self(
type: PolicyOverrideType::OTHER,
comment: $policy,
);
}
}
} |
Beta Was this translation helpful? Give feedback.
-
A test run of #5 confirmed that errors were triggered by missing elements and a bug in handling the reason, which was expected to be an array of array. |
Beta Was this translation helpful? Give feedback.
-
Thanks |
Beta Was this translation helpful? Give feedback.
-
You've published on packagist, great :-) |
Beta Was this translation helpful? Give feedback.
-
Great 💌 ! I've just tested your last release |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
Thanks to share your work, it's so nice 💌
Some provider report format does not contains
feedback.version
like Yahoo :that's throw a Saloon\XmlWrangler\Exceptions\MissingNodeException saying "Unable to find the [feedback.version] node" at
$version = $reader->value('feedback.version')->sole();
.Beta Was this translation helpful? Give feedback.
All reactions