[exim] Result repeated and contains a newline character ?

Pàgina inicial
Delete this message
Reply to this message
Autor: jaco engelbrecht
Data:  
A: exim-users
Assumpte: [exim] Result repeated and contains a newline character ?
Hi,

I am trying to figure out why my result is 1) being repeated and 2)
contains a newline character?

08:52:54 31741 --------> virus_notify_instant_nospam router <--------
08:52:54 31741 local_part=bje domain=serendipity.org.za
08:52:54 31741 checking "condition"
08:52:54 31741 expanding: $header_X-Trend:
08:52:54 31741    result:
08:52:54 31741 expanding: clean
08:52:54 31741    result: clean
08:52:54 31741 expanding: $header_X-ClamAV:
08:52:54 31741    result: clean
08:52:54 31741 clean
08:52:54 31741 skipping: result is not used
08:52:54 31741 expanding: clean
08:52:54 31741    result: clean
08:52:54 31741 skipping: result is not used
08:52:54 31741 expanding: $header_X-Spammark:
08:52:54 31741    result: 0.00
08:52:54 31741 0.00
08:52:54 31741 expanding: \N(\d+)\.(\d+)\N
08:52:54 31741    result: (\d+)\.(\d+)
08:52:54 31741 expanding: \$1
08:52:54 31741    result: $1
08:52:54 31741 expanding: $1
08:52:54 31741    result: 0
08:52:54 31741 expanding: $1
08:52:54 31741    result: 0
08:52:54 31741 expanding: ${sg{$header_X-Spammark:}{\N(\d+)\.(\d+)\N} 
{\$1}}
08:52:54 31741    result: 0
08:52:54 31741 0
08:52:54 31741 failed to expand: ${if and {{ or { { !eq {$header_X- 
Trend:}{clean} }{ !eq {$header_X-ClamAV:}{clean} }}}{< {${sg 
{$header_X-Spammark:}{\N(\d+)\.(\d+)\N}
{\$1}}} {$acl_m4} } {match{${extract{1}{\:}{$acl_m3}}}{vINS}}}}
08:52:54 31741    error message: "0
08:52:54 31741 0" is not a number inside "and{...}" condition
08:52:54 31741 LOG: MAIN PANIC


Surely the result should just be "0", not "0\n0"? What am I doing
wrong?

My condition in my exim configure file:

    2004   condition             = ${if and {\
    2005                                                     { or  
{ { !eq {$header_X-Trend:}{clean} }\
    2006                                                               
{ !eq {$header_X-ClamAV:}{clean} }\
    2007                                                            }\
    2008                                                     }\
    2009                                                     {< {${sg 
{$header_X-Spammark:}{\N(\d+)\.(\d+)\N}{\$1}}}  
{$ACL_SPAMMARK_THRESH} } \
    2010                                                     {match{$ 
{extract{1}{\:}{$ACL_SPAMMARK_FLAGS}}}{vINS}}\
    2011                                                   }\
    2012                                       }


Can anyone also please confirm if it's normal to print the result and
a newline when testing with "-be"?

# exim -be < bar
> 100
>

# cat bar
${sg{100.00}{\N(\d+)\.(\d+)\N}{\$1}}

regards,
Jaco