[Mimedefang] How to kill this spam?

alan premselaar alien at 12inch.com
Tue Nov 11 23:42:26 EST 2003


On 11/12/03 1:21 PM, "Ashley M. Kirchner" <ashley at pcraft.com> wrote:

> John Mason Jr. wrote:
> 
>> Can you add a rule to check for "=?" starting the subject line?
>>  
>> 
>   How's that achieved in the filter?
> 
> 
if you're merely going to check for "=?" starting the subject line, you're
probably better off just setting up a spamassassin rule for it and scoring
it.

in your /etc/mail/spamassassin/sa-mimedefang.cf file you'd put something
like this: 

header LOCAL_MIME_SUBJECT   Subject =~ /^=¥?.*/
score LOCAL_MIME_SUBJECT 0.5

(disclaimer: this is untested code, provided as-is, your mileage may vary,
use only unleaded fuel, score as appropriate for your needs)


HTH
alan



More information about the MIMEDefang mailing list