-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py.sample
31 lines (27 loc) · 1.07 KB
/
config.py.sample
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
import os
import subprocess
# You can do magic here to get the passwords you need, e.g. communicate with
# Gnome Keyring.
imapPasswordScript = os.path.expanduser("~/.imap-passwords")
#######################################################
# Adjust this to get a copy of the passwords you need #
#######################################################
password = subprocess.check_output([
imapPasswordScript,
"get",
"user",
"host"]).strip().decode("UTF-8")
certfile = os.path.expanduser("~/.mailcert.pem")
##################################################
# Add a line for each folder you want to monitor #
##################################################
accounts = [
(["name", "host", certfile, "user", password, "INBOX"],
{"port": 1143, "security": "explicit-ssl"}),
(["name", "host", certfile, "user", password, "Folder"],
{"port": 1143, "security": "explicit-ssl"}),
(["name", "host", certfile, "user", password, "INBOX"],
{"security": "starttls"}),
(["name", "host", certfile, "user", password, "Folder"],
{"security": "starttls"}),
]