forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
offlineimaprc
39 lines (36 loc) · 1.47 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
[general]
ui = TTY.TTYUI
accounts = JimSalinas
pythonfile=~/.offlineimap.py
fsync = False
[Account JimSalinas]
localrepository = JimSalinas-Local
remoterepository = JimSalinas-Remote
status_backend = sqlite
postsynchook = notmuch new
[Repository JimSalinas-Local]
type = Maildir
localfolders = ~/.mail/salinas.j_gmail
nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
'sent': '[Gmail]/Sent Mail',
'flagged': '[Gmail]/Starred',
'trash': '[Gmail]/Trash',
'archive': '[Gmail]/All Mail',
}.get(folder, folder)
[Repository JimSalinas-Remote]
maxconnections = 1
type = Gmail
remoteuser = [email protected]
remotepasseval = get_keychain_pass(account="[email protected]", server="imap.gmail.com")
cert_fingerprint = 6d1b5b5ee0180ab493b71d3b94534b5ab937d042
realdelete = no
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',
'[Gmail]/Important',
'[Gmail]/Spam',
]