On Tue, 2008-11-11 at 09:59 -0600, Matt wrote:
> I appear to have TextCat on my server:
> locate TextCat
> /usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin/Plugin/TextCat.pm
> /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Plugin/TextCat.pm
> /usr/share/man/man3/Mail::SpamAssassin::Plugin::TextCat.3pm.gz
> /usr/share/man/man3/Mail::SpamAssassin::Plugin::TextCat.3pm
> I think I have it enabled in local.conf:

There is no such file. Or rather, if there is, it isn't being used.
Anyway, this should better go inside a .pre file like, say, v310.pre.
You can un-comment it there.

> loadplugin Mail::SpamAssassin::Plugin::TextCat
> Why does it not add any headers to messages indicating language? Any
> idea what I am doing wrong?

You didn't read the docs.

If you want headers indicating the language, you need to specifically
enable this using add_header. Oh, and it won't score either, unless you
actually define *your* wanted languages other than the default "all".


char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a \x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}