From 007aa56551e39c39546d9715868604f1faa84113 Mon Sep 17 00:00:00 2001 From: Son Date: Fri, 25 Feb 2022 12:21:53 +0100 Subject: [PATCH] user can turn on/off the including sender in header option --- app/dashboard/views/setting.py | 9 +++++++++ templates/dashboard/setting.html | 24 ++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/app/dashboard/views/setting.py b/app/dashboard/views/setting.py index 50699628..b9af1e0b 100644 --- a/app/dashboard/views/setting.py +++ b/app/dashboard/views/setting.py @@ -315,6 +315,15 @@ def setting(): return redirect(url_for("dashboard.setting")) Session.commit() flash("Your preference has been updated", "success") + elif request.form.get("form-name") == "sender-header": + choose = request.form.get("enable") + if choose == "on": + current_user.include_header_email_header = True + else: + current_user.include_header_email_header = False + Session.commit() + flash("Your preference has been updated", "success") + return redirect(url_for("dashboard.setting")) elif request.form.get("form-name") == "export-data": return redirect(url_for("api.export_data")) elif request.form.get("form-name") == "export-alias": diff --git a/templates/dashboard/setting.html b/templates/dashboard/setting.html index 41ec8855..da0b1097 100644 --- a/templates/dashboard/setting.html +++ b/templates/dashboard/setting.html @@ -520,6 +520,30 @@ +
+
+
Include original sender in email headers +
+
+ SimpleLogin forwards emails to your mailbox from the reverse-alias and not from the original sender address.
+ If this option is enabled, the original sender addresses is stored in the email header X-SimpleLogin-Envelope-From. + You can choose to display this header in your email client.
+ As email headers aren't encrypted, your mailbox service can know the sender address via this header. +
+
+ + +
+ + +
+ + +
+
+
+
Alias Import