You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Justin Mason <jm...@jmason.org> on 2005/10/04 19:05:47 UTC

Re: Scoring specific languages up/down

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


=?iso-8859-1?Q?J=F8rn-Morten_Innselset?= writes:
>Is it in any way possible to add a specific score to a message identified by 
>TextCat to be in a certain language? Spam with Norwegian content are few and 
>far between, and I would like to assign a hefty negative score to "domestic" 
>e-mails.
>
>(I've tried adding
>
>add_header all Languages _LANGUAGES_
>
>and then checking for the existence of this header with the appropriate 
>language code, but that didn't seem to work)

The TextCat plugin (in 3.1.0 at least) sets a metadatum called
"X-Languages", which rules can match against as if it were a normal
header:

    header MY_LANG      X-Languages =~ /\bga\b/

- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Exmh CVS

iD8DBQFDQrZrMJF5cimLx9ARAmdcAJ45y52CzrR36V0V0epP5vCKRD6EJACbBBkY
QWgmnYBu17P6Ybvb6NWZe8I=
=NlDj
-----END PGP SIGNATURE-----