From 2c46d1db8ebb85d5117793a2da79cfa6481c92f0 Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Sat, 14 Nov 2020 13:00:14 +0100 Subject: [PATCH] Add PGP_SIGNER and display if it's set --- app/config.py | 3 +++ app/dashboard/templates/dashboard/mailbox_detail.html | 5 ++++- server.py | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index 2cc6e73d..ff54a834 100644 --- a/app/config.py +++ b/app/config.py @@ -349,3 +349,6 @@ PGP_SENDER_PRIVATE_KEY_PATH = os.environ.get("PGP_SENDER_PRIVATE_KEY_PATH") if PGP_SENDER_PRIVATE_KEY_PATH: with open(get_abs_path(PGP_SENDER_PRIVATE_KEY_PATH)) as f: PGP_SENDER_PRIVATE_KEY = f.read() + +# the signer address that signes outgoing encrypted emails +PGP_SIGNER = os.environ.get("PGP_SIGNER") diff --git a/app/dashboard/templates/dashboard/mailbox_detail.html b/app/dashboard/templates/dashboard/mailbox_detail.html index 648e1df4..17b0f62e 100644 --- a/app/dashboard/templates/dashboard/mailbox_detail.html +++ b/app/dashboard/templates/dashboard/mailbox_detail.html @@ -85,7 +85,10 @@ Pretty Good Privacy (PGP)