Trivial Pigeonhole patch: allow X-Original-From header for address tests

Rob Foehl rwf at loonybin.net
Thu Jun 23 04:14:12 UTC 2022


Motivated by more DMARC silliness, naturally.

-Rob
-------------- next part --------------
From 8554e5f6882a49f946ca6c6de5a483bdb02757cb Mon Sep 17 00:00:00 2001
From: Rob Foehl <rwf at loonybin.net>
Date: Wed, 22 Jun 2022 23:27:46 -0400
Subject: [PATCH] lib-sieve: Allow X-Original-From header for the address test

Some systems (e.g. Google Groups) replace the From header when
resending mail from domains with DMARC records, copying the original to
X-Original-From and otherwise obfuscating the author's address.
---
 src/lib-sieve/tst-address.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib-sieve/tst-address.c b/src/lib-sieve/tst-address.c
index 086679df..c8dcb657 100644
--- a/src/lib-sieve/tst-address.c
+++ b/src/lib-sieve/tst-address.c
@@ -115,7 +115,7 @@ static const char * const _allowed_headers[] = {
 	"abuse-reports-to", "x-complaints-to", "x-report-abuse-to",
 
 	/* Undocumented */
-	"x-beenthere", "x-original-to",
+	"x-beenthere", "x-original-from", "x-original-to",
 
 	NULL
 };
-- 
2.36.1



More information about the dovecot mailing list