You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by do...@apache.org on 2007/11/16 08:20:26 UTC

svn commit: r595585 - /spamassassin/trunk/masses/mass-check

Author: dos
Date: Thu Nov 15 23:20:25 2007
New Revision: 595585

URL: http://svn.apache.org/viewvc?rev=595585&view=rev
Log:
bug 5720: send the client a malformed message index, get one back; duh!

Modified:
    spamassassin/trunk/masses/mass-check

Modified: spamassassin/trunk/masses/mass-check
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/mass-check?rev=595585&r1=595584&r2=595585&view=diff
==============================================================================
--- spamassassin/trunk/masses/mass-check (original)
+++ spamassassin/trunk/masses/mass-check Thu Nov 15 23:20:25 2007
@@ -1495,12 +1495,14 @@
           # the client how many messages to expect
           # NOTE: for some reason the client doesn't seem to even scan these messages (which is
           # fine)... if it were to it probably wouldn't be great for bayes enabled mass-checks
+          my $data = Mail::SpamAssassin::ArchiveIterator::_index_pack(0, 's', 'f', 'msg-error');
           send_line($gzfd, 0) || die "mass-check: error when writing to gz temp file\n";
-          send_line($gzfd, 'msg-error') || 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, '1') || die "mass-check: error when writing to gz temp file\n";
           send_line($gzfd, 'empty-message-will-cause-client-to-hang') ||
             die "mass-check: error when writing to gz temp file\n";
           delete $msgsout->{$num};
+          $msgs_processed++ if $opt_cs_schedule_cache;
         }
       } else {
         send_line($gzfd, $num) || die "mass-check: error when writing to gz temp file\n";
@@ -2381,7 +2383,7 @@
             }
           }
 
-          # if the cache failed try a temp file instead
+          # if the messages isn't in our cache use the supplied path instead
           if (!$opt_cs_cache || !$cache_success) {
 	    # in paths_only mode, there's no kluging between formats since we're
 	    # reading the same corpus, however we do still need to track server