Am 03.03.2014 16:21, schrieb Kevin A. McGrail:
On 3/3/2014 10:06 AM, Dieter Braun wrote:
Tried it - removed all files listed in /usr/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Mail/SpamAssassin/.packlist and recompiled from scratch (after "make clean"): Same behavior as described below.

Noticed something I'm wondering about: "sa-update" and "spamassassin --lint" want to call "check_equal_from_domains" via package "Mail::SpamAssassin::PerMsgStatus". But when I grep through the source code, I find "check_equal_from_domains" in the file "lib/Mail/SpamAssassin/Plugin/HeaderEval.pm". (In the installed files "check_equal_from_domains" is defined in "/usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/HeaderEval.pm".) Just wondering about this.
PerMsgStatus or PMS is more of the core library that loops through the message.

I would do a locate HeaderEval.pm or similar. To me, this is acting like you have an old version of the file HeaderEval.pm (perhaps multiple versions of perl)?

I can recreate this issue by modifying HeaderEval.pm to remove $self->register_eval_rule("check_equal_from_domains");

    rules: failed to run T_HEADER_FROM_DIFFERENT_DOMAINS test, skipping:
            (Can't locate object method "check_equal_from_domains" via
    package "Mail::SpamAssassin::PerMsgStatus" at (eval 1125) line 1423.
    )
    channel: lint check of update failed, channel failed

Did you install via cpan, source, rpm, etc?

Regards,
KAM

-------------------------------------------------------
XXX:~ # locate HeaderEval.pm
/usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/HeaderEval.pm
-------------------------------------------------------

-------------------------------------------------------
XXX:~ # l /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin
total 736
drwxr-xr-x  2 root root  4096 Mar  3 15:51 ./
drwxr-xr-x 10 root root  4096 Mar  3 15:51 ../
-r--r--r--  1 root root 15023 Feb  7 09:36 ASN.pm
-r--r--r--  1 root root 19875 Feb  7 09:36 AWL.pm
-r--r--r--  1 root root  4672 Feb  7 09:36 AccessDB.pm
-r--r--r--  1 root root  4572 Feb  7 09:36 AntiVirus.pm
-r--r--r--  1 root root 28105 Feb  7 09:36 AskDNS.pm
-r--r--r--  1 root root  8816 Feb  7 09:36 AutoLearnThreshold.pm
-r--r--r--  1 root root 52152 Feb  7 09:36 Bayes.pm
-r--r--r--  1 root root  8900 Feb  7 09:36 BodyEval.pm
-r--r--r--  1 root root 34302 Feb  7 09:36 BodyRuleBaseExtractor.pm
-r--r--r--  1 root root 46722 Feb  7 09:36 Check.pm
-r--r--r--  1 root root 33535 Feb  7 09:36 DCC.pm
-r--r--r--  1 root root 49285 Feb  7 09:36 DKIM.pm
-r--r--r--  1 root root 12415 Feb  7 09:36 DNSEval.pm
-r--r--r--  1 root root 18906 Feb  7 09:36 FreeMail.pm
-r--r--r--  1 root root  5458 Feb  7 09:36 HTMLEval.pm
-r--r--r--  1 root root  3589 Feb  7 09:36 HTTPSMismatch.pm
-r--r--r--  1 root root 10214 Feb  7 09:36 Hashcash.pm
-r--r--r--  1 root root 33326 Feb  7 09:36 HeaderEval.pm
-r--r--r--  1 root root 12860 Feb  7 09:36 ImageInfo.pm
-r--r--r--  1 root root 15417 Feb  7 09:36 MIMEEval.pm
-r--r--r--  1 root root  6075 Feb  7 09:36 MIMEHeader.pm
-r--r--r--  1 root root  4127 Feb  7 09:36 OneLineBodyRuleType.pm
-r--r--r--  1 root root  7448 Feb  7 09:36 PhishTag.pm
-r--r--r--  1 root root 13163 Feb  7 09:36 Pyzor.pm
-r--r--r--  1 root root 14430 Feb  7 09:36 Razor2.pm
-r--r--r--  1 root root  4496 Feb  7 09:36 RelayCountry.pm
-r--r--r--  1 root root 11363 Feb  7 09:36 RelayEval.pm
-r--r--r--  1 root root  7831 Feb  7 09:36 ReplaceTags.pm
-r--r--r--  1 root root  6975 Feb  7 09:36 Reuse.pm
-r--r--r--  1 root root  8733 Feb  7 09:36 Rule2XSBody.pm
-r--r--r--  1 root root 28730 Feb  7 09:36 SPF.pm
-r--r--r--  1 root root  8396 Feb  7 09:36 Shortcircuit.pm
-r--r--r--  1 root root  8578 Feb  7 09:36 SpamCop.pm
-r--r--r--  1 root root  2018 Feb  7 09:36 Test.pm
-r--r--r--  1 root root 14167 Feb  7 09:36 TextCat.pm
-r--r--r--  1 root root 39526 Feb  7 09:36 URIDNSBL.pm
-r--r--r--  1 root root  7329 Feb  7 09:36 URIDetail.pm
-r--r--r--  1 root root  2693 Feb  7 09:36 URIEval.pm
-r--r--r--  1 root root  4987 Feb  7 09:36 VBounce.pm
-r--r--r--  1 root root 14646 Feb  7 09:36 WLBLEval.pm
-r--r--r--  1 root root  4221 Feb  7 09:36 WhiteListSubject.pm
-------------------------------------------------------

All Plugins appear to be from 3.4.0. With 'find / -name "perl*"' I cannot find any file belonging to another version of perl. (To be more exact: I cannot claim this for the man pages, but that shouldn't matter here.:-) )

-------------------------------------------------------
XXX:~ # find / -name HeaderEval.pm
/root/install/Mail-SpamAssassin-3.4.0/blib/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm
/root/install/Mail-SpamAssassin-3.4.0/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm
/usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/HeaderEval.pm
-------------------------------------------------------

"/root/install/Mail-SpamAssassin-3.4.0/" is the directory where the source code is located. I'm installing by compiling from source code:

-------------------------------------------------------
cd /root/install/Mail-SpamAssassin-3.4.0/
perl Makefile.PL
make
make install
-------------------------------------------------------

I have not installed all optional modules:

-------------------------------------------------------
XXX:~ # perl build/check_dependencies

[...]

optional module missing: Mail::SPF
optional module missing: Geo::IP
optional module missing: IO::Socket::IP
optional module missing: Mail::DKIM
optional module missing: Net::Patricia
optional binary missing or nonfunctional: fetch
-------------------------------------------------------

Regards,
Dieter

<<attachment: dieter_braun.vcf>>

Reply via email to