[Mimedefang] Did I ask my question wrong?
Kevin A. McGrail
kmcgrail at pccc.com
Mon Oct 13 09:11:56 EDT 2003
Smitty,
You could do the following:
In filter end, change the subject of the email by modifying the loop for if
($hits >= $req) { and adding:
action_change_header("Subject", "*****SPAM***** $Subject");
Then in your user home dir for the user getting the email, create a
.procmailrc file that says:
:0:
* ^Subject: \*\*\*\*\*SPAM\*\*\*\*\*
SPAM
That will solve your immediate problem as I don't know how you redirect the
email. It might be simple but I imagine it requires stream_by_recipient.
You can alternately add a header like:
# X-Spam-Level: *
# SpamAssassin can show up to 100 *'s
my ($score);
if ($hits < 100) {
$score = "*" x int($hits);
} else {
$score = "*" x 100;
}
my ($extra);
unless ($score) {
$score = " ";
}
action_change_header("X-Spam-Level", "$score");
and then sort in procmail based on the number of *'s in X-Spam-Level.
Regards,
KAM
> I thought from reading the documentation that the configuration of
> having the suspected spam delivered to an alternative mailbox was a
> common configuration. I figured that for what ever reason I was just not
> getting it. I have searched on the Internet for a configuration that has
> this setup to know avail. I tried the code snippet from the FAQ and no
> go (maybe I am putting it in the wrong place. All I want to do is have
> the email that scores over the threshold not to delivered to the
> recipient but instead to a spambox. Can someone please help me out on
> this? It's frustrating as the 37 spam emails I got just today were all
> identified correctly BUT still delivered. Maybe I am missing something
> as I don't see the logic of reaffirming that it is in fact spam if your
> not going to do anything with it. My setup again for the record is
> Solaris 9, Sendmail 8.12.10, SpamAssassin 2.60 and MimeDefang 2.37.
>
> I don't usually do mailing list so maybe I am breaking some code or
> something in the way I am asking my question, just let me know and I'll
More information about the MIMEDefang
mailing list