From aeaec526e4f74935ccdd79b9f6f0cd4afad9d7dc Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Sat, 18 Jul 2009 11:14:18 +0200
Subject: [PATCH] Added additional headers to the list of allowed headers for
 the address test.

---
 src/lib-sieve/tst-address.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/lib-sieve/tst-address.c b/src/lib-sieve/tst-address.c
index 8b2a6f5da..c9e4cdd1c 100644
--- a/src/lib-sieve/tst-address.c
+++ b/src/lib-sieve/tst-address.c
@@ -90,21 +90,28 @@ static bool tst_address_registered
  *
  * This list explicitly does not contain the envelope-to and return-path 
  * headers. The envelope test must be used to test against these addresses.
+ *
+ * FIXME: this restriction is somewhat odd. Sieve list advises to allow 
+ *        any other header as long as its content matches the address-list
+ *        grammar.
  */
 static const char * const _allowed_headers[] = {
 	/* Required */
 	"from", "to", "cc", "bcc", "sender", "resent-from", "resent-to",
 
-	/* Additional (RFC 2822) */
-	"reply-to", "resent-reply-to", 
-	
-	/* Non-standard (draft-palme-mailext-headers-08.txt) */
+	/* Additional (RFC 822 / RFC 2822) */
+	"reply-to", "resent-reply-to", "resent-sender", "resent-cc", "resent-bcc",  
+
+	/* Non-standard (RFC 2076, draft-palme-mailext-headers-08.txt) */
 	"for-approval", "for-handling", "for-comment", "apparently-to", "errors-to", 
 	"delivered-to", "return-receipt-to", "x-admin", "read-receipt-to", 
 	"x-confirm-reading-to", "return-receipt-requested", 
 	"registered-mail-reply-requested-by", "mail-followup-to", "mail-reply-to",
 	"abuse-reports-to", "x-complaints-to", "x-report-abuse-to",
 	
+	/* Undocumented */
+	"x-beenthere",
+	
 	NULL  
 };
 
-- 
GitLab