msimerson / mail-dmarc

Mail::DMARC, a complete DMARC implementation in Perl
Other
33 stars 23 forks source link

add a to_string method to Mail::DMARC::Policy #243

Open bigio opened 1 month ago

bigio commented 1 month ago

When using Mail::DMARC::PurePerl the DMARC record is read from dns, once the record is validated, I cannot find an easy way to print the domain's policy without an additional dns query.
This could be done by adding a to_string method to Mail::DMARC::Policy if there is no better way.