Skip Menu |

This queue is for tickets about the Mail-SPF CPAN distribution.

Report information
The Basics
Id: 130299
Status: new
Priority: 0/
Queue: Mail-SPF

People
Owner: Nobody in particular
Requestors: freebsd [...] grem.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [PATCH] spf: lookup failed: Can't locate object method "qualifier_pattern" via package
Date: Wed, 14 Aug 2019 16:38:31 +0200
To: bug-Mail-SPF [...] rt.cpan.org
From: Michael Gmelin <freebsd [...] grem.de>
Hi, When using spampd I sometimes get error messages like these: 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. This is a fairly old problem with a proposed fix by jmehnle back in 2008[0]. Applying the patch below fixes the issue for me: --- lib/Mail/SPF/Record.pm.orig 2018-04-22 04:07:19.000000000 +0000 +++ lib/Mail/SPF/Record.pm 2019-08-14 13:23:26.324884000 +0000 @@ -206,6 +206,7 @@ sub parse_term { my ($self) = @_; + require Mail::SPF::Mech; if ( $self->{parse_text} =~ s/ ^ I also opened an issue in FreeBSD's bugtracker to patch the port until a solution is adopted upstream[1]. Thanks, Michael [0]http://debian.2.n7.nabble.com/Bug-461709-usr-sbin-spamd-spf-lookup-failed-Can-t-locate-object-method-quot-new-quot-via-package-quo-td492057.html [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239855 -- Michael Gmelin