summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/confs/04282
-rw-r--r--test/log/04284
-rw-r--r--test/mail/0428.userx19
-rw-r--r--test/scripts/0000-Basic/042810
4 files changed, 35 insertions, 0 deletions
diff --git a/test/confs/0428 b/test/confs/0428
index d89b19073..60b49e476 100644
--- a/test/confs/0428
+++ b/test/confs/0428
@@ -43,6 +43,8 @@ r1:
r2:
driver = redirect
+ local_part_suffix = -*
+ local_part_suffix_optional
allow_filter
data = "#Sieve filter\n$h_filter:"
user = CALLER
diff --git a/test/log/0428 b/test/log/0428
index b812d4334..c33ef3266 100644
--- a/test/log/0428
+++ b/test/log/0428
@@ -47,3 +47,7 @@
1999-03-02 09:44:33 10HmbM-0005vi-00 Completed
1999-03-02 09:44:33 10HmbL-0005vi-00 => >someone@test.ex <userx@test.ex> R=r2 T=t3
1999-03-02 09:44:33 10HmbL-0005vi-00 Completed
+1999-03-02 09:44:33 10HmbN-0005vi-00 <= someone@test.ex U=CALLER P=local S=sss
+1999-03-02 09:44:33 10HmbN-0005vi-00 => TESTSUITE/test-mail/userx <userx-suffix2@test.ex> R=r2 T=t1
+1999-03-02 09:44:33 10HmbN-0005vi-00 => TESTSUITE/test-mail/userx-sawsuffix <userx-suffix@test.ex> R=r2 T=t1
+1999-03-02 09:44:33 10HmbN-0005vi-00 Completed
diff --git a/test/mail/0428.userx b/test/mail/0428.userx
index 72a215aa7..8c3402bd7 100644
--- a/test/mail/0428.userx
+++ b/test/mail/0428.userx
@@ -64,3 +64,22 @@ Date: Tue, 2 Mar 1999 09:44:33 +0000
Test 13
+From someone@test.ex Tue Mar 02 09:44:33 1999
+Return-path: <someone@test.ex>
+Envelope-to: userx-suffix2@test.ex
+Delivery-date: Tue, 2 Mar 1999 09:44:33 +0000
+Received: from CALLER by mail.test.ex with local (Exim x.yz)
+ (envelope-from <someone@test.ex>)
+ id 10HmbN-0005vi-00; Tue, 2 Mar 1999 09:44:33 +0000
+To: userx-suffix@test.ex
+Filter: require ["envelope","fileinto"];
+ if envelope :matches :localpart "to" "*-suffix" {
+ fileinto "userx-sawsuffix";
+ stop;
+ }
+Message-Id: <E10HmbN-0005vi-00@mail.test.ex>
+From: someone@test.ex
+Date: Tue, 2 Mar 1999 09:44:33 +0000
+
+Test 14
+
diff --git a/test/scripts/0000-Basic/0428 b/test/scripts/0000-Basic/0428
index 940dea898..d554c80d0 100644
--- a/test/scripts/0000-Basic/0428
+++ b/test/scripts/0000-Basic/0428
@@ -85,3 +85,13 @@ Filter: require ["vacation"];
vacation "I am gone. Not here.";
Test 13
****
+# Test use of suffix
+exim -odi -f someone@test.ex userx-suffix userx-suffix2
+To: userx-suffix@test.ex
+Filter: require ["envelope","fileinto"];
+ if envelope :matches :localpart "to" "*-suffix" {
+ fileinto "userx-sawsuffix";
+ stop;
+ }
+Test 14
+****