[Exim] problem with extract in system filter

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: David Saez
Fecha:  
Cc: exim-users
Asunto: [Exim] problem with extract in system filter
Hi !!

I'm trying to extract the score from the X-Spam-Score: header using:

if ${extract{1}{ }{$h_X-Spam-Score:}} is above 8
then
        headers add "New-Subject: [SPAM] $h_subject:"
        headers remove subject
        neaders add "Subject: $h_new-subject:"
        headers remove new-subject
endif


where X-Spam-Score: header is like:

    X-Spam-Score: 11.3 (+++++++++++)


but i get the error

2003-04-03 20:22:07 1919Lf-0007Xa-JR Error in system filter:
unrecognized condition word "}{$h_X-Spam-Score:}}" near line 3 of filter
file

if i enclose the space in double quotes i get a similar error, what
i'm doing wrong ?

--
Thanx & best regards ...

I'm a nobody, nobody is perfect, therefore I'm perfect.

----------------------------------------------------------------
   David Saez Padros                http://www.ols.es
   On-Line Services 2000 S.L.       e-mail  david@???
   Pintor Vayreda 1                 telf    +34 902 50 29 75
   08184 Palau-Solita i Plegamans   movil   +34 670 35 27 53
----------------------------------------------------------------