-
Notifications
You must be signed in to change notification settings - Fork 1
/
.offlineimaprc
49 lines (46 loc) · 1.69 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
[general]
accounts = pirjsuka
fsync = false
pythonfile = ~/.bin/offlineimap.py
[Account pirjsuka]
localrepository = pirjsuka-local
remoterepository = pirjsuka-server
synclabels = yes
labelsheader = X-Keywords
postsynchook = notmuch new
status_backend = sqlite
maxconnections = 3
autorefresh = 5
quick = 10
[Repository pirjsuka-server]
type = Gmail
remoteuser = pirjsuka
remotepasseval = get_pass("pirjsuka@gmail.com")
holdconnectionopen = true
keepalive = 60
ssl = yes
realdelete = no
folderfilter = lambda folder: folder in ['[Gmail]/Drafts',
'[Gmail]/Starred',
'INBOX']
sslcacertfile = /usr/local/etc/openssl/cert.pem
nametrans: lambda name: { '[Gmail]/Starred' : 'starred',
'[Gmail]/Trash' : 'killed',
'[Gmail]/Spam' : 'spam',
'[Gmail]/Sent Mail' : 'sent',
'[Gmail]/Drafts' : 'drafts',
'[Gmail]/All Mail' : 'archive',
'INBOX' : 'inbox',
}.get (name, name)
[Repository pirjsuka-local]
type = GmailMaildir
localfolders = ~/mail
nametrans: lambda name: dict((value,key) for key,value in
{ '[Gmail]/Starred' : 'starred',
'[Gmail]/Trash' : 'killed',
'[Gmail]/Spam' : 'spam',
'[Gmail]/Sent Mail' : 'sent',
'[Gmail]/Drafts' : 'drafts',
'[Gmail]/All Mail' : 'archive',
'INBOX' : 'inbox',
}.iteritems()).get (name, name)