[Exim] Setting address_data to be used in condition

Top Page
Delete this message
Reply to this message
Author: Marc Haber
Date:  
To: exim-users
Subject: [Exim] Setting address_data to be used in condition
Hi,

I would like to use something like this:

some_router:
address_data = "${extract{3}{:}{${lookup passwd{$local_part}}}}"
condition = ${if <{$address_data}{1000}{1}{0}}

This is a little abbreviated since the condition is more complex
actually.

However, this doesn't work because $address_data is only set _after_
the preconditions have been satisfied.

I had to resort to

some_router_prepare:
address_data = "${extract{3}{:}{${lookup passwd{$local_part}}}}"
driver = redirect
data = ":blackhole:"
unseen = yes

some_router:
condition = ${if <{$address_data}{1000}{1}{0}}

I find this ugly. Is there any way to set address_data in the same
router, or to have a driverless router instead of having to do an
unseen redirect to :blackhole:?

Greetings
Marc

--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29