Re: [exim] Regexp match on a header

Pàgina inicial
Delete this message
Reply to this message
Autor: Heiko Schlittermann
Data:  
A: exim-users
Assumpte: Re: [exim] Regexp match on a header
Ian Zimmerman <itz@???> (Di 27 Dez 2016 05:22:33 CET):

>   warn
>         set acl_m_data_rip = ${if match {$bh_received:}{\N[[](\d+[.]\d+[.]\d+[.]\d+)[]]\N} $1 {}}

          set acl_m_data_rip = ${if match {$bh_received:}{\N[[](\d+[.]\d+[.]\d+[.]\d+)[]]\N}{$1}{}}



    ${if <condition> {<true>}}
    ${if <condition> {<true>}{<false>}}
    ${if <condition> {<true>}fail}


The {} are missing around $1 in your line.

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -