Testsuite: tidying
authorJeremy Harris <jgh146exb@wizmail.org>
Sun, 25 Apr 2021 16:24:31 +0000 (17:24 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Sun, 25 Apr 2021 20:45:02 +0000 (21:45 +0100)
34 files changed:
src/src/acl.c
src/src/expand.c
test/aux-fixed/0297.Filter
test/confs/0027
test/confs/0084
test/confs/0107
test/confs/0131
test/confs/0153
test/confs/0212
test/confs/0226
test/confs/0237
test/confs/0243
test/confs/0251
test/confs/0266
test/confs/0270
test/confs/0297
test/confs/0306
test/confs/0307
test/confs/0380
test/confs/0452
test/confs/0506
test/confs/0533
test/confs/0576
test/confs/5001
test/log/0226
test/log/0237
test/mail/0226.CALLER
test/mail/0237.CALLER
test/scripts/0000-Basic/0226
test/scripts/0000-Basic/0237
test/scripts/0000-Basic/0452
test/stderr/0084
test/stderr/0297
test/stderr/0380

index ce8d2189f2331a39d2b376d40b9bdc6697cf669d..a6c3d4cbed79dea447a648bf700f36652ca317dd 100644 (file)
@@ -4106,7 +4106,7 @@ if (is_tainted(acl_text) && !f.running_in_test_harness)
   *log_msgptr = US"internal configuration error";
   return ERROR;
   }
-#endi
+#endif
 
 /* Handle the case of a string that does not contain any spaces. Look for a
 named ACL among those read from the configuration, or a previously read file.
index 8a571b2d905c6ed4bdf6a35c4a8ef6b8aa2a9a4b..bce3356298ba0174c3c7fd9ec50a044eddd464eb 100644 (file)
@@ -216,7 +216,6 @@ static uschar *op_table_main[] = {
   US"base62d",
   US"base64",
   US"base64d",
-  US"bless",
   US"domain",
   US"escape",
   US"escape8bit",
@@ -264,7 +263,6 @@ enum {
   EOP_BASE62D,
   EOP_BASE64,
   EOP_BASE64D,
-  EOP_BLESS,
   EOP_DOMAIN,
   EOP_ESCAPE,
   EOP_ESCAPE8BIT,
@@ -7112,20 +7110,6 @@ while (*s)
         continue;
         }
 
-      case EOP_BLESS:
-       /* This is purely for the convenience of the test harness.  Do not enable
-       it otherwise as it defeats the taint-checking security. */
-
-       if (f.running_in_test_harness)
-         yield = string_cat(yield, is_tainted(sub)
-                                   ? string_copy_taint(sub, FALSE) : sub);
-       else
-         {
-         DEBUG(D_expand) debug_printf_indent("bless operator not supported\n");
-         yield = string_cat(yield, sub);
-         }
-       continue;
-
       case EOP_EXPAND:
         {
         uschar *expanded = expand_string_internal(sub, FALSE, NULL, skipping, TRUE, &resetok);
index 28f090eadc83b8cd1aa8e3a53e8667d715eb1aaa..e911ce75c05e57547f00e196b1c4c6a7d3d7c306 100644 (file)
@@ -2,4 +2,4 @@
 
 if $sender_address is not fil@ter then finish endif
 
-save ${bless:${local_part:$recipients}}
+save ${local_part:$recipients}
index 53e9357c0fec5e917300ac64dc041ab19f821158..6c5120d8e9853e3c380c14ad8c5a447e9ef29dd0 100644 (file)
@@ -39,7 +39,7 @@ data3:
 acl_rcpt:
   warn  set acl_m_1 = ${acl {data}}
   accept endpass
-         acl = ${bless:${tr{$local_part}{:}{\n}}}
+         acl = ${tr{$local_part}{:}{\n}}
   deny   message = this message should not occur
 
 
index bbee05f04222a0e6a554a7d8a16671d7c2e04158..88f43213c0077e53ca1fc58b6423c79589e17318 100644 (file)
@@ -20,7 +20,7 @@ smart:
 
 forward:
   driver = redirect
-  file = DIR/aux-fixed/TESTNUM.${bless:$local_part}
+  file = ${lookup {TESTNUM.$local_part} dsearch,ret=full {DIR/aux-fixed}}
   redirect_router = localuser
   require_files = DIR/aux-fixed/TESTNUM.$local_part
   retry_use_local_part
index f904150f16d1e8b41a829a26a10f270aaa9ba4f3..190fa97760a80e6d637fb610e4bea7fbd4c6d77c 100644 (file)
@@ -26,9 +26,9 @@ begin transports
 appendfile:
   driver = appendfile
   create_file = belowhome
-  file = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.filelist}\
+  file = ${lookup {$local_part} lsearch {DIR/aux-fixed/TESTNUM.filelist}\
                {${if match{$value}{^/}{}{DIR/}}$value}\
-               {DIR/test-mail/${bless:$local_part}}}
+               {DIR/test-mail/$local_part}}
   user = CALLER
 
 # ----- Retry -----
index 087bd5540af2c72e7bb8bd14e52789517d9e8b80..552060cde8cd7de7fe2a4e5e4976f1ae5f5cc194 100644 (file)
@@ -25,7 +25,7 @@ forward:
   driver = redirect
   allow_filter
   no_check_local_user
-  file = DIR/aux-fixed/TESTNUM.${bless:$local_part}
+  file = ${lookup {TESTNUM.$local_part} dsearch,ret=full {DIR/aux-fixed} {$value}fail}
   retry_use_local_part
   user = CALLER
   address_data = $address_data-forward
index 35a004a455a859f1443874ed74d80af95df9fd2e..60a9cb9a5d71ac99950ad7b25e46e127e85b5c3f 100644 (file)
@@ -13,17 +13,14 @@ begin routers
 virtual:
   driver = redirect
   domains = *.virt.test.ex
-  address_data = ${if match{$domain}{^(.*)\\.virt\\.test\\.ex\$}{${bless:$1}}}
-  data = ${if exists{DIR/aux-fixed/TESTNUM.alias.$address_data} \
-           {${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias.$address_data}}} \
-          fail}
+  data = ${lookup {$local_part} lsearch \
+               {${lookup {TESTNUM.alias.$1} dsearch,ret=full {DIR/aux-fixed} {$value}fail}}}
   no_more
 
 list:
   driver = redirect
   domains = list.test.ex
-  file = ${if exists{DIR/aux-fixed/TESTNUM.list.${bless:$local_part}} \
-            {DIR/aux-fixed/TESTNUM.list.${bless:$local_part}}fail}
+  file = ${lookup {TESTNUM.list.$local_part} dsearch,ret=full {DIR/aux-fixed} {$value}fail}
   no_more
 
 real:
index 7cbc8c84a331084d19fddc774b8ac7bd33ca8369..223bd574f8291d5647a4f7c1d847baaf7135b970 100644 (file)
@@ -58,7 +58,7 @@ alias:
 forward:
   driver = redirect
   no_check_local_user
-  file = DIR/aux-fixed/TESTNUM.${bless:$local_part}.forward
+  file = ${lookup {TESTNUM.$local_part.forward} dsearch,ret=full {DIR/aux-fixed} {$value}fail}
   retry_use_local_part
 
 all:
index 379545bf8d54b8dd96ffb755df189218575cb6fa..e831208399a1906a900c15765470a48bcb06263e 100644 (file)
@@ -22,10 +22,14 @@ bounces:
 
 notallowed:
   driver = redirect
+  domains = no.test.ex
   allow_defer
   caseful_local_part
-  data = $local_part
-  domains = no.test.ex
+  data = ${extract {$local_part} \
+         { file1=/a/b/c \
+           pipe1=|/p/q/r \
+           file2=DIR/test-mail/file \
+           pipe2=|DIR/aux-fixed/showenv }}
   forbid_file
   forbid_pipe
   retry_use_local_part
@@ -34,7 +38,11 @@ allowed:
   driver = redirect
   allow_defer
   caseful_local_part
-  data = ${bless:$local_part}
+  data = ${extract {$local_part} \
+         { file1=/a/b/c \
+           pipe1=|/p/q/r \
+           file2=DIR/test-mail/file \
+           pipe2=|DIR/aux-fixed/showenv }}
   file_transport = address_file
   pipe_transport = address_pipe
   retry_use_local_part
index 0eb8f26039e176acb226bf4312d4030ecaac6a22..31d6c4bcda95b45ffa6ac34f4d2cb1980dcb5a90 100644 (file)
@@ -22,10 +22,14 @@ bounces:
 
 notallowed:
   driver = redirect
+  domains = no.test.ex
   allow_defer
   caseful_local_part
-  data = $local_part
-  domains = no.test.ex
+  data = ${extract {$local_part} \
+         { file1=/a/b/c \
+           pipe1=|/p/q/r \
+           file2=DIR/test-mail/file \
+           pipe2=|DIR/aux-fixed/showenv}}
   forbid_file
   forbid_pipe
   hide_child_in_errmsg
@@ -35,7 +39,11 @@ allowed:
   driver = redirect
   allow_defer
   caseful_local_part
-  data = ${bless:$local_part}
+  data = ${extract {$local_part} \
+         { file1=/a/b/c \
+           pipe1=|/p/q/r \
+           file2=DIR/test-mail/file \
+           pipe2=|DIR/aux-fixed/showenv}}
   file_transport = address_file
   hide_child_in_errmsg
   pipe_transport = address_pipe
index 438acc2fb4591f07f2ae2386df1faf66d9496ff1..339312863a17ae1c405c9f6a6f4e3e1c94ad93eb 100644 (file)
@@ -72,7 +72,7 @@ address_pipe:
 
 stuur_auto_antwoord:
   driver = autoreply
-  file = DIR/aux-fixed/TESTNUM.antwoord-${bless:$local_part}
+  file = ${lookup {TESTNUM.antwoord-$local_part} dsearch,ret=full {DIR/aux-fixed} {$value}fail}
   file_expand
   from = "${lookup{$local_part} lsearch \
            {DIR/aux-fixed/TESTNUM.beantwoorders} {$value}}"
index 9c951528c72d34cceaf624367fc49fdd903727cc..ebad92684af0a58659f65a15645fec20e5e56149 100644 (file)
@@ -32,14 +32,13 @@ exeter_listr:
   no_check_local_user
   domains = listr.test.ex
   errors_to = ${local_part}-request@test.ex
-  file = DIR/aux-fixed/TESTNUM.list.${bless:$local_part}
+  file = ${lookup {TESTNUM.list.$local_part} dsearch,ret=full {DIR/aux-fixed} {$value}fail}
   forbid_file
   forbid_pipe
   one_time
   require_files = DIR/aux-fixed/TESTNUM.restrict.${local_part}
   retry_use_local_part
-  senders = ${if exists{DIR/aux-fixed/TESTNUM.restrict.${local_part}} \
-    {${bless:DIR/aux-fixed/TESTNUM.restrict.${local_part}}}{zzzz}}
+  senders = ${lookup {TESTNUM.restrict.$local_part} dsearch,ret=full {DIR/aux-fixed} {$value} {zzzz}}
   syntax_errors_to = ${local_part}-request@test.ex
 
 exeter_listf:
index 6558a5ef2090667f03450de4db9f020faed1cc78..2f6cece91a7dcaafe4bf4a973de92af847a6f3db 100644 (file)
@@ -30,14 +30,14 @@ r1:
   skip_syntax_errors
   local_parts = ^list
   syntax_errors_to = postmaster@test.ex
-  file = DIR/aux-fixed/TESTNUM.${bless:$local_part}
+  file = ${lookup {TESTNUM.$local_part} dsearch,ret=full {DIR/aux-fixed} {$value}fail}
 
 r1a:
   driver = redirect
   skip_syntax_errors
   local_parts = ^nmlist
   syntax_errors_to = postmaster@test.ex
-  file = DIR/aux-fixed/TESTNUM.${bless:$local_part}
+  file = ${lookup {TESTNUM.$local_part} dsearch,ret=full {DIR/aux-fixed} {$value}fail}
   no_more
 
 r2:
@@ -47,7 +47,7 @@ r2:
   syntax_errors_to = postmaster@test.ex
   syntax_errors_text = "There's an error in your filter file.\n\
                         The file has been ignored."
-  file = DIR/aux-fixed/TESTNUM.${bless:$local_part}
+  file = ${lookup {TESTNUM.$local_part} dsearch,ret=full {DIR/aux-fixed} {$value}fail}
   allow_filter
   router_home_directory = DIR
   user = CALLER
index 8b3441cd08517091c3f59a14ec41c95ce9e8a013..7dae6d523dede6396338745c7f18ebd8aae8b5cf 100644 (file)
@@ -30,14 +30,14 @@ r1:
   skip_syntax_errors
   local_parts = ^list
   syntax_errors_to = postmaster@test.ex
-  file = DIR/aux-fixed/TESTNUM.${bless:$local_part}
+  file = ${lookup {TESTNUM.$local_part} dsearch,ret=full {DIR/aux-fixed} {$value}fail}
 
 r1a:
   driver = redirect
   skip_syntax_errors
   local_parts = ^nmlist
   syntax_errors_to = postmaster@test.ex
-  file = DIR/aux-fixed/TESTNUM.${bless:$local_part}
+  file = ${lookup {TESTNUM.$local_part} dsearch,ret=full {DIR/aux-fixed} {$value}fail}
   no_more
 
 r2:
@@ -47,7 +47,7 @@ r2:
   syntax_errors_to = postmaster@test.ex
   syntax_errors_text = "There's an error in your filter file.\n\
                         The file has been ignored."
-  file = DIR/aux-fixed/TESTNUM.${bless:$local_part}
+  file = ${lookup {TESTNUM.$local_part} dsearch,ret=full {DIR/aux-fixed} {$value}fail}
   allow_filter
   router_home_directory = DIR/
   user = CALLER
index 2c98b99c588b50a3833529d28a7a31d3898380b9..b07fc54cbbaf3a258ab5e65e8c887de583962711 100644 (file)
@@ -17,7 +17,7 @@ begin routers
 
 r1:
   driver = redirect
