Additional Sieve test (missed files from previous commit).
authorPhilip Hazel <ph10@hermes.cam.ac.uk>
Wed, 8 Mar 2006 09:42:29 +0000 (09:42 +0000)
committerPhilip Hazel <ph10@hermes.cam.ac.uk>
Wed, 8 Mar 2006 09:42:29 +0000 (09:42 +0000)
test/confs/0428
test/log/0428
test/mail/0428.userx
test/scripts/0000-Basic/0428

index d89b190..60b49e4 100644 (file)
@@ -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
index b812d43..c33ef32 100644 (file)
@@ -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
index 72a215a..8c3402b 100644 (file)
@@ -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
+
index 940dea8..d554c80 100644 (file)
@@ -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
+****