Created attachment 206539 [details]
Patch to fix problem described in bug description
In certain code paths Mail/SPF will fail to parse SPF records correctly due to not importing/requiring Mail::SPF::Mech (which contains class methods required in the parse process).
This is a fairly old problem, this bug report with a supposed fix by the author also contained the patch I included here:
I will also report upstream, but as this problem leads to skipping SPF sometimes in mail/spampd (and probably SpamAssassin in general) I felt that pulling this into the ports tree now makes a lot of sense.
Aug 14 13:06:40 mail spampd: spf: lookup failed: Can't locate object method "qualifier_pattern" via package "Mail::SPF::Mech" at /usr/local/lib/perl5/site_perl/Mail/SPF/Record.pm line 213.
(In reply to Michael Gmelin from comment #0)
Bug report at CPAN:
A commit references this bug:
Date: Wed Aug 14 18:02:15 UTC 2019
New revision: 508957
Fix parsing SPF records
- Bump PORTREVISION for package change
Submitted by: grembo