Merge pull request #228 from ddddavidmartin/extend_email_handling

Set email inbox in config file, fetch email at consumer startup and bring documentation up to date
This commit is contained in:
Daniel Quinn
2017-05-27 13:07:17 +01:00
committed by GitHub
5 changed files with 23 additions and 10 deletions

View File

@@ -244,8 +244,10 @@ MAIL_CONSUMPTION = {
"PORT": os.getenv("PAPERLESS_CONSUME_MAIL_PORT"),
"USERNAME": os.getenv("PAPERLESS_CONSUME_MAIL_USER"),
"PASSWORD": os.getenv("PAPERLESS_CONSUME_MAIL_PASS"),
"USE_SSL": os.getenv("PAPERLESS_CONSUME_MAIL_USE_SSL", "y").lower() == "y", # If True, use SSL/TLS to connect
"INBOX": "INBOX" # The name of the inbox on the server
# If True, use SSL/TLS to connect
"USE_SSL": os.getenv("PAPERLESS_CONSUME_MAIL_USE_SSL", "y").lower() == "y",
# The name of the inbox on the server
"INBOX": os.getenv("PAPERLESS_CONSUME_MAIL_INBOX", "INBOX")
}
# This is used to encrypt the original documents and decrypt them later when