]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-var-expand: Remove notion of nested ifs
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 30 Dec 2025 10:31:42 +0000 (12:31 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 23 Jan 2026 18:08:47 +0000 (18:08 +0000)
src/lib-var-expand/test-var-expand.c

index 77e575220187282f73186794d1df7191e853e8f5..b2292f8d1f0843a27df7cdb7ad9e3e75fbbb733a 100644 (file)
@@ -380,8 +380,6 @@ static void test_var_expand_if(void)
                { .in = "%{one | if('eq', one, one, two)}", .out = "1", .ret = 0 },
                { .in = "%{one | if('gt', two, one, two)}", .out = "2", .ret = 0 },
                { .in = "%{evil1 | if('eq', ';\\', \\':', evil2, 'no')}", .out = ";test;", .ret = 0 },
-               /* FIXME: add inner if support? */
-/*             { "%{if;%{if;%{one};eq;1;1;0};eq;%{if;%{two};eq;2;2;3};yes;no}", "no", 1 }, */
                /* Errors */
                { .in = "%{if('gt', two, one, two)}", .out = "if: Missing parameters", .ret = -1 },
                { .in = "%{if(1, '', 1, 'yes', 'no')}", .out = "if: Unsupported comparator ''", .ret = -1 },