From 1745d310db8102be38db65401df57747e9beaf6a Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Fri, 17 Mar 2023 18:39:46 +0000 Subject: ACL: patterns for remove_headers. Bug 2985 --- test/confs/0567 | 1 + test/mail/0567.rcptok | 3 +++ test/scripts/0000-Basic/0567 | 6 ++++++ 3 files changed, 10 insertions(+) (limited to 'test') 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: 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 . -- cgit v1.2.1