Mark Smith <[EMAIL PROTECTED]> wrote:
> Can someone show me how to perform an lsearch lookup for a string containing
> whitespace? For example, to look up the string "Test String".
[...]

Hello,
I do not think it is possible, quoting
<http://www.exim.org/exim-html-4.50/doc/html/spec_9.html#CHAP9>:
| lsearch: The given file is a text file that is searched linearly for a
| line beginning with the search key, terminated by a colon or white
| space or the end of the line.

So having this in the lookup file:
white space: value

would have the effect that you could lsearch for "white" and get
"space: value" but *not* to lsearch for "white space" and get "value".
            cu andreas

echo "white space: value" > /tmp/lookup
/usr/sbin/exim -be '${lookup{white}lsearch{/tmp/lookup}}'
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
                                           http://downhill.aus.cc/


-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to