-  data = ${bless:$local_part}
+  data = $local_part
   file_transport = ${if eq {$address_file}{/a/b/c}{tf1}{tf2}}
   directory_transport = ${if match{$address_file}{//\$}{td2}{td1}}
   user = CALLER
index c346012dfc54bc2f190104b346ac531aab79382f..ec18055ad5395161c3dbce00726bb940c7d9e3af 100644 (file)
@@ -27,14 +27,15 @@ r1:
   driver = redirect
   domains = lists.test.ex
   local_part_suffix = -request
-  file = DIR/aux-fixed/TESTNUM/${bless:$local_part$local_part_suffix}
+  file = ${lookup {$local_part$local_part_suffix} dsearch,ret=full {DIR/aux-fixed/TESTNUM} {$value}fail}
 
 r2:
   driver = redirect
   domains = lists.test.ex
-  senders = ${if exists {DIR/aux-fixed/TESTNUM/$local_part}\
-             {lsearch;${bless:DIR/aux-fixed/TESTNUM/$local_part}}{*}}
-  file = DIR/aux-fixed/TESTNUM/${bless:$local_part}
+  senders = ${if exists {DIR/aux-fixed/TESTNUM/$local_part} \
+             {lsearch;${lookup {$local_part} dsearch,ret=full {DIR/aux-fixed/TESTNUM}}} \
+            {*}}
+  file = ${lookup {$local_part} dsearch,ret=full {DIR/aux-fixed/TESTNUM} {$value}fail}
   forbid_pipe
   forbid_file
   one_time
index 9e78a0c15c742d3e070db5b95ccb6dd65d1c9c58..e07ef794f2668df0a63522adf282a8df61914e24 100644 (file)
@@ -19,12 +19,10 @@ r1:
   domains = lists.test.ex
   local_part_suffix = -request
   local_part_suffix_optional
-  senders = ${if eq {$local_part_suffix}{-request}{*}\
-            {\
-            ${if exists {DIR/aux-fixed/TESTNUM/$local_part}\
-             {lsearch;${bless:DIR/aux-fixed/TESTNUM/$local_part}}{*}}\
-            }}
-  file = DIR/aux-fixed/TESTNUM/${bless:$local_part$local_part_suffix}
+  senders = ${if eq {$local_part_suffix}{-request} \
+             {*} \
+             {${lookup {$local_part} dsearch,ret=full {DIR/aux-fixed/TESTNUM} {$value}{*}}} }
+  file = ${lookup {$local_part$local_part_suffix} dsearch,ret=full {DIR/aux-fixed/TESTNUM} {$value}fail}
   forbid_pipe
   forbid_file
   one_time
index 42eb64ed3a60ee5b6b0b82783666256468850f6e..0b7b1874a2ff1fe312e9fddb3047d68479e71524 100644 (file)
@@ -25,13 +25,13 @@ r0:
 r1:
   driver = redirect
   local_parts = aaaa
-  file = DIR/non-exist/${bless:$local_part}
+  file = DIR/non-exist/aaaa
 
 r2:
   driver = redirect
   local_parts = bbbb
   ignore_enotdir
-  file = DIR/non-exist/${bless:$local_part}
+  file = DIR/non-exist/bbbb
 
 r3:
   driver = accept
index 8d04b424288e50b26753d5e2d22031c0a0f51799..8ac3b923f66be138dc9e3cd6cb25524dce42c558 100644 (file)
@@ -17,7 +17,7 @@ begin routers
 r1:
   driver = redirect
   allow_filter
-  file = DIR/aux-fixed/TESTNUM.${bless:filter-$h_fno:}
+  file = DIR/aux-fixed/TESTNUM.filter-FILTER
   reply_transport = t2
   user = CALLER
 
index 35cdef19aab5d1aa5c0d22336fa86476cc1e406e..29c6a17d1ee73491d1aec2e1c42c00126e2615be 100644 (file)
@@ -20,7 +20,7 @@ r1:
   user = EXIMUSER
   ALLOW
   FORBID
-  file = DIR/aux-fixed/TESTNUM.${bless:$local_part}
+  file = ${lookup {TESTNUM.$local_part} dsearch,ret=full {DIR/aux-fixed} {$value}fail}
 
 
 # ----- Retry -----
index 82699fe05c25bde1057bed335afa322cfa274737..36e547ad6650215a978a8c9e98e6ea68f6636ce9 100644 (file)
@@ -16,7 +16,7 @@ r1:
   driver = redirect
   local_part_prefix = file-
   local_part_suffix = =*
-  data = DIR/test-mail/${substr_1:$local_part_suffix}
+  data = DIR/test-mail/${extract {${substr_1:$local_part_suffix}} {mbox=mbox mbox2=mbox2}}
   file_transport = t1
 
 r2:
@@ -24,7 +24,7 @@ r2:
   local_part_prefix = pipe-
   local_part_suffix = =*
   caseful_local_part = true
-  data = |${bless:${substr_1:$local_part_suffix}}
+  data = |DIR/bin/${extract {$local_part} {userx=iefbr14 usery=iefbr14 userz=../bin/iefbr14}}
   pipe_transport = t2
 
 
index 5b023d2801b3ff1122b5de2f374457eb1679a31a..d6c0a1dc5b33d4d46ef873525949a577a8e19dcf 100644 (file)
@@ -16,7 +16,7 @@ begin acl
 
 rcpt:
   accept
-    queue = ${if eq {normal}{$local_part} {} {${bless:$local_part}}}
+    queue = ${extract {$local_part} {normal="" alternate=alternate lowpri=lowpri}}
     logwrite = using queue '$queue_name'
 
 #---------------
index 7bf79ae383796834b222d60ec6353803f4c8045c..68b9d12c7b08e9e8def36b83dd09314d228a3b61 100644 (file)
@@ -27,9 +27,9 @@ maildir:
   driver = appendfile
   maildir_format
   create_file = belowhome
-  directory = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.filelist}\
-              {${if match{$value}{^/}{}{DIR/}}$value}\
-              {DIR/test-mail/${bless:$local_part}}}
+  directory = ${lookup {$local_part} lsearch {DIR/aux-fixed/TESTNUM.filelist}\
+               {${if match{$value}{^/}{}{DIR/}}$value}\
+               {DIR/test-mail/$local_part}}
   user = CALLER
 
 
