From 2c9405c7ea3c805b3f26b45d2234cc6f4890fc7e Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Wed, 8 Mar 2006 09:42:29 +0000 Subject: Additional Sieve test (missed files from previous commit). --- test/confs/0428 | 2 ++ test/log/0428 | 4 ++++ test/mail/0428.userx | 19 +++++++++++++++++++ test/scripts/0000-Basic/0428 | 10 ++++++++++ 4 files changed, 35 insertions(+) (limited to 'test') 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 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 R=r2 T=t1 +1999-03-02 09:44:33 10HmbN-0005vi-00 => TESTSUITE/test-mail/userx-sawsuffix 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: +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 ) + 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: +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 +**** -- cgit v1.2.3