-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.offlineimaprc
47 lines (41 loc) · 1.62 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
[general]
accounts = gmail
[Account gmail]
localrepository = gmail-local
remoterepository = gmail-remote
status_backend = sqlite
#postsynchook = notmuch new
[Repository gmail-remote]
type = Gmail
remoteuser = linus.miller@thecodebureau.com
remotepass = cqnoqgyssuoxmyrt
nametrans = lambda folder: re.sub('.*Spam$', 'spam',
re.sub('.*Drafts$', 'drafts',
re.sub('.*Sent Mail$', 'sent',
re.sub('.*Starred$', 'starred',
re.sub('.*Trash$', 'trash',
re.sub('.*Bin$', 'bin',
re.sub('.*INBOX$', 'inbox',
re.sub('.*Important$', 'important', folder))))))))
folderfilter = lambda foldername: foldername not in ['[Gmail]/All Mail', '[Gmail]/Important']
# Necessary as of OfflineIMAP 6.5.4
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
[Repository gmail-local]
type = Maildir
localfolders = ~/mail/gmail
restoreatime = no
nametrans = lambda folder: re.sub('spam', '[Gmail].Spam',
re.sub('drafts', '[Gmail].Drafts',
re.sub('sent', '[Gmail].Sent Mail',
re.sub('starred', '[Gmail].Starred',
re.sub('inbox', 'INBOX',
re.sub('trash', '[Gmail].Trash',
re.sub('bin', '[Gmail].Bin',
re.sub('important', '[Gmail].Important', folder))))))))
[mbnames]
enabled = yes
filename = ~/.mutt/mailboxes
header = "mailboxes "
peritem = "+%(accountname)s/%(foldername)s"
sep = " "
footer = "\n"