From 1b525a55a52beb5832d8076e71198c925656aa2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Casaj=C3=BAs?= Date: Wed, 16 Feb 2022 18:39:18 +0100 Subject: [PATCH] Add debug message --- email_handler.py | 2 ++ templates/emails/base.html | 2 +- .../transactional/yahoo-transactional-complaint.txt.jinja2 | 7 ++++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/email_handler.py b/email_handler.py index d4ddf986..7595bb33 100644 --- a/email_handler.py +++ b/email_handler.py @@ -2089,6 +2089,8 @@ def send_no_reply_response(mail_from: str, msg: Message): "Auto: {}".format(msg[headers.SUBJECT] or "No subject"), render("transactional/noreply.text.jinja2"), ) + else: + LOG.d("Unknown sender. Skipping reply from {}".format(NOREPLY)) def handle(envelope: Envelope, msg: Message) -> str: diff --git a/templates/emails/base.html b/templates/emails/base.html index 1aa6daba..caf82657 100644 --- a/templates/emails/base.html +++ b/templates/emails/base.html @@ -482,7 +482,7 @@ {% block footer %} {% endblock %}

- +

Do you have a question? Contact us at https://app.simplelogin.io/dashboard/support

diff --git a/templates/emails/transactional/yahoo-transactional-complaint.txt.jinja2 b/templates/emails/transactional/yahoo-transactional-complaint.txt.jinja2 index d765f2ab..08b264e0 100644 --- a/templates/emails/transactional/yahoo-transactional-complaint.txt.jinja2 +++ b/templates/emails/transactional/yahoo-transactional-complaint.txt.jinja2 @@ -1,3 +1,6 @@ +{% extends "base.txt.jinja2" %} + +{% block content %} Hi, This is SimpleLogin team. @@ -17,6 +20,4 @@ If somehow Yahoo considers a forwarded email as Spam, it helps us if you can mov Please don't put our emails into the Spam folder. This can end up in your account being disabled on SimpleLogin. Looking to hear back from you. - -Best, -SimpleLogin Team. \ No newline at end of file +{% endblock %} \ No newline at end of file