From f778d3a6e3c4cd52cc412771235f48fdcb1b3b5a Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Sun, 18 Mar 2018 14:08:41 +0000 Subject: [PATCH] Remove last remnants of PAPERLESS_SHARED_SECRET --- docs/setup.rst | 2 +- src/documents/mail.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/setup.rst b/docs/setup.rst index 9f52143df..ef6c33468 100644 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -269,7 +269,7 @@ Vagrant Method dumped to be consumed by Paperless. * ``PAPERLESS_PASSPHRASE``: this is the passphrase Paperless uses to encrypt/decrypt the original document. - * ``PAPERLESS_SHARED_SECRET``: this is the "magic word" used when consuming + * ``PAPERLESS_EMAIL_SECRET``: this is the "magic word" used when consuming documents from mail or via the API. If you don't use either, leaving it blank is just fine. diff --git a/src/documents/mail.py b/src/documents/mail.py index a0aa2d850..d2828a57c 100644 --- a/src/documents/mail.py +++ b/src/documents/mail.py @@ -42,10 +42,7 @@ class Message(Loggable): and n attachments, and that we don't care about the message body. """ - SECRET = os.getenv( - "PAPERLESS_EMAIL_SECRET", - os.getenv("PAPERLESS_SHARED_SECRET") # TODO: Remove after 2017/09 - ) + SECRET = os.getenv("PAPERLESS_EMAIL_SECRET") def __init__(self, data, group=None): """