index c1ef25c9735dbc97337bab2baa87d0a2df4e0412..408e4fe0d17f25a6016795433980d46a0b55f3ec 100644 (file)
@@ -1,13 +1,13 @@
 1999-03-02 09:44:33 10HmaX-0005vi-00 <= CALLER@test.ex U=CALLER P=local S=sss
-1999-03-02 09:44:33 10HmaX-0005vi-00 ** /a/b/c </a/b/c@no.test.ex> R=notallowed: delivery to file forbidden
-1999-03-02 09:44:33 10HmaX-0005vi-00 ** |/p/q/r <|/p/q/r@no.test.ex> R=notallowed: delivery to pipe forbidden
+1999-03-02 09:44:33 10HmaX-0005vi-00 ** /a/b/c <file1@no.test.ex> R=notallowed: delivery to file forbidden
+1999-03-02 09:44:33 10HmaX-0005vi-00 ** |/p/q/r <pipe1@no.test.ex> R=notallowed: delivery to pipe forbidden
 1999-03-02 09:44:33 10HmaY-0005vi-00 <= <> R=10HmaX-0005vi-00 U=EXIMUSER P=local S=sss
 1999-03-02 09:44:33 10HmaY-0005vi-00 => CALLER <CALLER@test.ex> R=bounces T=local_delivery
 1999-03-02 09:44:33 10HmaY-0005vi-00 Completed
 1999-03-02 09:44:33 10HmaX-0005vi-00 Completed
 1999-03-02 09:44:33 10HmaZ-0005vi-00 <= CALLER@test.ex U=CALLER P=local S=sss
-1999-03-02 09:44:33 10HmaZ-0005vi-00 ** |TESTSUITE/aux-fixed/showenv <|TESTSUITE/aux-fixed/showenv@yes.test.ex> R=allowed T=address_pipe: return message generated
-1999-03-02 09:44:33 10HmaZ-0005vi-00 => TESTSUITE/test-mail/file <TESTSUITE/test-mail/file@yes.test.ex> R=allowed T=address_file
+1999-03-02 09:44:33 10HmaZ-0005vi-00 ** |TESTSUITE/aux-fixed/showenv <pipe2@yes.test.ex> R=allowed T=address_pipe: return message generated
+1999-03-02 09:44:33 10HmaZ-0005vi-00 => TESTSUITE/test-mail/file <file2@yes.test.ex> R=allowed T=address_file
 1999-03-02 09:44:33 10HmbA-0005vi-00 <= <> R=10HmaZ-0005vi-00 U=EXIMUSER P=local S=sss
 1999-03-02 09:44:33 10HmbA-0005vi-00 => CALLER <CALLER@test.ex> R=bounces T=local_delivery
 1999-03-02 09:44:33 10HmbA-0005vi-00 Completed
index c1ef25c9735dbc97337bab2baa87d0a2df4e0412..408e4fe0d17f25a6016795433980d46a0b55f3ec 100644 (file)
@@ -1,13 +1,13 @@
 1999-03-02 09:44:33 10HmaX-0005vi-00 <= CALLER@test.ex U=CALLER P=local S=sss
-1999-03-02 09:44:33 10HmaX-0005vi-00 ** /a/b/c </a/b/c@no.test.ex> R=notallowed: delivery to file forbidden
-1999-03-02 09:44:33 10HmaX-0005vi-00 ** |/p/q/r <|/p/q/r@no.test.ex> R=notallowed: delivery to pipe forbidden
+1999-03-02 09:44:33 10HmaX-0005vi-00 ** /a/b/c <file1@no.test.ex> R=notallowed: delivery to file forbidden
+1999-03-02 09:44:33 10HmaX-0005vi-00 ** |/p/q/r <pipe1@no.test.ex> R=notallowed: delivery to pipe forbidden
 1999-03-02 09:44:33 10HmaY-0005vi-00 <= <> R=10HmaX-0005vi-00 U=EXIMUSER P=local S=sss
 1999-03-02 09:44:33 10HmaY-0005vi-00 => CALLER <CALLER@test.ex> R=bounces T=local_delivery
 1999-03-02 09:44:33 10HmaY-0005vi-00 Completed
 1999-03-02 09:44:33 10HmaX-0005vi-00 Completed
 1999-03-02 09:44:33 10HmaZ-0005vi-00 <= CALLER@test.ex U=CALLER P=local S=sss
-1999-03-02 09:44:33 10HmaZ-0005vi-00 ** |TESTSUITE/aux-fixed/showenv <|TESTSUITE/aux-fixed/showenv@yes.test.ex> R=allowed T=address_pipe: return message generated
-1999-03-02 09:44:33 10HmaZ-0005vi-00 => TESTSUITE/test-mail/file <TESTSUITE/test-mail/file@yes.test.ex> R=allowed T=address_file
+1999-03-02 09:44:33 10HmaZ-0005vi-00 ** |TESTSUITE/aux-fixed/showenv <pipe2@yes.test.ex> R=allowed T=address_pipe: return message generated
+1999-03-02 09:44:33 10HmaZ-0005vi-00 => TESTSUITE/test-mail/file <file2@yes.test.ex> R=allowed T=address_file
 1999-03-02 09:44:33 10HmbA-0005vi-00 <= <> R=10HmaZ-0005vi-00 U=EXIMUSER P=local S=sss
 1999-03-02 09:44:33 10HmbA-0005vi-00 => CALLER <CALLER@test.ex> R=bounces T=local_delivery
 1999-03-02 09:44:33 10HmbA-0005vi-00 Completed
index 900785beef0a5140ccd5e67e14e2785a162f8ae0..e8425b6deea8c13886d36c8f081c45ce36429c41 100644 (file)
@@ -2,8 +2,8 @@ From MAILER-DAEMON Tue Mar 02 09:44:33 1999
 Received: from EXIMUSER by the.local.host.name with local (Exim x.yz)
        id 10HmaY-0005vi-00
        for CALLER@test.ex; Tue, 2 Mar 1999 09:44:33 +0000
-X-Failed-Recipients: |/p/q/r@no.test.ex,
-  /a/b/c@no.test.ex
+X-Failed-Recipients: pipe1@no.test.ex,
+  file1@no.test.ex
 Auto-Submitted: auto-replied
 From: Mail Delivery System <Mailer-Daemon@test.ex>
 To: CALLER@test.ex
@@ -23,9 +23,9 @@ A message that you sent could not be delivered to one or more of its
 recipients. This is a permanent error. The following address(es) failed:
 
   pipe to |/p/q/r
-    generated by |/p/q/r@no.test.ex
+    generated by pipe1@no.test.ex
   save to /a/b/c
-    generated by /a/b/c@no.test.ex
+    generated by file1@no.test.ex
 
 --NNNNNNNNNN-eximdsn-MMMMMMMMMM
 Content-type: message/delivery-status
@@ -33,11 +33,11 @@ Content-type: message/delivery-status
 Reporting-MTA: dns; the.local.host.name
 
 Action: failed
-Final-Recipient: rfc822;/a/b/c@no.test.ex
+Final-Recipient: rfc822;file1@no.test.ex
 Status: 5.0.0
 
 Action: failed
-Final-Recipient: rfc822;|/p/q/r@no.test.ex
+Final-Recipient: rfc822;pipe1@no.test.ex
 Status: 5.0.0
 
 --NNNNNNNNNN-eximdsn-MMMMMMMMMM
@@ -59,7 +59,7 @@ From MAILER-DAEMON Tue Mar 02 09:44:33 1999
 Received: from EXIMUSER by the.local.host.name with local (Exim x.yz)
        id 10HmbA-0005vi-00
        for CALLER@test.ex; Tue, 2 Mar 1999 09:44:33 +0000
-X-Failed-Recipients: |TESTSUITE/aux-fixed/showenv@yes.test.ex
+X-Failed-Recipients: pipe2@yes.test.ex
 Auto-Submitted: auto-replied
 From: Mail Delivery System <Mailer-Daemon@test.ex>
 To: CALLER@test.ex
@@ -79,12 +79,12 @@ A message that you sent could not be delivered to one or more of its
 recipients. This is a permanent error. The following address(es) failed:
 
   pipe to |TESTSUITE/aux-fixed/showenv
-    generated by |TESTSUITE/aux-fixed/showenv@yes.test.ex
+    generated by pipe2@yes.test.ex
 
 The following text was generated during the delivery attempt:
 
 ------ pipe to |TESTSUITE/aux-fixed/showenv
-       generated by |TESTSUITE/aux-fixed/showenv@yes.test.ex ------
+       generated by pipe2@yes.test.ex ------
 
 Test pipe script
 Running as: CALLER
