[TriLUG] Spamassassin to filter non-US

John Broome john at jbroome.org
Wed Oct 1 12:49:35 EDT 2008


n Wed, Oct 1, 2008 at 11:08 AM, Christopher L Merrill
<chris at webperformance.com> wrote:
> I'd like something similar - mark any mail with cyrillic or asian
> characters as spam.

>From my .procmailrc:

UNREADABLE='[^?"]*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601-1987'

[snip]

:0:
* 1^0 $ ^Subject:.*=\?($UNREADABLE)
* 1^0 $ ^Content-Type:.*charset="?($UNREADABLE)
.Spam/

:0:
* ^Content-Type:.*multipart
* B ?? $ ^Content-Type:.*^?.*charset="?($UNREADABLE)
.Spam/



More information about the TriLUG mailing list