-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
83 lines (65 loc) · 2.14 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# The token provider endpoint for your Azure AD tenant.
#
TOKEN_PROVIDER_ENDPOINT = 'https://login.windows.net/00000000-0000-0000-0000-000000000000/oauth2/token'
# The application ID from Azure.
#
CLIENT_ID = 'app_id'
# The application secret from Azure.
#
CLIENT_SECRET = 'app_secret'
# The Azure AD user who's mailbox to watch.
#
MAILBOX_USER = '[email protected]'
# The folder to watch for messages to forward.
#
WATCH_FOLDER = 'Inbox'
# Who to forward messages to. This will be round-robin, so the first message
# loaded from `WATCH_FOLDER` is forwarded to the first person in the list, second
# message to the second person in the list, etc.
#
FORWARD_TO = [
('Bender Bending Rodriguez', '[email protected]'),
('Zoidberg', '[email protected]'),
]
# Enable auto-reply to messages.
#
AUTO_REPLY = True
# Sender email addresses that will not be sent an auto-reply. You might want to use this
# if someone you reply to will also auto reply, and you end up in an infinite loop.
#
AUTO_REPLY_EXCLUSIONS = []
# Subject of auto-reply message.
#
AUTO_REPLY_SUBJECT = 'Your message has been received.'
# Content of auto-reply message.
#
AUTO_REPLY_BODY =\
"""
Hello,
Thank you for your email,
Planet Express Crew
### This is an automated reply ###
"""
# How many unread messages to load from `WATCH_FOLDER` each time it is checked. Set this
# to something reasonably high so that no messages are skipped.
#
# ex. `LOAD_MESSAGE_COUNT = 5` would load the 5 newest messages from `WATCH_FOLDER`.
#
LOAD_MESSAGE_COUNT = 250
# How often (in minutes) do you want to check `WATCH_FOLDER` for messages?
# Set this to something reasonable. Ideally >= 1 min.
#
POLL_INTERVAL = 5
# This file stores who should receive the next message from `WATCH_FOLDER`. This allows
# messages to be evenly distributed across `FORWARD_TO`, even in the event of a restart.
#
INDEX_FILE_PATH = 'index.dat'
# The path to the log file. Set this to None to print logs to stdout.
#
LOG_FILE_PATH = None
# For how many days should logs be kept?
#
LOG_BACKUPS = 14
LOG_LEVEL = 'INFO'
LOG_FORMAT = '%(asctime)s %(levelname)s %(message)s'
LOG_DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S'