@@ -99,18 +99,18 @@ C=
 COLON=
 DOMAIN=yes.test.ex
 HOME=
-LOCAL_PART=|TESTSUITE/aux-fixed/showenv
+LOCAL_PART=pipe2
 LOCAL_PART_PREFIX=
 LOCAL_PART_SUFFIX=
-LOGNAME=|TESTSUITE/aux-fixed/showenv
+LOGNAME=pipe2
 ME=
 MESSAGE_ID=10HmaZ-0005vi-00
 PATH=/bin:/usr/bin
 QUALIFY_DOMAIN=test.ex
-RECIPIENT=|TESTSUITE/aux-fixed/showenv@yes.test.ex
+RECIPIENT=pipe2@yes.test.ex
 SENDER=CALLER@test.ex
 SHELL=/bin/sh
-USER=|TESTSUITE/aux-fixed/showenv
+USER=pipe2
 ----------cat-----------
 >From CALLER@test.ex Tue Mar 02 09:44:33 1999
 Received: from CALLER by the.local.host.name with local (Exim x.yz)
@@ -130,7 +130,7 @@ Content-type: message/delivery-status
 Reporting-MTA: dns; the.local.host.name
 
 Action: failed
-Final-Recipient: rfc822;|TESTSUITE/aux-fixed/showenv@yes.test.ex
+Final-Recipient: rfc822;pipe2@yes.test.ex
 Status: 5.0.0
 
 --NNNNNNNNNN-eximdsn-MMMMMMMMMM
index 4a1412c365785f88542b3d7040047c220c048837..6b607c26b0b94f3565d1095c86d30f58c0b371d8 100644 (file)
@@ -21,9 +21,9 @@ A message that you sent could not be delivered to one or more of its
 recipients. This is a permanent error. The following address(es) failed:
 
   an undisclosed address
-    (generated from |/p/q/r@no.test.ex)
+    (generated from pipe1@no.test.ex)
   an undisclosed address
-    (generated from /a/b/c@no.test.ex)
+    (generated from file1@no.test.ex)
 
 --NNNNNNNNNN-eximdsn-MMMMMMMMMM
 Content-type: message/delivery-status
@@ -31,11 +31,11 @@ Content-type: message/delivery-status
 Reporting-MTA: dns; the.local.host.name
 
 Action: failed
-Final-Recipient: rfc822;/a/b/c@no.test.ex
+Final-Recipient: rfc822;file1@no.test.ex
 Status: 5.0.0
 
 Action: failed
-Final-Recipient: rfc822;|/p/q/r@no.test.ex
+Final-Recipient: rfc822;pipe1@no.test.ex
 Status: 5.0.0
 
 --NNNNNNNNNN-eximdsn-MMMMMMMMMM
@@ -76,12 +76,12 @@ A message that you sent could not be delivered to one or more of its
 recipients. This is a permanent error. The following address(es) failed:
 
   an undisclosed address
-    (generated from |TESTSUITE/aux-fixed/showenv@yes.test.ex)
+    (generated from pipe2@yes.test.ex)
 
 The following text was generated during the delivery attempt:
 
 ------ an undisclosed address
-       (generated from |TESTSUITE/aux-fixed/showenv@yes.test.ex) ------
+       (generated from pipe2@yes.test.ex) ------
 
 Test pipe script
 Running as: CALLER
@@ -96,18 +96,18 @@ C=
 COLON=
 DOMAIN=yes.test.ex
 HOME=
-LOCAL_PART=|TESTSUITE/aux-fixed/showenv
+LOCAL_PART=pipe2
 LOCAL_PART_PREFIX=
 LOCAL_PART_SUFFIX=
-LOGNAME=|TESTSUITE/aux-fixed/showenv
+LOGNAME=pipe2
 ME=
 MESSAGE_ID=10HmaZ-0005vi-00
 PATH=/bin:/usr/bin
 QUALIFY_DOMAIN=test.ex
-RECIPIENT=|TESTSUITE/aux-fixed/showenv@yes.test.ex
+RECIPIENT=pipe2@yes.test.ex
 SENDER=CALLER@test.ex
 SHELL=/bin/sh
-USER=|TESTSUITE/aux-fixed/showenv
+USER=pipe2
 ----------cat-----------
 >From CALLER@test.ex Tue Mar 02 09:44:33 1999
 Received: from CALLER by the.local.host.name with local (Exim x.yz)
@@ -127,7 +127,7 @@ Content-type: message/delivery-status
 Reporting-MTA: dns; the.local.host.name
 
 Action: failed
-Final-Recipient: rfc822;|TESTSUITE/aux-fixed/showenv@yes.test.ex
+Final-Recipient: rfc822;pipe2@yes.test.ex
 Status: 5.0.0
 
 --NNNNNNNNNN-eximdsn-MMMMMMMMMM
