-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathofflineimaprc
39 lines (35 loc) · 945 Bytes
/
offlineimaprc
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
[general]
metadata = ~/msg/.offlineimap
accounts = fastmail
pythonfile = ~/bin/offlineimap-helpers.py
[Account fastmail]
localrepository = fastmail-local
remoterepository = fastmail-remote
autorefresh = 2
quick = 5
postsynchook = ~/bin/post-mail-hooks.sh
[Repository fastmail-local]
type = Maildir
localfolders = ~/msg
sep = /
nametrans = local_to_remote
[Repository fastmail-remote]
type = IMAP
remotehost = imap.fastmail.com
ssl = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
remoteuser = [email protected]
remotepasseval = get_password()
idlefolders = ["INBOX"]
nametrans = remote_to_local
folderfilter = lambda folder_name: (
folder_name not in ("Junk Mail", "Notes") and
not folder_name.startswith("Archive/20") and
not folder_name.startswith("Sent/20"))
[mbnames]
enabled = yes
filename = ~/.mutt/mailboxes
header = "mailboxes \\\n \"=inbox\" \\\n "
peritem = "=%(foldername)s"
sep = " \\\n "
footer = "\n"