spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r581949 - /spamassassin/trunk/masses/mass-check
Date Thu, 04 Oct 2007 15:26:31 GMT
Author: dos
Date: Thu Oct  4 08:26:30 2007
New Revision: 581949

URL: http://svn.apache.org/viewvc?rev=581949&view=rev
Log:
handle zero-length messages when not in --cs_paths_only mode; we send a blank message rather
than skipping the message so that the result output is identical to the output if the client
was running in --cs_paths_only; in any case, people should remove zero-length messages from
their corpora (there's no way to receive a headerless message without an error in your mail
system) and fix their procmail maildir config that is quite likely broken

Modified:
    spamassassin/trunk/masses/mass-check

Modified: spamassassin/trunk/masses/mass-check
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/mass-check?rev=581949&r1=581948&r2=581949&view=diff
==============================================================================
--- spamassassin/trunk/masses/mass-check (original)
+++ spamassassin/trunk/masses/mass-check Thu Oct  4 08:26:30 2007
@@ -1194,7 +1194,7 @@
       if ($msg) {
         send_line($gzfd, $num) || die "mass-check: error when writing to gz temp file\n";
         send_line($gzfd, $data) || die "mass-check: error when writing to gz temp file\n";
-        send_line($gzfd, join('', @{$msg})) ||
+        send_line($gzfd, (defined $msg ? join('', @{$msg}) : '')) ||
           die "mass-check: error when writing to gz temp file\n";
         push @sent, $num;
       } else {



Mime
View raw message