-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.offlineimaprc
51 lines (47 loc) · 1.65 KB
/
.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
40
41
42
43
44
45
46
47
48
49
50
51
[general]
# list of the configured accounts
accounts = Personal
fsync = False
[Account Personal]
localrepository = Local
remoterepository = Remote
#autorefresh = 10 # no autorefresh, i run it one-shot each time
quick = 30
status_backend = sqlite
maxage = 900
[Repository Local]
type = Maildir
localfolders = /home/bergwolf/mail/
nametrans = lambda folder: re.sub('spam', '[Google Mail].Spam',
re.sub('drafts', '[Google Mail].Drafts',
re.sub('sent', '[Google Mail].Sent Mail',
re.sub('flagged', '[Google Mail].Starred',
re.sub('trash', '[Google Mail].Trash',
re.sub('important', '[Google Mail].Important',
re.sub('archive', '[Google Mail].All Mail', folder)))))))
[Repository Remote]
type = Gmail
remoteuser = <user>
realdelete = no
# google app-specific password
remotepass = <pass>
ssl = yes
maxconnections = 5
holdconnectionopen = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
# sslcacertfile = /etc/pki/tls/certs/ca-bundle.crt
postsynchook = notmuch new
nametrans = lambda folder: re.sub('.*Spam$', 'spam',
re.sub('.*Drafts$', 'drafts',
re.sub('.*Sent Mail$', 'sent',
re.sub('.*Starred$', 'flagged',
re.sub('.*Trash$', 'trash',
re.sub('.*Important$', 'important',
re.sub('.*All Mail$', 'archive', folder)))))))
[mbnames]
enabled = yes
filename = ~/.mutt/mailboxes
header = "mailboxes "
peritem = "+%(accountname)s/%(foldername)s"
sep = " "
footer = "\n"