forked from gf3/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.offlineimaprc
42 lines (38 loc) · 1.58 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
[general]
ui = Basic
accounts = Runlevel6
pythonfile=~/.mutt/offlineimap.py
fsync = False
[Account Runlevel6]
localrepository = Runlevel6-Local
remoterepository = Runlevel6-Remote
status_backend = sqlite
postsynchook = notmuch new
[Repository Runlevel6-Local]
type = Maildir
localfolders = ~/.mail/gianni-runlevel6.org
nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
'sent': '[Gmail]/Sent Mail',
'flagged': '[Gmail]/Starred',
'chats': '[Gmail]/Chats',
'trash': '[Gmail]/Trash',
'archive': '[Gmail]/All Mail',
}.get(folder, folder)
[Repository Runlevel6-Remote]
cert_fingerprint=6d1b5b5ee0180ab493b71d3b94534b5ab937d042
maxconnections = 1
type = Gmail
remoteuser = gianni@runlevel6.org
remotepasseval = get_keychain_pass(account="gianni@runlevel6.org", server="imap.gmail.com")
realdelete = no
nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts',
'[Gmail]/Sent Mail': 'sent',
'[Gmail]/Starred': 'flagged',
'[Gmail]/Chats': 'chats',
'[Gmail]/Trash': 'trash',
'[Gmail]/All Mail': 'archive',
}.get(folder, folder)
folderfilter = lambda folder: folder not in ['[Gmail]/Trash',
'[Gmail]/Important',
'[Gmail]/Spam',
]