Your message dated Mon, 12 Feb 2007 09:17:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#346212: fixed in mailscanner 4.57.6-3
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: mailscanner
Version: 4.41.3-2
Severity: important
*** Please type your report below this line ***
Error description
*****************
The (-H) spool file format has changed with Exim version 4.10 --
Debian stable Exim version is 4.50-8 -- and this change is not
reflected in lib/MailScanner/Exim.pm (sub ReadQf).
If the one_time option is in effect, the corresponding address line
after the non-recipients tree looks like this:
<top-level address> <errors_to address> <length>,<parent number>#<flag
bits>
(see here:
http://www.exim.org/exim-html-4.50/doc/html/spec_52.html#SECT52.1 )
The Exim.pm code is based on the pre-v4.10 format:
<top-level address> <flags number>,<parent number>,0
This may actually a MailScanner bug not specific to Debian.
Resulting problem
*****************
lib/MailScanner/Exim.pm, sub ReadQf, line 415:
# Add recipient to message data
# but deal with "special" lines first
# (when "one_time" option is being used)
$line =~ s/ \d+,\d+,\d+$//;
push @{$message->{to}}, $line;
The regexp replacement actually does nothing, so that an invalid
"e-mail address" is pushed onto the $message->{to} array if one_time
is in effect; something like:
"[EMAIL PROTECTED] [EMAIL PROTECTED] 17,1#01"
or
"[EMAIL PROTECTED] 0,1#01"
Solution suggestion
*******************
Replace the regexp used to strip away the "special" data:
If addresses in spool files were guaranteed not to contain spaces,
then the following would work:
$line =~ s/ *$//;
Unfortunately, RFC2822 seems to suggest that addresses whose local
and domain parts contain spaces must at least be parsed (though I
neither read nor understood this RFC completely).
So here's another suggestion (attached as diff):
# strips old "special" content
$line =~ s/ \d+,\d+,\d+$//;
# strips new "special" content
$line =~ s/ (\d+),\d+#01$//;
if ($1) {
$line = substr($line, 0, length($line)-$1-1);
}
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages mailscanner depends on:
ii debconf 1.4.30.13 Debian configuration management sy
ii exim4 4.50-8 metapackage to ease exim MTA (v4)
ii exim4-daemon-light [mail-tr 4.50-8 lightweight exim MTA (v4) daemon
ii libarchive-zip-perl 1.14-1 Module for manipulation of ZIP arc
ii libcompress-zlib-perl 1.34-1 Perl module for creation and manip
ii libconvert-binhex-perl 1.119-2 Perl5 module for extracting data f
ii libconvert-tnef-perl 0.17-4 Perl module to read TNEF files
ii libhtml-parser-perl 3.45-2 A collection of modules that parse
ii libmime-perl 5.417-1 Perl5 modules for MIME-compliant m
ii libnet-cidr-perl 0.10-1 Manipulate IPv4/IPv6 netblocks in
ii ncftp 2:3.1.8-1 A user-friendly and well-featured
ii perl 5.8.4-8 Larry Wall's Practical Extraction
ii spamassassin 3.0.3-2 Perl-based spam filter using text
ii ucf 1.17 Update Configuration File: preserv
ii unzip 5.52-1sarge2 De-archiver for .zip files
ii wget 1.9.1-12 retrieves files from the web
--- mailscanner-4.41.3.orig/lib/MailScanner/Exim.pm 2005-03-27
19:37:10.000000000 +0200
+++ mailscanner-4.41.3.corrected/lib/MailScanner/Exim.pm 2006-01-06
13:48:33.000000000 +0100
@@ -415,7 +415,15 @@
# Add recipient to message data
# but deal with "special" lines first
# (when "one_time" option is being used)
+
+ # strips old "special" content (< v4.10)
$line =~ s/ \d+,\d+,\d+$//;
+ # strips new "special" content (>= v4.10)
+ $line =~ s/ (\d+),\d+#01$//;
+ if ($1) {
+ $line = substr($line, 0, length($line)-$1-1);
+ }
+
push @{$message->{to}}, $line;
}
}
--- End Message ---
--- Begin Message ---
Source: mailscanner
Source-Version: 4.57.6-3
We believe that the bug you reported is fixed in the latest version of
mailscanner, which is due to be installed in the Debian FTP archive:
mailscanner_4.57.6-3.diff.gz
to pool/main/m/mailscanner/mailscanner_4.57.6-3.diff.gz
mailscanner_4.57.6-3.dsc
to pool/main/m/mailscanner/mailscanner_4.57.6-3.dsc
mailscanner_4.57.6-3_all.deb
to pool/main/m/mailscanner/mailscanner_4.57.6-3_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Simon Walter <[EMAIL PROTECTED]> (supplier of updated mailscanner package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sun, 11 Feb 2007 22:35:05 +0100
Source: mailscanner
Binary: mailscanner
Architecture: source all
Version: 4.57.6-3
Distribution: unstable
Urgency: low
Maintainer: Simon Walter <[EMAIL PROTECTED]>
Changed-By: Simon Walter <[EMAIL PROTECTED]>
Description:
mailscanner - email virus scanner and spam tagger
Closes: 326193 346212 409790 410148
Changes:
mailscanner (4.57.6-3) unstable; urgency=low
.
* cron.daily: fixed string equation test (Closes: #409790)
* Add missing patch for #399424 to load spam.assasin.prefs.conf (Closes:
#410148)
* Exim.pm: Correctly parse adress-lines in -H spool files if one_time option
is used (Closes: #346212)
* Message.pm: change owner of extracted dot-files (.foo) (Closes: #326193)
Files:
d2deac81e8efb57a1eca3e6e07c0f320 653 mail optional mailscanner_4.57.6-3.dsc
c907d96f57149ebb37d172f29fd80090 44775 mail optional
mailscanner_4.57.6-3.diff.gz
7f523b5c0b39cf26dc3244dd35df9e1c 552264 mail optional
mailscanner_4.57.6-3_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFF0C2G+C5cwEsrK54RAlx2AJ0cfnin4x8H6WF9T5834TocAgiUdgCfdrgo
tRalZaccMScZwY1mFI+Zri0=
=Z5RS
-----END PGP SIGNATURE-----
--- End Message ---