Re: Check language of mail inside a rule

2014-04-16 Thread Toni Schornböck
Hi. Thank you, that was exactly what I was looking for. I checked for X-Spam-Languages in my prior test. kind regards m...@shambhu.info schrieb am 16. April 2014 um 13:13 +0200: >Hi Toni, > >you can check the language with a simple header rule like this: > > header LANGUAGE_TH X-Languages =~

Re: Check language of mail inside a rule

2014-04-16 Thread Christian Laußat
Hi Toni, you can check the language with a simple header rule like this: header LANGUAGE_TH X-Languages =~ /th/ describe LANGUAGE_TH Thai language scoreLANGUAGE_TH 5.7 Regards Christian Laußat Am 16.04.2014 13:00, schrieb Toni Schornböck: Hi. Thank your for your response, but how

Re: Check language of mail inside a rule

2014-04-16 Thread Toni Schornböck
Hi. Thank your for your response, but how do I check message metadata inside a rule? Do I have to write a plugin for this or is it possible to check the metadata inside a normal rule? Thank you. m...@shambhu.info schrieb am 16. April 2014 um 12:26 +0200: >Hi Toni, > >try to check the X-Languages

Re: Check language of mail inside a rule

2014-04-16 Thread Christian Laußat
Hi Toni, try to check the X-Languages pseudo header instead of X-Spam-Languages. As described in perldoc Mail::SpamAssassin::Plugin::TextCat: It will always add the results to a "X-Language" name-value pair in the message metadata data structure. This may be useful as Bayes tokens and ca

Check language of mail inside a rule

2014-04-16 Thread Toni Schornböck
Hi. I am using Spamassassin 3.3.1 (latest CentOS release) and Amavis 2.8 (also latest CentOS release). I am using TextCat to add headers to our mails to see which language they are. This works fine. But now I want to write a SA rule to match a certain language. I tried to check for the X-Spam-Lan