From 362145b5072e8d863d74c4fed8d7c1377c783b87 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Thu, 4 Oct 2012 23:05:04 +0100 Subject: Add expansion variable $headers_added returning newline-sep list of headers added in ACLs. Bug 199. --- test/confs/0496 | 3 ++- test/log/0496 | 1 + test/mail/0496.someone | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'test') 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 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 -- cgit v1.2.3