You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by ji...@jidanni.org on 2007/10/20 01:33:13 UTC

only blocking one kind of Chinese

Mail::SpamAssassin::Plugin::TextCat says
 zh   - Chinese (both Traditional and Simplified)
 zh.big5   - Chinese (Traditional only)
 zh.gb2312 - Chinese (Simplified only)

I want to block zh.gb2312. OK, I should use
ok_languages en zh.big5
but what about UTF-8 etc. zh messages? I don't want to block them, all
I want is to block zh.gb2312!
Of course there is no
"not_ok_languages zh.gb2312"

P.S., using
"add_header all Languages _LANGUAGES_"
shows that the man page doesn't tell the whole story. Often the
charset is appended even for non zh languages.

Re: only blocking one kind of Chinese

Posted by ji...@jidanni.org.
Using
ok_languages en zh.big5
add_header all Languages _LANGUAGES_
score UNWANTED_LANGUAGE_BODY 5

Gives
X-Spam-Languages: zh.big5
5.0 UNWANTED_LANGUAGE_BODY BODY: Message written in an undesired language
Anyway. http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5697