Hi "bugreports" I can't see why this patch would help you. Variable LOCAL_STATE_DIR is only used with spamassassin < 3.1.5. You have version 3.1.7 from testing/unstable which automatically uses the correct location of the state_dir:
> # If SpamAssassin version is older than 3.1.5, we must set > # LOCAL_STATE_DIR or LOCAL_RULES_DIR, because Mail::SpamAssassin > # doesn't provide a default value. > if ($Mail::SpamAssassin::VERSION < 3.001005) { > $sa_args->{LOCAL_STATE_DIR} = $LOCAL_STATE_DIR; > $sa_args->{LOCAL_RULES_DIR} = $LOCAL_RULES_DIR; > } > $SASpamTester = Mail::SpamAssassin->new( $sa_args ); [EMAIL PROTECTED] schrieb: > Package: mimedefang > Version: 2.57-1 > Followup-For: Bug #366636 > > > I ran into the same situation as described by Richard A Nelson, although > using mimedefang 2.57-1: > > After a spamassassin rules / plugins update (with --allow-plugins) the > new filtering features were available using spamc/spamd but not via > mimedefang. > > It took me a while to find out that the following patch would solve the > problem: > > --- /usr/bin/mimedefang.pl.orig 2006-08-07 17:58:20.000000000 +0200 > +++ /usr/bin/mimedefang.pl 2007-03-25 17:24:30.000000000 +0200 > @@ -6413,7 +6413,7 @@ > sub spam_assassin_init (;$) { > my($config) = @_; > my $LOCAL_RULES_DIR = "/etc/spamassassin"; > - my $LOCAL_STATE_DIR = '/var/lib'; > + my $LOCAL_STATE_DIR = '/var/lib/spamassassin'; > > unless ($Features{"SpamAssassin"}) { > md_syslog('err', "$MsgID: Attempt to call SpamAssassin function, but > SpamAssassin is not installed."); > --- end of patch > > /var/lib/spamassassin is indeed the directory where sa-update stores its > data. > > -- System Information: > Debian Release: testing/unstable > APT prefers unstable > APT policy: (500, 'unstable') > Architecture: i386 (i686) > Shell: /bin/sh linked to /bin/bash > Kernel: Linux 2.6.17.7 > Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) > > Versions of packages mimedefang depends on: > ii debconf [debconf-2.0] 1.5.2 Debian configuration management > sy > ii libc6 2.3.6-15 GNU C Library: Shared libraries > ii libdigest-sha1-perl 2.10-1 NIST SHA-1 message digest > algorith > ii libio-stringy-perl 2.110-1 Perl5 modules for IO from > scalars > ii libmailtools-perl 1.74-0.1 Manipulate email in perl programs > ii libmime-perl 5.418-1 Perl5 modules for MIME-compliant > m > ii libperl5.8 5.8.8-6.1 Shared Perl library > ii libunix-syslog-perl 0.100-4 Perl interface to the UNIX > syslog( > ii perl [libmime-base64-perl] 5.8.8-6.1 Larry Wall's Practical > Extraction > ii psmisc 22.2-1 Utilities that use the proc > filesy > > Versions of packages mimedefang recommends: > ii sendmail 8.13.8-2 powerful, efficient, and > scalable > pn tk8.3 | wish <none> (no description available) > > Additional version information: > ii spamassassin 3.1.7-1 Perl-based spam filter using text > analysis > > -- debconf information: > mimedefang/embedperl: true > -- ============================================================================ Christoph Martin, Leiter der EDV der Verwaltung, Uni-Mainz, Germany Internet-Mail: [EMAIL PROTECTED] Telefon: +49-6131-3926337 Fax: +49-6131-3922856
signature.asc
Description: OpenPGP digital signature