Testsuite: Add munge for EXPERIMENTAL_DSN_INFO
authorJeremy Harris <jgh146exb@wizmail.org>
Sat, 7 Nov 2015 12:48:06 +0000 (12:48 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Sun, 8 Nov 2015 16:15:46 +0000 (16:15 +0000)
13 files changed:
test/mail/4203.यहलोगहिन्दीक्योंनहींबोलसकतेहैं
test/mail/4213.यहलोगहिन्दीक्योंनहींबोलसकतेहैं
test/mail/4223.यहलोगहिन्दीक्योंनहींबोलसकतेहैं
test/runtest
test/scripts/0000-Basic/0211
test/scripts/0000-Basic/0253
test/scripts/0000-Basic/0374
test/scripts/0000-Basic/0375
test/scripts/0000-Basic/0531
test/scripts/4200-International/4203
test/scripts/4210-GnuTLS-International/4213
test/scripts/4220-OpenSSL-International/4223
test/scripts/4700-dsn-info/4700 [changed from symlink to file mode: 0644]

index df022c53239cd08fd8afc0a1623f1f3b37be0da9..35c0ea79fbe02f0e514205c327567525d996cbb9 100644 (file)
@@ -14,8 +14,6 @@ MIME-Version: 1.0
 Subject: Mail delivery failed: returning message to sender
 Message-Id: <E10HmaY-0005vi-00@the.local.host.name>
 Date: Tue, 2 Mar 1999 09:44:33 +0000
-X-body-linecount: 38
-X-message-linecount: 50
 X-received-count: 1
 
 --NNNNNNNNNN-eximdsn-MMMMMMMMMM
index df022c53239cd08fd8afc0a1623f1f3b37be0da9..35c0ea79fbe02f0e514205c327567525d996cbb9 100644 (file)
@@ -14,8 +14,6 @@ MIME-Version: 1.0
 Subject: Mail delivery failed: returning message to sender
 Message-Id: <E10HmaY-0005vi-00@the.local.host.name>
 Date: Tue, 2 Mar 1999 09:44:33 +0000
-X-body-linecount: 38
-X-message-linecount: 50
 X-received-count: 1
 
 --NNNNNNNNNN-eximdsn-MMMMMMMMMM
index df022c53239cd08fd8afc0a1623f1f3b37be0da9..35c0ea79fbe02f0e514205c327567525d996cbb9 100644 (file)
@@ -14,8 +14,6 @@ MIME-Version: 1.0
 Subject: Mail delivery failed: returning message to sender
 Message-Id: <E10HmaY-0005vi-00@the.local.host.name>
 Date: Tue, 2 Mar 1999 09:44:33 +0000
-X-body-linecount: 38
-X-message-linecount: 50
 X-received-count: 1
 
 --NNNNNNNNNN-eximdsn-MMMMMMMMMM
index 6899caeffbab2d15311cadbd01b8f120229a8fa0..7af30763b86e5f48e86ce6c0b5d1e320971fbb93 100755 (executable)
@@ -1380,6 +1380,10 @@ $munges =
     'debug_pid' =>
     { 'stderr' => 's/(^\s{0,4}|(?<=Process )|(?<=child ))\d{1,5}/ppppp/g' },
 
+    'optional_dsn_info' =>
+    { 'mail' => '/^(X-(Remote-MTA-(smtp-greeting|helo-response)|Exim-Diagnostic|(body|message)-linecount):|Remote-MTA: X-ip;)/'
+    }
+
   };
 
 
index ddf99060b104e60a3c917848d9c913d7f23fc849..2775d20ef6f6ad94ff269368e6978a6a36214c76 100644 (file)
@@ -1,5 +1,6 @@
 # SMTP connection & EHLO/HELO error responses (+log_sender_on_delivery)
 need_ipv4
+munge optional_dsn_info
 #
 server PORT_S
 450 I'm busy
index 56362e0dbb7f6b24a53b5276816aaa37671a5411..e0936bb17cc20b9ead01ecab1d30887f48cc7c30 100644 (file)
@@ -1,5 +1,6 @@
 # return_path on appendfile and smtp transports
 need_ipv4
+munge optional_dsn_info
 #
 exim -odi -f abc@x.y.z userx
 Test message
index 810efbda5a59cc15bc0d184a1dfb0e38904718df..e41e2dcb11d39925974b3597c401417674f00fec 100644 (file)
@@ -1,5 +1,6 @@
 # unseen without disable_logging and errors_to = ""
 need_ipv4
+munge optional_dsn_info
 #
 server -t 10 PORT_S 3
 220
index 8d2608fb86bc1f0844f52a7271c58c55ccf5750b..be4d7d3e7e60133d63867e574dcfc97b56f09135 100644 (file)
@@ -1,5 +1,6 @@
 # unseen with disable_logging and errors_to = "" or forced fail
 need_ipv4
+munge optional_dsn_info
 #
 server -t 10 PORT_S 7
 220
index 5e89595b78055a28636cdb600fa720f3323cfa98..912fff62ad5ec9fae2cca2e6482119846a8466d2 100644 (file)
@@ -1,5 +1,6 @@
 # LMTP over TCP/IP - temporary error handling
 need_ipv4
+munge optional_dsn_info
 # This one has no retry time, so will be bounced immediately.
 #
 server PORT_S
index 862de0cbb4ce78a398aa3bfb03539d5906623335..310cbd7ff5ab6b65aa9aff9d4cfd2bf44711720d 100644 (file)
@@ -1,5 +1,6 @@
 # Internationalised mail: forwarding fail
 # Exim test configuration 4203
+munge optional_dsn_info
 #
 exim -DSERVER=server -DOPTION="" -bd -oX PORT_D
 ****
index 7979156f113e1b892a241747e449fa67361f77be..c5b4b084de749db6169699d4eefa754ce0576bfd 100644 (file)
@@ -1,6 +1,7 @@
 # Internationalised mail: forwarding fail
 # Exim test configuration 4213
 gnutls
+munge optional_dsn_info
 #
 exim -DSERVER=server -DOPTION="" -bd -oX PORT_D
 ****
index 2a836a8792a0bcc1c04be2e62e9283d8ac56934f..5178bf188830d1473b317470e9bd378ffaab8eb6 100644 (file)
@@ -1,5 +1,6 @@
 # Internationalised mail: forwarding fail
 # Exim test configuration 4223
+munge optional_dsn_info
 #
 exim -DSERVER=server -DOPTION="" -bd -oX PORT_D
 ****
deleted file mode 120000 (symlink)
index e480f349455331b026da6ba72ce89e02acb382e6..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../0000-Basic/0211
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..d0dd4f363ba28cb69e4165608207faafd7eaa996
--- /dev/null
@@ -0,0 +1,41 @@
+# DSN extra information
+need_ipv4
+#
+server PORT_S
+450 I'm busy
+QUIT
+250 OK
+****
+exim -odi userx@domain1
+Test message 1
+****
+server PORT_S
+220 Connected OK
+EHLO
+450 I'm busy
+HELO
+450 I'm busy
+QUIT
+250 OK
+****
+exim -qf
+****
+server PORT_S
+550 Go away
+QUIT
+250 OK
+****
+exim -qf
+****
+server PORT_S
+220 Connected OK
+EHLO
+550 Go away
+HELO
+550 Go away
+QUIT
+250 OK
+****
+exim -odi userx@domain1 usery@domain2
+Test message 2
+****