Re: [exim] Lookup IP in foreign file format

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: Jakob Hirsch
CC: exim-users
Subject: Re: [exim] Lookup IP in foreign file format
On Wed, 27 Jul 2005, Jakob Hirsch wrote:

> Tony Finch wrote:
>
> > Try ${lookup {1 $sender_host_address} lsearch {FILE} }
>
> won't work, Exim treats <space> as separator betweeen key and data.


I think the file format's fundamentally incompatible then. I suppose you
could use ${readfile and ${match but that's rather gross.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}