Re: [Exim] Router Condition problem

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: support
Dátum:  
Címzett: exim-users
CC: 
Tárgy: Re: [Exim] Router Condition problem

John,

Thanks for the shot, but still no go.

I dont think the problem is in the statement, but something I'm expecting to work
doesnt.

condition = ${if !=={$localhost_number}{3} {yes}{no}}

This works great, it runs when the localhost_number doesnt equal 3.

condition = ${if !{def:header_X-GForce-Host:} {yes}{no}}

Does not work.  I never define the header X-GForce-Host (this was going to be added
after the message was sent, but I have not done this yet) but the router does not
run.

Any ideas? :)

- Matt



---- Original Message ----
From:        John R. Shearer
Date:        Mon 6/16/03 21:11
To:        support@???, exim-users@???
Subject:    Re: [Exim] Router Condition problem

Matt:

Give this a shot...

  condition = "${if and { \
    {!def:header_X-GForce-Host:} \
    {!eq {$ localhost_number}{3}} \
  } {yes}{no} }"

...and let us know if it works.  - John R. S.


> From: support@???
> Reply-To: support@???
> Date: Mon, 16 Jun 2003 16:32:44 -0700
> To: exim-users@???
> Subject: [Exim] Router Condition problem
>
>
> List,
>
> Im trying to get a conditional router to work in exim 4 with the condition:
> condition = ${if and {\
> {if !=={$localhost_number}{3} {yes}{no}}\
> {if !{def:header_X-GForce-Host:} {yes}{no}}\
> }} {yes}{no}}
>
> basically I want to make sure that the X-GForce-Host header is not set and
> localhost_number is not equal to 3...
>
> But somewhere my logic or code is wrong. Any hints would be appreciated :)
>
> Thanks,
>
> Matt
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
> details at http://www.exim.org/ ##
>
>