Michael(tm) Smith wrote:
> Not happening any longer. But up to March 13, I was getting a
> different but similar message:
>
>   Can't locate object method "new" via package "Net::DNS::RR::TXT"
>   at /usr/lib/perl5/Net/DNS/RR.pm line 305
>
> Since March 13, that seems to have disappeared (I assume because
> when I did an apt-get upgrade, the Net::DNS::RR and/or
> Mail::SPF::Server package got upgraded).

That was most likely a bug in Net::DNS, and certainly not one in 
Mail::SPF, because before you upgraded your system, SpamAssassin was 
using Mail::SPF::Query, which is an obsolete module different from 
Mail::SPF.

> But I'm now seeing another error in the SPF stuff:
>
>   spf: lookup failed: Can't locate object method
>   "qualifier_pattern" via package "Mail::SPF::Mech" at
>   usr/share/perl5/Mail/SPF/Record.pm line 212
>
> So it almost seems like sort of a push-me-pull-you going on with
> those packages -- one bug gets fixed, another bug gets
> introduced...

Are you still experiencing this problem?  If so, does it go away if you 
apply the attached patch to /usr/share/perl5/Mail/SPF/Record.pm?

Julian.
--- /usr/share/perl5/Mail/SPF/Record.pm	2007-06-23 21:14:18.000000000 +0000
+++ Record.pm	2008-06-27 18:19:56.000000000 +0000
@@ -206,6 +206,7 @@
 
 sub parse_term {
     my ($self) = @_;
+    require Mail::SPF::Mech;
     if (
         $self->{parse_text} =~ s/
             ^

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to