Fix regex substring capture variables for null matches (again). Bug 2933
[exim.git] / test / aux-var-src / 0383.F
index be69ca2c29f076d2eaaaa76ad19f72f901679752..59dd0666a0f2889a0eee25bba488d2f7fe75ad8e 100644 (file)
@@ -3,7 +3,7 @@
 if error_message then finish endif
 
 if foranyaddress $h_to: ($thisaddress matches "^(alice)") then
-  pipe "DIR/aux-fixed/showenv \"${if match_address {$thisaddress}{alice@test.ex}{$value}}\" $1"
+  pipe "DIR/aux-fixed/showenv \"${if match_address {$thisaddress}{alice@test.ex}{$value}}\" \"${if inlist {$1}{alice} {$value}}\""
   finish
 endif   
 
@@ -13,6 +13,6 @@ if foranyaddress $h_to: ($thisaddress matches "^(marny)") then
 endif   
 
 if $h_to: matches "^(j..)" then
-  pipe "DIR/aux-fixed/showenv $1"
+  pipe "DIR/aux-fixed/showenv \"${if inlist {$1}{jab} {$value}}\""
 endif