-
Notifications
You must be signed in to change notification settings - Fork 0
/
.offlineimaprc
32 lines (29 loc) · 1.14 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
[general]
ui = ttyui
accounts = email1
[Account email1]
localrepository = email1-Local
remoterepository = email1-Remote
[Repository email1-Local]
type = Maildir
localfolders = ~/.maildir/email1
nametrans = lambda folder: {'Drafts': '[Gmail].Drafts',
'Sent': '[Gmail].Sent Mail',
'Starred': '[Gmail].Starred',
'Trash': '[Gmail].Trash',
'Archive': '[Gmail].All Mail',
}.get(folder, folder)
[Repository email1-Remote]
type = Gmail
remoteuser = email1
realdelete = no
maxconnections = 3
nametrans = lambda folder: {'[Gmail]/Drafts': 'Drafts',
'[Gmail]/Sent Mail': 'Sent',
'[Gmail]/Starred': 'Starred',
'[Gmail]/Trash': 'Trash',
'[Gmail]/All Mail': 'Archive',
'[Gmail]/Spam': 'Spams'
}.get(folder, folder)
folderfilter = lambda folder: folder not in ['[Gmail]/Important',
]