Re: [exim] lsearch vs IPv6

Etusivu
Poista viesti
Vastaa
Lähettäjä: Jasen Betts
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] lsearch vs IPv6
On 2015-04-13, Paul Warren <pdw@???> wrote:
> On 11/04/2015 14:20, Jeremy Harris wrote:
>> On 10/04/15 17:29, Paul Warren wrote:
>>> Anyway, this is fixable if you can figure out just the right combination
>>> of quotes and backslashes to actually get double quotes into the file:
>>>
>>>   continue = ${run{SHELL -c 'echo  \\\"$sender_host_address\\\"
>>>         >>$spool_directory/blocked_relay_ips; \

>>
>> You could change to using a DB lookup rather than an lsearch;
>> then the insert could be done without involving a shell, too.
>
> Yes, we did consider that, but it seems a bit heavy weight for a file
> that at any given time is likely to have at most one or two entries in
> it, and is effectively a single one column table.


if there's fewer than 10 entries a "dsearch" lookup may be a better
match to the task, but creating entries is still problematic -
you could use embedded perl I guess.

--
umop apisdn