Re: [exim] Check for a particular header in exim router

Góra strony
Delete this message
Reply to this message
Autor: Drav Sloan
Data:  
Dla: soumya tr
CC: exim-users
Temat: Re: [exim] Check for a particular header in exim router
soumya tr wrote:
> Hi,
>
> Is it possible to compare for a particular strings in header:
>
> Something like the one given below:
>
> -----------------
> mycustom_route:
>     driver = dnslookup
>     condition = "Check if the email header contains the string
> "X-Mail-Forwarder"            --- Not sure how to achieve this
>     ignore_target_hosts = +loopback : 64.94.110.0/24
>     headers_add = "${perl{mailtrapheaders}}"
>     transport = remote_smtp
> -----------------

>
> Please let me know if any queries.


http://www.exim.org/exim-html-current/doc/html/spec_html/ch-string_expansions.html

def:<variable name>

    The def condition must be followed by the name of one of the expansion
    variables defined in section 11.9. The condition is true if the
    variable does not contain the empty string. For example:


    ${if def:sender_ident {from $sender_ident}}


Regards

D.