Re: [exim] Bug in exim 4.67 string expansion parser?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Magnus Holmgren
Datum:  
To: exim-users
Betreff: Re: [exim] Bug in exim 4.67 string expansion parser?
On Tuesday 24 July 2007 19:39, Thomas Jacob wrote:
> The following ACL clause causes an error
>
> accept condition = ${if and { {!def:h_STUFF} \
>          {eq {$h_From:} {hq@???}} } {true}{false} }

>
>
> "temporarily rejected after DATA: failed to expand ACL string "${if and
> {{!def:h_STUFF} {eq {$h_From:} {hq@???}}} {true}{false}}":
> missing } at end of condition inside "and" group"


A header name has to be terminated with a colon, even together with the def
operator.

> but using two (equivalent?) condition clauses works
>
>   accept   condition = ${if !def:h_STUFF {true}{false}}
>            condition = ${if eq {$h_From:} {hq@???} {true}{false}}


... or whitespace, like here.

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)


"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans