[Mimedefang] MD w/SpamAssassin: body/subject not rewritten
David F. Skoll
dfs at roaringpenguin.com
Sun Sep 29 00:26:01 EDT 2002
On Sat, 28 Sep 2002, Jeff Powell wrote:
> I am using MIMEDefang 2.21 and SpamAssassin 2.41. Spam gets correctly
> tagged as such, but the SA report is not included in the body of the
> message. It appears as an attachment instead.
This should be in an FAQ:
MIMEDefang uses SpamAssassin _only_ to detect spam. It does _not_ allow
SpamAssassin to alter the message. If you want to alter the message,
you have to do it yourself in the filter. Changing the SpamAssassin
config file will _not_ work.
To rewrite the subject and add X-Spam-Status:
if ($hits >= $req) {
action_change_header("Subject", "***SPAM*** $Subject");
action_change_header("X-Spam-Status", "Yes");
} else {
action_change_header("X-Spam-Status", "No");
}
--
David.
More information about the MIMEDefang
mailing list