diff roundup/configuration.py @ 5045:a46d5d0fd5f8

Fix issue1615201: Added a new configuration option EMAIL_KEEP_REAL_FROM which makes the mail gateway ignore a Resent-From:-header and use the real From:-header of the original author for further processing of the message. Setting this option to 'yes' restores the original behaviour of Roundup before the change in version 0.7.0 where the processing of Resent-From: was added unconditionally.
author Peter Funk <pf@artcom-gmbh.de>
date Fri, 18 Mar 2016 16:18:20 +0100
parents 5251e97b1de0
children e74c3611b138
line wrap: on
line diff
--- a/roundup/configuration.py	Wed Feb 11 00:44:16 2015 +1100
+++ b/roundup/configuration.py	Fri Mar 18 16:18:20 2016 +0100
@@ -818,7 +818,13 @@
             "multipart/alternative, and this option is set, all other\n"
             "parts of the multipart/alternative are ignored. The default\n"
             "is to keep all parts and attach them to the issue."),
-    ), "Roundup Mail Gateway options"),
+        (BooleanOption, "keep_real_from", "no",
+            "When handling emails ignore the Resent-From:-header\n"
+            "and use the original senders From:-header instead.\n"
+            "(This might be desirable in some situations where a moderator\n"
+            "reads incoming messages first before bouncing them to Roundup)",
+            ["EMAIL_KEEP_REAL_FROM"]),
+     ), "Roundup Mail Gateway options"),
     ("pgp", (
         (BooleanOption, "enable", "no",
             "Enable PGP processing. Requires pyme. If you're planning\n"

Roundup Issue Tracker: http://roundup-tracker.org/