summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2012-10-04 23:05:04 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2012-10-04 23:05:04 +0100
commit362145b5072e8d863d74c4fed8d7c1377c783b87 (patch)
tree8718cb2123db53b7d72b35f4796804eca4423152 /test
parentb1b05573117d62c3b95d854d8ac5a447df19e82e (diff)
Add expansion variable $headers_added returning newline-sep list of headers
added in ACLs. Bug 199.
Diffstat (limited to 'test')
-rw-r--r--test/confs/04963
-rw-r--r--test/log/04961
-rw-r--r--test/mail/0496.someone2
3 files changed, 5 insertions, 1 deletions
diff --git a/test/confs/0496 b/test/confs/0496
index 89375b11d..9b03b850f 100644
--- a/test/confs/0496
+++ b/test/confs/0496
@@ -25,7 +25,8 @@ check_rcpt:
:at_start:At-Start: some text\n\
:at_end: At-End: some text
warn message = data4
- accept
+ warn add_header = X-multiline: foo\n\tbar
+ accept logwrite = $headers_added
# ----- Routers -----
diff --git a/test/log/0496 b/test/log/0496
index de056d46b..ed05c1221 100644
--- a/test/log/0496
+++ b/test/log/0496
@@ -1,3 +1,4 @@
+1999-03-02 09:44:33 X-ACL-Warn: data1 data1\nX-ACL-Warn: data2 data2\nX-ACL-Warn: data3\nX-ACL-Warn: \nX-ACL-Warn: data4\nAfter-Received: some text\nAt-Start: some text\nAt-End: some text\nX-multiline: foo\n\n bar
1999-03-02 09:44:33 10HmaX-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local-smtp S=sss
1999-03-02 09:44:33 10HmaX-0005vi-00 => someone <someone@el.se> R=r9 T=t1
1999-03-02 09:44:33 10HmaX-0005vi-00 Completed
diff --git a/test/mail/0496.someone b/test/mail/0496.someone
index 263f59686..32240fd54 100644
--- a/test/mail/0496.someone
+++ b/test/mail/0496.someone
@@ -16,6 +16,8 @@ X-ACL-Warn: data3
X-ACL-Warn:
X-ACL-Warn: data4
At-End: some text
+X-multiline: foo
+ bar
Testing message