I need to delete spam system-wide with an SA score over a certain value.
Does this mod to sub spamassassin look like it will work without any terrible hidden 
gotcha's?

TIA
-->Russ

  if ($sa_status == 0) {
    if ($sa_max == 0) {
      $tag_score .= "SA:?($sa_score/$sa_max):";
    } else {
      $tag_score .= "SA:0($sa_score/$sa_max):";
      $sa_comment = "No, hits=$sa_score required=$sa_max" if ($spamc_options =~ /\-c/);
    }
  } else {
    $tag_score .= "SA:1($sa_score/$sa_max):";
    $sa_comment = "Yes, hits=$sa_score required=$sa_max" if ($spamc_options =~ /\-c/);

add-->    if $sa_score > $sa_max+25 {rm -f $scandir/$wmaildir/new/$file_id}

    &debug("SA: yup, this smells like SPAM");
  }



-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to