summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2023-03-17 18:39:46 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2023-03-17 18:39:46 +0000
commit1745d310db8102be38db65401df57747e9beaf6a (patch)
tree455c68d948a5423f7f8a3c7a6957065ecdc5df1c /test
parentda1702c0e2fd5b5b4300bbae3f21db7ac5d74198 (diff)
downloadexim4-1745d310db8102be38db65401df57747e9beaf6a.tar.gz
ACL: patterns for remove_headers. Bug 2985
Diffstat (limited to 'test')
-rw-r--r--test/confs/05671
-rw-r--r--test/mail/0567.rcptok3
-rw-r--r--test/scripts/0000-Basic/05676
3 files changed, 10 insertions, 0 deletions
diff --git a/test/confs/0567 b/test/confs/0567
index 6ee678899..b85f3b5fe 100644
--- a/test/confs/0567
+++ b/test/confs/0567
@@ -58,6 +58,7 @@ data:
remove_header = x-data-2
warn log_message = Verified removed header X-Data-3 in this ACL still visible
condition = ${if !eq{$h_x-data-3:}{}}
+ warn remove_header = \N^(?i)Authentication-Results\s*::\s*remove.org;\N
accept
notsmtp:
diff --git a/test/mail/0567.rcptok b/test/mail/0567.rcptok
index 48d5f3cbe..e31f56347 100644
--- a/test/mail/0567.rcptok
+++ b/test/mail/0567.rcptok
@@ -24,6 +24,9 @@ X-Predata-2: Line nineteen
X-NotSMTP-1: Line twenty-one
X-NotSMTP-2: Line twenty-two
X-NotSMTP-3: Line twenty-three
+Authentication-Results: keep.org; baz barf
+Authentication-Results: keep.org;
+ multiline
Message-Id: <E10HmaX-0005vi-00@myhost.test.ex>
From: mailok@test.ex
Date: Tue, 2 Mar 1999 09:44:33 +0000
diff --git a/test/scripts/0000-Basic/0567 b/test/scripts/0000-Basic/0567
index a7a43489a..21374436f 100644
--- a/test/scripts/0000-Basic/0567
+++ b/test/scripts/0000-Basic/0567
@@ -33,6 +33,12 @@ X-Predata-1: Line twenty
X-NotSMTP-1: Line twenty-one
X-NotSMTP-2: Line twenty-two
X-NotSMTP-3: Line twenty-three
+Authentication-Results: remove.org; foo bar
+Authentication-Results: keep.org; baz barf
+authentication-Results : REMOVE.ORG;
+ foo bar multiline
+Authentication-Results: keep.org;
+ multiline
Test message
.