[Mimedefang] Why wont this work

Rob MacGregor rob_macgregor at hotmail.com
Mon Jul 28 02:03:00 EDT 2003

>From: "Dave Buchanan" <dave at tdjsystems.net>
>I am attempting to subject tag ingound mail according to the spam
>assassin score .
>Anything greater than 11 I want tagged as "SPAM" less than 11 as
>"probable spam"
>I have modded the mimedefang filter like this ...
># We add a header which looks like this:
># X-Spam-Score: 6.8 (******) NAME_OF_TEST,NAME_OF_TEST
># The number of asterisks in parens is the integer part
># of the spam score clamped to a maximum of 40.
># MUA filters can easily be written to trigger on a
># minimum number of asterisks...
>action_change_header("X-Spam-Score", "$hits ($score) $names");
>if ($hits > 11) {
>action_change_header("Subject", "** SPAM ** $Subject");
>} else {
>action_change_header("Subject", "** Probable SPAM ** $Subject");
># If you find the SA report useful, add it, I guess...
>action_add_part($entity, "text/plain", "-suggest",
>"SpamAssassinReport.txt", "inline");
>} else {
># Delete any existing X-Spam-Score header?
>The filter fails with this ...

But what's the error?  How does it fail?

  Please DO NOT send me ANY email directly unless it's a privacy issue.
       Reply-to mangled to assist those who don't read the above.
Rob  |  What part of "no" was it you didn't understand?

Express yourself with cool emoticons - download MSN Messenger today! 

More information about the MIMEDefang mailing list