Re: [exim] spam_score_int is not set even the mail is scanne…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Kirill Miazine
Datum:  
To: Peter
CC: exim-users
Betreff: Re: [exim] spam_score_int is not set even the mail is scanned
* Peter [2010-01-09 23:54]:
>
>Hello,
>
>thanks a lot Kirill, Heiko and Ted for your help. I got a little bit
>deeper. I don't want to scan the email in the ACL because I can't train the
>bayes-filter user-specific in ACL. In ACL I can only use a bayes-filter for
>one "system-wide" user.
>
>So I took Kirill's hint, that it's possible to read $spam_score_int
>directly from the mail-header after the mail was scanned. I was trying


I wasn't saying that. $spam_score_int will be set by the "new" spam
scanning during the SMTP session. You can't "read $spam_score_int" if
it wasn't set in the ACL.

But your spam scanner will add some headers and you can use those.

>-----
>condition = ${if >{$header_X-Spam-Score}{100}{1}{0}}
>-----
>
>in the ditch_spam-Router but I got an error "failed to expand condition".
>I was using that chapter of the specification
>
>http://www.exim.org/exim-html-3.30/doc/html/filter_33.html
>
>Does someone knows perhaps how to read the "Spam-score" out of the header
>of a mail in a router-condition?


What headers does your spam filter add? Does it add X-Spam-Score and
X-Spam-Score only contains an integer?

>Thanks again,
>Peter


-- 
     -- Kirill Miazine <km@???>