Attached patch fixes the error:
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.
that can be reproduced with SpamAssassin with certain emails.

Comments ? ok ?
 Cheers
  Giovanni

Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/p5-Mail-SPF/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- Makefile    3 Jul 2020 21:45:27 -0000       1.8
+++ Makefile    23 Dec 2021 18:35:14 -0000
@@ -4,7 +4,7 @@ COMMENT =               perl oop implementation of Se
 
 DISTNAME =             Mail-SPF-v2.9.0
 PKGNAME =              p5-${DISTNAME:S/-v/-/}
-REVISION =             1
+REVISION =             2
 CATEGORIES =           mail
 
 MAINTAINER =           Giovanni Bechis <[email protected]>
Index: patches/patch-lib_Mail_SPF_Record_pm
===================================================================
RCS file: patches/patch-lib_Mail_SPF_Record_pm
diff -N patches/patch-lib_Mail_SPF_Record_pm
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-lib_Mail_SPF_Record_pm        23 Dec 2021 18:35:14 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+Fix for cpan bug 130299 (https://rt.cpan.org/Public/Bug/Display.html?id=130299)
+Index: lib/Mail/SPF/Record.pm
+--- lib/Mail/SPF/Record.pm.orig
++++ lib/Mail/SPF/Record.pm
+@@ -206,6 +206,7 @@ sub parse_version_tag {
+ 
+ sub parse_term {
+     my ($self) = @_;
++    require Mail::SPF::Mech;
+     if (
+         $self->{parse_text} =~ s/
+             ^

Attachment: signature.asc
Description: PGP signature

Reply via email to