From 5965b5aeb048bed42293216cef49f00e4c159f88 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Thu, 8 Oct 2020 12:48:41 +0200 Subject: [PATCH] add Sender: header to outgoing emails for now contains the same address as From: some mail servers seem to require having a Sender: header as part of their spam detection rules --- scripts/render.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/render.py b/scripts/render.py index 97a99298..272d9943 100755 --- a/scripts/render.py +++ b/scripts/render.py @@ -55,6 +55,7 @@ RESULT_TIMEOUT_REACHED = 4 THUMBNAIL_SUFFIX = '_small.png' EXCEPTION_EMAIL_TEMPLATE = """From: MapOSMatic rendering daemon <%(from)s> +Sender: <%(from)s> Reply-To: %(replyto)s To: %(to)s Content-Type: text/plain; charset=utf-8 @@ -76,6 +77,7 @@ MapOSMatic """ SUCCESS_EMAIL_TEMPLATE = """From: MapOSMatic rendering daemon <%(from)s> +Sender: <%(from)s> Reply-To: %(replyto)s To: %(to)s Content-Type: text/plain; charset=utf-8 @@ -99,6 +101,7 @@ MapOSMatic""" FAILURE_EMAIL_TEMPLATE = """From: MapOSMatic rendering daemon <%(from)s> +Sender: <%(from)s> Reply-To: %(replyto)s To: %(to)s Content-Type: text/plain; charset=utf-8 @@ -123,6 +126,7 @@ MapOSMatic""" TIMEOUT_EMAIL_TEMPLATE = """From: MapOSMatic rendering daemon <%(from)s> +Sender: <%(from)s> Reply-To: %(replyto)s To: $(to)s Content-Type: text/plain; charset=utf-8