-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig
51 lines (43 loc) · 1.51 KB
/
config
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
# Offlineimap configuration file for protonmail
#
# examples on linux: /home/linuxbrew/.linuxbrew/etc/offlineimap.conf.minimal
# /home/linuxbrew/.linuxbrew/etc/offlineimap.conf
[general]
accounts = protonmail
# this just runs a line of python to env vars below: from os import environ
pythonfile = ~/.config/offlineimap/offlineimap_account_setup.py
metadata = ~/.cache/offlineimap
[Account protonmail]
remoterepository = protonmail-remote
localrepository = protonmail-local
# this is to make notmuch update tags
# postsynchook = ~/.config/offlineimap/postsync.sh
[Repository protonmail-local]
type = Maildir
localfolders = ~/.local/share/offlineimap
sync_deletes = no
[Repository protonmail-remote]
type = IMAP
# These are just environment variables, and won't work without the python file
remotehosteval = environ["MAIL_SERVER"]
remoteporteval = int(environ["MAIL_PORT"])
remoteusereval = environ["MAIL_USER"]
remotepasseval = environ["MAIL_PASS"]
# this part is important for protonmail
starttls = yes
ssl = no
ssl_version = tls1_2
sslcacertfile = ~/.config/protonmail/bridge/cert.pem
# I don't know what this does
expunge = yes
# section for what folders and labels you pull
nametrans = lambda foldername: re.sub ('^Folders.', '', foldername)
folderfilter = lambda foldername: foldername not in ['All Mail']
# this generates a config for neomutt
[mbnames]
enabled = yes
filename = ~/.config/neomutt/mailboxes
header = "named-mailboxes \"\" "
peritem = "+%(foldername)s"
sep = "\nnamed-mailboxes \"\" "
footer = "\n"