Re: [exim] Regexp match on a header

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Chris Siebenmann
Ημερομηνία:  
Προς: exim-users
Υ/ο: cks
Αντικείμενο: Re: [exim] Regexp match on a header
> And this was the result:
>
> temporarily rejected after DATA: failed to expand ACL string \
> "${if match {$bh_received:}{\N[[](\d+[.]\d+[.]\d+[.]\d+)[]]} $1 {}}": missing
> } at end of string
>
> The braces are balanced, so why is a closing one "missing"?


The braces are matched but the \N at the start of the regular expression
is not. The missing ending \N means that everything (including the
closing braces) is taken as part of the regular expression, so you
effectively have:

    "${if match {$bh_received:}{\N<opaque regex>"


and the string just ends on the parser without it seeing the necessary
closing }'s.

    - cks