Giovanni Bechis writes:
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8319 [...] Fixed in a different way on r1924149.
I'm not sure whether your solution works with older Mail::DMARC versions, which are currently shipped by most Linux distributions. Mail::DMARC 1.20250203, which sets $result->result to 'none' if there is no policy, was only released last month. In all previous versions, $result->result defaults to 'fail' and the policy may be undefined. If there is no policy, $result->published will croak in both new and old versions. That's why I suggested to wrap $result->published with eval.