return FAIL;
name += 2;
+ while (isspace(*assignment)) assignment++;
+
if (!(val = expand_string(US assignment)))
if (f.expand_string_forcedfail)
{
}
node->data.ptr = US val;
DEBUG(D_route) debug_printf("set r_%s = '%s'\n", name, val);
+
+ /* All expansions after this point need visibility of that variable */
+ router_var = *root;
}
return OK;
}
driver = redirect
debug_print = DEBUG: $r_r1 $r_r2
data = b
- set = <; r_r1 = $local_part aaa:bbb bar=baz
+ set = <; r_r1 = <$local_part> aaa:bbb bar=baz
+ set = r_local = check
+ errors_to = bad_$r_local
user:
driver = accept
file = DIR/test-mail/$local_part
user = CALLER
debug_print = DEBUG: $r_r1 $r_r2
- headers_add = X-r1: $r_r1\nX-r2: $r_r2
+ headers_add = X-r1: <$r_r1>\nX-r2: <$r_r2>
# End
-From CALLER@test.ex Tue Mar 02 09:44:33 1999
+From bad_check@test.ex Tue Mar 02 09:44:33 1999
Envelope-to: a@test.ex
Received: from CALLER by the.local.host.name with local (Exim x.yz)
(envelope-from <CALLER@test.ex>)
Message-Id: <E10HmaX-0005vi-00@the.local.host.name>
From: CALLER_NAME <CALLER@test.ex>
Date: Tue, 2 Mar 1999 09:44:33 +0000
-X-r1: b
-X-r2: b 2a00:1940:100::ff:0:1 foo=bar
+X-r1: <b>
+X-r2: <b 2a00:1940:100::ff:0:1 foo=bar>