Discussion:
[SA-exim] Refering SARunCond
Erwin Ambrosch|XHOSTPLUS
2007-05-01 09:46:28 UTC
Permalink
Hi all,

is it possible to refer SARunCond. I would need something like this:

SARunCond: ${if and { {!eq {$sender_address_domain}{${lookup pgsql {SELECT DISTINCT email_domain FROM xhost_email_domain WHERE email_domain='$sender_address_domain'}}}} } {1}{0}}

SARunCond: ${if and { {eq {$SARunCond}{0}} {eq {$sender_host_address}{192.168.1.1}} } {1}{0}}


Thanks in Advance
Erwin
Marc MERLIN
2007-05-03 00:47:44 UTC
Permalink
Post by Erwin Ambrosch|XHOSTPLUS
Hi all,
SARunCond: ${if and { {!eq {$sender_address_domain}{${lookup pgsql {SELECT DISTINCT email_domain FROM xhost_email_domain WHERE email_domain='$sender_address_domain'}}}} } {1}{0}}
SARunCond: ${if and { {eq {$SARunCond}{0}} {eq {$sender_host_address}{192.168.1.1}} } {1}{0}}
No, that won't work sorry, SARunCond is not a variable visible from the
exim interpreter.
You have to run everything from one line.

Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/
Loading...