https://bugs.exim.org/show_bug.cgi?id=1745

Jasen Betts <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Jasen Betts <[email protected]> ---
Because you asked nicely, I'll tell you that you're wrong.

The bad news is that it's actually worse:
Redis lookups can call stored Lua code (via EVALSHA) which takes any number of
parameters.

perhaps the exim redis lookup syntax could be re-done like this 

 ${lookup redisb{<CONN_LIST>{arg1}{arg2}...{argn}}}

where <CONN_LIST> the oprional list of connection definition strings
eg:

    ${lookup redisb{{set}{the greeting}{hello world!}}}

    ${lookup redisb{{evalsha}{SHACODE}{2}{arg1}{arg 2}{arg 3}}}}

fortunately the printf-like interface is not the only way to handle arbitrary
strings, there's an argv form too.

void *redisCommandArgv(redisContext *c, int argc, const char **argv, const
size_t *argvlen);

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim 
details at http://www.exim.org/ ##

Reply via email to