which header is _only_ show when spam message is found?

Rick van der Zwet <[email protected]>
Newsgroups gmane.mail.qmail.scanner
Message-ID <[email protected]>
I guess none, looking at the code ;-)
Might be usefull, because for example ezmlm may only filter om headers
and not on content

Cheerz,
Rick

_______________________________________________
Qmail-scanner-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
qmail-scanner-queue.pl.diff (text/plain, 1.4 KB)
--- qmail-scanner-queue.pl.orig	Sun Jun 18 20:30:53 2006
+++ qmail-scanner-queue.pl	Sun Jun 18 20:33:17 2006
@@ -226,7 +226,7 @@
 my $spamc_options=' -c ';
 my $spamc_subject='';
 my $spamassassin_binary='/usr/local/bin/spamassassin';
-my ($sa_comment,$sa_level);
+my ($sa_comment,$sa_level,$sa_status);
 my $sa_symbol='+';
 my ($tag_score)="";
 my $SNEAKY_WINDOWS_EXTENSIONS="exe|pps|w[pm][szd]|vcf|nws|cmd|bat|pif|sc[rt]|dll|ocx|do[ct]|xl[swt]|p[po]t|rtf|vb[se]?|hta|p[lm]|sh[bs]|hlp|chm|eml|ws[cfh]|ad[ep]|jse?|md[abew]|ms[ip]|reg|as[dfx]|cil|cpl";
@@ -1314,6 +1314,8 @@
     print QMQ " Processed in $elapsed_time secs); $findate\n";
     print QMQ "X-Spam-Status: $sa_comment\n" if ($sa_comment ne ""); 
     print QMQ "X-Spam-Level: $sa_level\n" if ($sa_comment ne "" && $sa_level ne "");
+    print QMQ "X-Spam-Yes: only_defined_if_spam_message\n" if ($sa_status == 1);
+
     if ( $descriptive_hdrs ) {
       print QMQ "${V_HEADER}-Mail-From: $returnpath via $hostname\n";
       print QMQ "${V_HEADER}-Rcpt-To: $recips\n" if ($descriptive_hdrs eq "2");
@@ -2380,8 +2382,8 @@
   my ($spamassassin_found,$spamassassin_status);
   my ($start_spamassassin_time)=[gettimeofday];
   my ($sa_tag,$DD,$stop_spamassassin_time,$spamassassin_time,$cmdline_recip,$sa_fast);
-  my ($sa_status)=0;
   my ($sa_score)=0; my ($sa_max)=0;
+  $sa_status=0;
 
   if ($msg_size > 250000) {
     &debug("spamassassin: message too big - skip it");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.