You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Sander Holthaus <in...@orangexl.com> on 2007/01/18 01:59:47 UTC

Rule to check a specific language

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
I'm interested in making rule that adds a small negative score to
email in my native language, dutch. Since I receive very little spam
in dutch (apart from the occassional bulk business offer which is not
considered spam in the Netherlands), seems a good idea, since some
peculiar formatted legitimate dutch mails score close to the threshold.

But how do I do this for just one specific language? I use the TextCat
Plugin for ok_languages, I know SpamAssassin puts the information
 in _LANGUAGES_, so I want a rule that checks  if
_LANGUAGES_ eq 'nl' (bit silly to use /^nl$/). But I can't seem to
find anywhere how to put that in a rule,
since they all check aganiast things like header, body, full, etc.

Kind Regards,
Sander Holthaus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
 
iD8DBQFFrsaDVf373DysOTURAgNeAKDt2NOS4KEr0Nje8QkEcuZKwg/PVgCZAdLi
x1nRzOqyR1f8uFmhGgu4XwM=
=fYOR
-----END PGP SIGNATURE-----


Re: Rule to check a specific language

Posted by Sander Holthaus <in...@orangexl.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Sander Holthaus wrote:
> Theo Van Dinter wrote:
>> On Thu, Jan 18, 2007 at 01:59:47AM +0100, Sander Holthaus wrote:
>>> But how do I do this for just one specific language? I use the
>>> TextCat
>> ok_languages nl
>
>>> in _LANGUAGES_, so I want a rule that checks  if _LANGUAGES_ eq
>>>  'nl' (bit silly to use /^nl$/). But I can't seem to find
>>> anywhere how to put that in a rule, since they all check
>>> aganiast things like header, body, full, etc.
>> perldoc Mail::SpamAssassin::Plugin::TextCat
>
>> :)
> Perhaps I wasn't entirely clear or I missed something, sorry. I
> already have ok_languages in local.cf , but for a much larger set
> of languages. I want to make nl a special case, so that I have nl,
> other ok_languages and the rest (unwanted ones). I already checked
> the docs and had a glimp at the TextCat source, but I don't see how
> I could do this without making a rule that would check _LANGUAGES_
> against either 'nl' or /^nl/ .
>
> I've looked at these:
>
> http://wiki.apache.org/spamassassin/WritingRules
> http://spamassassin.apache.org/full/3.1.x/doc/Mail_SpamAssassin_Plugin_TextCat.html
> 
> http://spamassassin.apache.org/full/3.1.x/doc/Mail_SpamAssassin_Message_Metadata.html
>
>
>
> but I can't put them together into something that works...
>
> Kind Regards, Sander Holthaus
Sorry to bump my own question, but I'm still keen on learning wheter
or not such a rule is possible and how...

Kind Regards,
Sander Holthaus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
 
iD8DBQFFskEKVf373DysOTURAnkNAKCr10WBg8G1BTgC537yRFFYiRXbygCgwgea
9a8m0ZwAHJQS6hf8uGkl4Eo=
=k8xP
-----END PGP SIGNATURE-----


Re: Rule to check a specific language

Posted by Sander Holthaus <in...@orangexl.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Theo Van Dinter wrote:
> On Thu, Jan 18, 2007 at 01:59:47AM +0100, Sander Holthaus wrote:
>> But how do I do this for just one specific language? I use the
>> TextCat
>
> ok_languages nl
>
>> in _LANGUAGES_, so I want a rule that checks  if _LANGUAGES_ eq
>> 'nl' (bit silly to use /^nl$/). But I can't seem to find anywhere
>> how to put that in a rule, since they all check aganiast things
>> like header, body, full, etc.
>
> perldoc Mail::SpamAssassin::Plugin::TextCat
>
> :)
Perhaps I wasn't entirely clear or I missed something, sorry. I
already have ok_languages in local, but for a much larger set of
languages. I want to make nl a special case, so that I have nl, other
ok_languages and the rest (unwanted ones). I already checked the docs
and had a glimp at the TextCat source, but I don't see how I could do
this without making a rule that would check _LANGUAGES_ against either
'nl' or /^nl/ .

I've looked at these:

http://wiki.apache.org/spamassassin/WritingRules
http://spamassassin.apache.org/full/3.1.x/doc/Mail_SpamAssassin_Plugin_TextCat.html
http://spamassassin.apache.org/full/3.1.x/doc/Mail_SpamAssassin_Message_Metadata.html


but I can't them together...

Kind Regards,
Sander Holthaus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
 
iD8DBQFFruBfVf373DysOTURApYbAKDXcmD4R5BzHfPsouuMDLUAuzPEsgCg5xW1
uU4U+2S/O3HjBUZWdKvCnLY=
=G99l
-----END PGP SIGNATURE-----


Re: Rule to check a specific language

Posted by Theo Van Dinter <fe...@apache.org>.
On Thu, Jan 18, 2007 at 01:59:47AM +0100, Sander Holthaus wrote:
> But how do I do this for just one specific language? I use the TextCat

ok_languages nl

>  in _LANGUAGES_, so I want a rule that checks  if
> _LANGUAGES_ eq 'nl' (bit silly to use /^nl$/). But I can't seem to
> find anywhere how to put that in a rule,
> since they all check aganiast things like header, body, full, etc.

perldoc Mail::SpamAssassin::Plugin::TextCat

:)

-- 
Randomly Selected Tagline:
"I cannot have an aide who will not look up. You will be forever walking
 into things."                                 - Dukhat on Babylon 5