mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
Broke the consumer script into separate files and started on a mail consumer
This commit is contained in:
parent
84d5f8cc5d
commit
a70b40f618
8 changed files with 378 additions and 230 deletions
|
|
@ -162,7 +162,21 @@ SCRATCH_DIR = "/tmp/paperless"
|
|||
# This is where Paperless will look for PDFs to index
|
||||
CONSUMPTION_DIR = os.environ.get("PAPERLESS_CONSUME")
|
||||
|
||||
# Set this and change the permissions on this file to 0600, or set it to
|
||||
# `None` and you'll be prompted for the passphrase at runtime. The default
|
||||
# looks for an environment variable.
|
||||
# If you want to use IMAP mail consumption, populate this with useful values.
|
||||
# If you leave HOST set to None, we assume you're not going to use this feature.
|
||||
MAIL_CONSUMPTION = {
|
||||
"HOST": os.environ.get("PAPERLESS_CONSUME_MAIL_HOST"),
|
||||
"PORT": os.environ.get("PAPERLESS_CONSUME_MAIL_PORT"),
|
||||
"USERNAME": os.environ.get("PAPERLESS_CONSUME_MAIL_USER"),
|
||||
"PASSWORD": os.environ.get("PAPERLESS_CONSUME_MAIL_PASS"),
|
||||
"USE_SSL": True, # If True, use SSL/TLS to connect
|
||||
"INBOX": "INBOX" # The name of the inbox on the server
|
||||
}
|
||||
|
||||
# This is used to encrypt the original documents and decrypt them later when you
|
||||
# want to download them. Set it and change the permissions on this file to
|
||||
# 0600, or set it to `None` and you'll be prompted for the passphrase at
|
||||
# runtime. The default looks for an environment variable.
|
||||
# DON'T FORGET TO SET THIS as leaving it blank may cause some strang things with
|
||||
# GPG, including an interesting case where it may "encrypt" zero-byte files.
|
||||
PASSPHRASE = os.environ.get("PAPERLESS_PASSPHRASE")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue