Clayton Cottingham wrote:
hi all
trying to figure a way to filter out, or better yet score charset koi8-r
down some
ok_locales and ok_languages do not work as expected
inactive_languages is a no go as well
any help appreciated
thanks
Here's my custom rule for detecting undesirable charsets in the Subject
field:
header LOCAL_CHARSET_SUBJECT Subject:raw =~
/\=\?(koi8-r|windows-1251|iso-2022-jp|gb2312)\?/i
score LOCAL_CHARSET_SUBJECT 3
describe LOCAL_CHARSET_SUBJECT Contains charsets we don't accept
It hits on about 14% spam for me at present. Adapt to suit the languages
you want to score against. I also wrote a similar rule for rawbody but
it hits on far less.