Package: spamassassin
Version: 3.1.7-2
Severity: important
Tags: patch l10n
the files to include are prefixed with numbers to grant the right
include order. sa-update generates disorderd include file like
/var/lib/spamassassin/3.001007/updates_spamassassin_org.cf
so the rules are included in the wrong order ...
One symptom is the malfunction of the language-support:
The report definition in 30_text_de.cf values would be overwritten by
a displaced 10_misc.cf ...
see: http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5371
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (500,
'proposed-updates'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages spamassassin depends on:
ii libarchive-tar-perl 1.30-2 Archive::Tar - manipulate tar file
ii libdigest-sha1-perl 2.11-1 NIST SHA-1 message digest algorith
ii libhtml-parser-perl 3.55-1 A collection of modules that parse
ii libsocket6-perl 0.19-1 Perl extensions for IPv6
ii libwww-perl 5.805-1 WWW client/server library for Perl
ii perl 5.8.8-7 Larry Wall's Practical Extraction
Versions of packages spamassassin recommends:
ii libmail-spf-query-perl 1:1.999.1-2 query SPF (Sender Policy Framework
ii libnet-dns-perl 0.59-1 Perform DNS queries from a Perl sc
ii perl [libmime-base64-perl] 5.8.8-7 Larry Wall's Practical Extraction
ii spamc 3.1.7-2 Client for SpamAssassin spam filte
-- no debconf information
--- sa-update_old 2007-03-08 11:00:18.000000000 +0100
+++ sa-update 2007-03-08 11:19:10.000000000 +0100
@@ -786,12 +786,18 @@
unless (opendir(DIR, $UPDDir)) {
die "fatal: can't access $UPDDir: $!\n";
}
+
+ my @files = ();
while(my $file = readdir(DIR)) {
$file =~ /^(.+)$/; # untaint
$file = $1;
my $path = File::Spec->catfile($UPDDir, $file);
next unless (-f $path); # shouldn't ever happen
+ push(@files, $file);
+ }
+ foreach ( sort { $a cmp $b } @files ) {
+ my $file = $_;
if ($file =~ /\.cf$/) {
push(@CF, "include $nicechannel/$file\n");
}