[exim-dev] [Bug 1745] redis expansions taking arbitrary para…

Pàgina inicial
Delete this message
Reply to this message
Autor: admin
Data:  
A: exim-dev
Assumpte: [exim-dev] [Bug 1745] redis expansions taking arbitrary parameters
https://bugs.exim.org/show_bug.cgi?id=1745

Jasen Betts <jasen@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jasen@???


--- Comment #3 from Jasen Betts <jasen@???> ---
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.