summaryrefslogtreecommitdiffstats
path: root/.offlineimaprc
blob: b74910b711a822b19f69bd9e015107ee169d9ba9 (plain) (blame)
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
[general]
ui = TTY.TTYUI
accounts = Tharre
pythonfile=~/.mutt/offlineimap.py
fsync = False

[Account Tharre]
localrepository = Tharre-Local
remoterepository = Tharre-Remote
status_backend = sqlite
postsynchook = notmuch new

[Repository Tharre-Local]
type = Maildir
localfolders = ~/.mail/tharre3@gmail.com
nametrans = lambda folder: {'drafts':  '[Gmail]/Drafts',
                            'sent':    '[Gmail]/Sent Mail',
                            'flagged': '[Gmail]/Starred',
                            'trash':   '[Gmail]/Trash',
                            'archive': '[Gmail]/All Mail',
                            }.get(folder, folder)

[Repository Tharre-Remote]
maxconnections = 8
type = Gmail
remoteuser = tharre3@gmail.com
remotepasseval = get_pass("tharre3@gmail.com")
realdelete = no
# Necessary as of OfflineIMAP 6.5.4
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
nametrans = lambda folder: {'[Gmail]/Drafts':    'drafts',
                            '[Gmail]/Sent Mail': 'sent',
                            '[Gmail]/Starred':   'flagged',
                            '[Gmail]/Trash':     'trash',
                            '[Gmail]/All Mail':  'archive',
                            }.get(folder, folder)
folderfilter = lambda folder: folder not in ['[Gmail]/Trash',
                                             'Nagios',
                                             'Django',
                                             'Flask',
                                             '[Gmail]/Important',
                                             '[Gmail]/Spam',
                                             ]