* Michael Ludwig <listuser@???> [20031031 15:23]: wrote:
>
> Hi,
>
> I have trouble getting an lsearch lookup to work.
> I tried hard, but I absolutely can't get it to work.
> I must be wrong at some point, but I don't know where.
> Why doesn't the lookup succeed?
> In the 4.20 spec pdf I read 10.13 on address lists to do a complete address lookup.
> I also read section 11.6 on focusing the differences between
> "eq" and "match" while when using match everything returns true.
> That should be right I think.
>
> In a router condition, I made the following statement:
>
> ==========================================
> /etc/exim/exim.conf
> ==========================================
> begin routers
>
> outgoing_smtp_router_dnslookup_without_disclaimer:
> driver = dnslookup
> domains = ! +local_domains
> condition = ${if eq {$sender_address}{${lookup \
> {$sender_address}lsearch \
> {/etc/exim/senders_without_disclaimer}}} \
> {ye}{no}}
> transport = smtp_dnslookup_without_disclaimer
> ==========================================
You condition can be written simply as
condition = ${lookup {$sender_address} lsearch{/etc/exim/senders_without_disclaimer}{yes}{no}}
I am assuming that all you want is a situation where this router should
be run only if the sender address is matched.
Just my $0.02 cents
cheers
- wash
+----------------------------------+-----------------------------------------+
Odhiambo Washington . WANANCHI ONLINE LTD (Nairobi, KE) |
<wash at wananchi dot com> . 1ere Etage, Loita Hse, Loita St., |
GSM: (+254) 722 743 223 . # 10286, 00100 NAIROBI |
GSM: (+254) 733 744 121 . (+254) 020 313 985 - 9 |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"
--from a /. post