You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2015/03/06 12:04:57 UTC

[Bug 7007] plugin testing with minimal set of plugins and maximal should pass

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7007

Gwyll Gwyllin <gw...@gwyll.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gwyll@gwyll.eu

--- Comment #7 from Gwyll Gwyllin <gw...@gwyll.eu> ---
I have a pure Debian, without any other apt sources and I had this problem too,
but I think I found the problem and I have a workaround for myself.

Since I've applied the updates and a new version of SpamAssassin has come
sa-clean failed with the same error.

As the amavis user I am able to run sa-learn and sa-update, but the
amavisd-new-cronjob didn't work.

And I found that somehow I have two sa-learn script. One in /usr/bin and one in
/usr/local/bin.

Since the amavisd-new-cronjob contains full path it has used /usr/bin/sa-learn.
I've renamed it and I've copied /usr/local/bin/sa-learn to /usr/bin and the
error has gone.

In case if you need the diff:

XXXX:~# diff /usr/bin/sa-learn /usr/bin/sa-learn-old
37,39c37,39
< my $PREFIX = '/usr/local';  # substituted at 'make' time
< my $DEF_RULES_DIR = '/usr/local/share/spamassassin';  # substituted at 'make'
time
< my $LOCAL_RULES_DIR = '/etc/mail/spamassassin';  # substituted at 'make' time
---
> my $PREFIX = '/usr';  # substituted at 'make' time
> my $DEF_RULES_DIR = '/usr/share/spamassassin';  # substituted at 'make' time
> my $LOCAL_RULES_DIR = '/etc/spamassassin';  # substituted at 'make' time
41c41
< use lib '/usr/local/share/perl/5.14.2';                # substituted at
'make' time
---
> use lib '/usr/share/perl5';                # substituted at 'make' time
49c49
<         || !-e '/usr/local/share/perl/5.14.2/Mail/SpamAssassin.pm' )
---
>         || !-e '/usr/share/perl5/Mail/SpamAssassin.pm' )
117d116
<   'max-size=i'  => \$opt{'max-size'},
461,463c460
<         # skip messages larger than max-size bytes,
<         # 0 for no limit, undef defaults to 256 KiB
<       'opt_max_size' => $opt{'max-size'},
---
>       'opt_all' => 0,       # skip messages over 250k
465d461
<       'opt_from_regex' => $spamtest->{conf}->{mbox_format_from_regex},
478c474
<   my $run_ok = eval { $exit_status ||= ! $iter->run(@targets); 1 };
---
>   eval { $exit_status ||= ! $iter->run(@targets); };
492c488
<   if (!$run_ok && $@ !~ /HITLIMIT/) { die $@ }
---
>   if ($@) { die $@ unless ( $@ =~ /HITLIMIT/ ); }
634,635d629
<  --max-size <b>        Skip messages larger than b bytes;
<                        defaults to 256 KiB, 0 implies no limit
654c648
<                        (default: /etc/mail/spamassassin)
---
>                        (default: /etc/spamassassin)
811c805
< the default directories (usually C</etc/mail/spamassassin> or similar).
---
> the default directories (usually C</etc/spamassassin> or similar).

-- 
You are receiving this mail because:
You are the assignee for the bug.

Re: [Bug 7007] plugin testing with minimal set of plugins and maximal should pass

Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
Thanks Gwyll for the note but this sounds like an upstream packaging issue with debian.
Regards,
KAM

On March 6, 2015 6:04:57 AM EST, bugzilla-daemon@issues.apache.org wrote:
>https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7007
>
>Gwyll Gwyllin <gw...@gwyll.eu> changed:
>
>           What    |Removed                     |Added
>----------------------------------------------------------------------------
>                 CC|                            |gwyll@gwyll.eu
>
>--- Comment #7 from Gwyll Gwyllin <gw...@gwyll.eu> ---
>I have a pure Debian, without any other apt sources and I had this
>problem too,
>but I think I found the problem and I have a workaround for myself.
>
>Since I've applied the updates and a new version of SpamAssassin has
>come
>sa-clean failed with the same error.
>
>As the amavis user I am able to run sa-learn and sa-update, but the
>amavisd-new-cronjob didn't work.
>
>And I found that somehow I have two sa-learn script. One in /usr/bin
>and one in
>/usr/local/bin.
>
>Since the amavisd-new-cronjob contains full path it has used
>/usr/bin/sa-learn.
>I've renamed it and I've copied /usr/local/bin/sa-learn to /usr/bin and
>the
>error has gone.
>
>In case if you need the diff:
>
>XXXX:~# diff /usr/bin/sa-learn /usr/bin/sa-learn-old
>37,39c37,39
>< my $PREFIX = '/usr/local';  # substituted at 'make' time
>< my $DEF_RULES_DIR = '/usr/local/share/spamassassin';  # substituted
>at 'make'
>time
>< my $LOCAL_RULES_DIR = '/etc/mail/spamassassin';  # substituted at
>'make' time
>---
>> my $PREFIX = '/usr';  # substituted at 'make' time
>> my $DEF_RULES_DIR = '/usr/share/spamassassin';  # substituted at
>'make' time
>> my $LOCAL_RULES_DIR = '/etc/spamassassin';  # substituted at 'make'
>time
>41c41
>< use lib '/usr/local/share/perl/5.14.2';                # substituted
>at
>'make' time
>---
>> use lib '/usr/share/perl5';                # substituted at 'make'
>time
>49c49
><         || !-e '/usr/local/share/perl/5.14.2/Mail/SpamAssassin.pm' )
>---
>>         || !-e '/usr/share/perl5/Mail/SpamAssassin.pm' )
>117d116
><   'max-size=i'  => \$opt{'max-size'},
>461,463c460
><         # skip messages larger than max-size bytes,
><         # 0 for no limit, undef defaults to 256 KiB
><       'opt_max_size' => $opt{'max-size'},
>---
>>       'opt_all' => 0,       # skip messages over 250k
>465d461
><       'opt_from_regex' =>
>$spamtest->{conf}->{mbox_format_from_regex},
>478c474
><   my $run_ok = eval { $exit_status ||= ! $iter->run(@targets); 1 };
>---
>>   eval { $exit_status ||= ! $iter->run(@targets); };
>492c488
><   if (!$run_ok && $@ !~ /HITLIMIT/) { die $@ }
>---
>>   if ($@) { die $@ unless ( $@ =~ /HITLIMIT/ ); }
>634,635d629
><  --max-size <b>        Skip messages larger than b bytes;
><                        defaults to 256 KiB, 0 implies no limit
>654c648
><                        (default: /etc/mail/spamassassin)
>---
>>                        (default: /etc/spamassassin)
>811c805
>< the default directories (usually C</etc/mail/spamassassin> or
>similar).
>---
>> the default directories (usually C</etc/spamassassin> or similar).
>
>-- 
>You are receiving this mail because:
>You are the assignee for the bug.