Re: [exim] Re: query-style lookup for text files

Inizio della pagina
Delete this message
Reply to this message
Autore: Marc Haber
Data:  
To: exim-users
CC: Marc Haber
Oggetto: Re: [exim] Re: query-style lookup for text files
On Mon, 3 Oct 2005 10:11:54 +0100 (BST), Philip Hazel
<ph10@???> wrote:
>I think I am missing your point. :-) What kind of queries would you want
>to apply to a flat text file? We already have wildlsearch. Ah, I think I
>see. Wildlsearch has the wildness in the file. You want it to be in the
>query. Is that right? Something like "apply this regex to each line in
>the file until it matches, and then set $1, $2, etc in the 'found'
>expansion"? Is that it? The natural syntax for that would be
>
> ${lookup regex{/some/file regex}{found-string}{not-found-string}}


Yes, that sounds nice. Would prefer an exim string expansion (which
could be a regexp), but a regexp directly is fine as well.

>I'll put this on the Wish List.


Thanks.

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber         |   " Questions are the         | Mailadresse im Header
Mannheim, Germany  |     Beginning of Wisdom "     | http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834