Hi all,

Yesterday I updated SpamAssassin with perl and CPAN, and today I asked
it to update bayes with ~400 stored spam messages.

The results:
$ sa-learn --mbox --spam /var/mail/spamhole
configuration file "/usr/local/share/spamassassin/20_body_tests.cf"
requires version 3.000004 of SpamAssassin, but this is code version
3.000002. Maybe you need to use the -C switch, or remove the old config
files? Skipping this file
at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/Conf/Parser.pm line
329.
configuration file "/usr/local/share/spamassassin/20_compensate.cf"
requires version 3.000004 of SpamAssassin, but this is code version
3.000002. Maybe you need to use the -C switch, or remove the old config
files? Skipping this file
at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/Conf/Parser.pm line
329.
configuration file "/usr/local/share/spamassassin/20_dnsbl_tests.cf"
requires version 3.000004 of SpamAssassin, but this is code version
3.000002. Maybe you need to use the -C switch, or remove the old config
files? Skipping this file
at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/Conf/Parser.pm line
329.
configuration file "/usr/local/share/spamassassin/20_drugs.cf" requires
version 3.000004 of SpamAssassin, but this is code version 3.000002.
Maybe you need to use the -C switch, or remove the old config files?
Skipping this file
at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/Conf/Parser.pm line
329.
configuration file "/usr/local/share/spamassassin/20_fake_helo_tests.cf"
requires version 3.000004 of SpamAssassin, but this is code version
3.000002. Maybe you need to use the -C switch, or remove the old config
files? Skipping this file
at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/Conf/Parser.pm line
329.
configuration file "/usr/local/share/spamassassin/20_head_tests.cf"
requires version 3.000004 of SpamAssassin, but this is code version
3.000002. Maybe you need to use the -C switch, or remove the old config
files? Skipping this file
at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/Conf/Parser.pm line
329.
configuration file "/usr/local/share/spamassassin/20_html_tests.cf"
requires version 3.000004 of SpamAssassin, but this is code version
3.000002. Maybe you need to use the -C switch, or remove the old config
files? Skipping this file
at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/Conf/Parser.pm line
329.
configuration file "/usr/local/share/spamassassin/20_meta_tests.cf"
requires version 3.000004 of SpamAssassin, but this is code version
3.000002. Maybe you need to use the -C switch, or remove the old config
files? Skipping this file
at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/Conf/Parser.pm line
329.
configuration file "/usr/local/share/spamassassin/20_phrases.cf"
requires version 3.000004 of SpamAssassin, but this is code version
3.000002. Maybe you need to use the -C switch, or remove the old config
files? Skipping this file
at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/Conf/Parser.pm line
329.
configuration file "/usr/local/share/spamassassin/20_porn.cf" requires
version 3.000004 of SpamAssassin, but this is code version 3.000002.
Maybe you need to use the -C switch, or remove the old config files?
Skipping this file
at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/Conf/Parser.pm line
329.
configuration file "/usr/local/share/spamassassin/20_uri_tests.cf"
requires version 3.000004 of SpamAssassin, but this is code version
3.000002. Maybe you need to use the -C switch, or remove the old config
files? Skipping this file
at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/Conf/Parser.pm line
329.
configuration file "/usr/local/share/spamassassin/23_bayes.cf" requires
version 3.000004 of SpamAssassin, but this is code version 3.000002.
Maybe you need to use the -C switch, or remove the old config files?
Skipping this file
at /usr/local/share/perl/5.6.1/Mail/SpamAssassin/Conf/Parser.pm line
329.
Learned from 212 message(s) (430 message(s) examined).

After seeing this, I re-ran 'make install' from
~root/.cpan/build/Mail-SpamAssassin-3.0.4/ and the config files are in
the right place and updated...

$ ls -al /usr/local/share/spamassassin/
total 566
drwxr-xr-x  2 root staff    984 Aug 11 11:15 .
drwxrwsr-x  5 root staff    128 Jun 21 14:08 ..
-rw-r--r--  1 root root    6018 Aug 11 11:15 10_misc.cf
-rw-r--r--  1 root root    1605 Aug 11 11:15 20_anti_ratware.cf
-rw-r--r--  1 root root    8198 Aug 11 11:15 20_body_tests.cf
-rw-r--r--  1 root root    1613 Aug 11 11:15 20_compensate.cf
-rw-r--r--  1 root root   12083 Aug 11 11:15 20_dnsbl_tests.cf
-rw-r--r--  1 root root   15700 Aug 11 11:15 20_drugs.cf
-rw-r--r--  1 root root   11268 Aug 11 11:15 20_fake_helo_tests.cf
-rw-r--r--  1 root root   27711 Aug 11 11:15 20_head_tests.cf
-rw-r--r--  1 root root   15487 Aug 11 11:15 20_html_tests.cf
-rw-r--r--  1 root root   10939 Aug 11 11:15 20_meta_tests.cf
-rw-r--r--  1 root root   22099 Aug 11 11:15 20_phrases.cf
-rw-r--r--  1 root root    4966 Aug 11 11:15 20_porn.cf
-rw-r--r--  1 root root   14139 Aug 11 11:15 20_ratware.cf
-rw-r--r--  1 root root    5032 Aug 11 11:15 20_uri_tests.cf
-rw-r--r--  1 root root    2334 Aug 11 11:15 23_bayes.cf
-rw-r--r--  1 root root    9117 Aug 11 11:15 25_body_tests_es.cf
-rw-r--r--  1 root root    2738 Aug 11 11:15 25_hashcash.cf
-rw-r--r--  1 root root    2304 Aug 11 11:15 25_spf.cf
-rw-r--r--  1 root root    4912 Aug 11 11:15 25_uribl.cf
-rw-r--r--  1 root root   52293 Aug 11 11:15 30_text_de.cf
-rw-r--r--  1 root root   40682 Aug 11 11:15 30_text_fr.cf
-rw-r--r--  1 root root   57934 Aug 11 11:15 30_text_nl.cf
-rw-r--r--  1 root root   34803 Aug 11 11:15 30_text_pl.cf
-rw-r--r--  1 root root   29411 Aug 11 11:15 50_scores.cf
-rw-r--r--  1 root root    6887 Aug 11 11:15 60_whitelist.cf
-rw-r--r--  1 root root  101479 Aug 11 11:15 languages
-rw-r--r--  1 root root   18944 Aug 11 11:15 triplets.txt
-rw-r--r--  1 root root    1557 Aug 11 11:15 user_prefs.template

But I get the same errors.

It appears that my executables didn't update the right location:
# sa-learn --version
SpamAssassin version 3.0.2
# spamassassin --version
SpamAssassin version 3.0.2
  running on Perl version 5.8.4

...

# /usr/bin/sa-learn --version
SpamAssassin version 3.0.4
# /usr/bin/spamassassin --version
SpamAssassin version 3.0.4
  running on Perl version 5.8.4

The earlier (3.0.2) version was also installed via Perl and CPAN, so
this appears to be a rather large bug in the installer.

Thanks,

Greg

-- 
Greg Webster         System Administrator
     Intouch.ca Software Corporation
Phone: 604-278-0515     Fax: 604-608-3112


Reply via email to