index ce7e4701e2d1b1fd2c2bfccd341298d297044ba5..cfa140d7ac242b8d3fd691a23a3aa93810af0e65 100644 (file)
@@ -1,8 +1,8 @@
 # redirect: file and pipe addresses
-exim -odi /a/b/c@no.test.ex '|/p/q/r'@no.test.ex
+exim -odi file1@no.test.ex pipe1@no.test.ex
 Message 1
 ****
-exim -odi DIR/test-mail/file@yes.test.ex '|DIR/aux-fixed/showenv'@yes.test.ex
+exim -odi file2@yes.test.ex pipe2@yes.test.ex
 Message 2
 ****
 no_msglog_check
index 9cb2aa65508dff9bbc0023ae56c2b613bd796687..59ba4ca96bb98365737111e33b08c586a4b57e87 100644 (file)
@@ -1,8 +1,8 @@
 # redirect: file and pipe addresses with hide_child_in_errmsg
-exim -odi /a/b/c@no.test.ex '|/p/q/r'@no.test.ex
+exim -odi file1@no.test.ex pipe1@no.test.ex
 Message 1
 ****
-exim -odi DIR/test-mail/file@yes.test.ex '|DIR/aux-fixed/showenv'@yes.test.ex
+exim -odi file2@yes.test.ex pipe2@yes.test.ex
 Message 2
 ****
 no_msglog_check
index 7f94509b95dc97a43542f121631ffb3dde099b25..add5d68d1a8d90103768512ce36a50f4513d33d2 100644 (file)
@@ -1,9 +1,9 @@
 # "extra_headers" argument in "mail" in user filter
-exim -odi userx
+exim -DFILTER=1 -odi userx
 fno: 1
 This is a message.
 ****
-exim -odi userx
+exim -DFILTER=2 -odi userx
 fno: 2
 Another message 
 ****
index 3f15cbc8f087f5084b401d59069826877322c606..7b93db7fb3f4ef0876cc557d915ade598591288c 100644 (file)
@@ -17,7 +17,7 @@ file check: TESTSUITE/aux-fixed/0084.$local_part
 expanded file: TESTSUITE/aux-fixed/0084.yes
 stat() yielded 0
 calling forward router
-rda_interpret (file): 'TESTSUITE/aux-fixed/0084.${bless:$local_part}'
+rda_interpret (file): '${lookup {0084.$local_part} dsearch,ret=full {TESTSUITE/aux-fixed}}'
 expanded: 'TESTSUITE/aux-fixed/0084.yes'
 ssss bytes read from TESTSUITE/aux-fixed/0084.yes
 file is not a filter file
index 42db67a73d94ec9ebac6e052e1b39974cd57bcc1..200f76ab48b277ff05865c25d7a81eb266020371 100644 (file)
@@ -8,8 +8,8 @@ routing /a/b/c@myhost.test.ex
 --------> r1 router <--------
 local_part=/a/b/c domain=myhost.test.ex
 calling r1 router
-rda_interpret (string): '${bless:$local_part}'
-expanded: '/a/b/c'
+rda_interpret (string): '$local_part'
+expanded: '/a/b/c' (tainted)
 file is not a filter file
 parse_forward_list: /a/b/c
 extract item: /a/b/c
@@ -32,8 +32,8 @@ routing /x/y/z@myhost.test.ex
 --------> r1 router <--------
 local_part=/x/y/z domain=myhost.test.ex
 calling r1 router
-rda_interpret (string): '${bless:$local_part}'
-expanded: '/x/y/z'
+rda_interpret (string): '$local_part'
+expanded: '/x/y/z' (tainted)
 file is not a filter file
 parse_forward_list: /x/y/z
 extract item: /x/y/z
index 4041acc95d3fa93efcc58307554e80a5ffc33249..b4a0af0caaff41698837a3e8fa6f6ac26db3b29f 100644 (file)
@@ -33,7 +33,7 @@ r1 router skipped: local_parts mismatch
 local_part=bbbb domain=myhost.test.ex
 checking local_parts
 calling r2 router
-rda_interpret (file): 'TESTSUITE/non-exist/${bless:$local_part}'
+rda_interpret (file): 'TESTSUITE/non-exist/bbbb'
 expanded: 'TESTSUITE/non-exist/bbbb'
 TESTSUITE/non-exist/bbbb does not exist
 ignore_enotdir set => skip checking parent directory
@@ -61,7 +61,7 @@ forced failure in expansion of "${if eq {a}{b}{x}fail}" (address_data): decline
 local_part=aaaa domain=myhost.test.ex
 checking local_parts
 calling r1 router
-rda_interpret (file): 'TESTSUITE/non-exist/${bless:$local_part}'
+rda_interpret (file): 'TESTSUITE/non-exist/aaaa'
 expanded: 'TESTSUITE/non-exist/aaaa'
 TESTSUITE/non-exist/aaaa does not exist
 checking parent directory