On Thu, 2008-01-31 at 13:30 +1000, David Hobley wrote: > I have a very bizarre issue here - we use Zimbra and its' built in > SpamAssassin to manage our Spam - we get a lot of Japanese emails in, > so I have configured > > ok_languages en jp
http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Plugin_TextCat.html > ok_locales en jp http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Conf.html#language_options > in local.cf. I have also edited v310pre.in to enable TextCat. > SpamAssassin has then been restarted. > > However, our Japanese emails are still being triggered with > UNWANTED_MESSAGE_BODY and CHARSET_FARAWAY_HEADER. Here is an example > which given the tagging of iso-2022-jp should not be triggering these > rules (as I understand it): > I assume I have stuffed something up, can anyone point me in the right > direction please. Sure. RTFM. :) It's 'ja' in both cases. guenther -- char *t="[EMAIL PROTECTED]"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}