-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.offlineimaprc
81 lines (75 loc) · 3.18 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[general]
ui = ttyui
accounts = RossTimson, Gmail
pythonfile = ~/bin/offlineimap_secrets.py
fsync = False
# Max number of concurrent connections.
maxsyncaccounts = 1
# My main email account for real people: [email protected]
[Account RossTimson]
localrepository = RossTimson-Local
remoterepository = RossTimson-Remote
status_backend = sqlite
# Number of 'quick' syncs between full syncs, saves time.
quick = 5
postsynchook = notmuch new
[Repository RossTimson-Local]
type = Maildir
localfolders = ~/.mail/ross-rosstimson.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 RossTimson-Remote]
type = Gmail
remoteuser = [email protected]
remotepasseval = grab_secret('AppSpecific/offlineimap-rosstimson')
ssl = yes
sslcacertfile = /usr/local/share/certs/ca-root-nss.crt
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',
]
# My Gmail account for shops etc and less important stuff: [email protected]
[Account Gmail]
localrepository = Gmail-Local
remoterepository = Gmail-Remote
status_backend = sqlite
# Number of 'quick' syncs between full syncs, saves time.
quick = 5
postsynchook = notmuch new
[Repository Gmail-Local]
type = Maildir
localfolders = ~/.mail/rosstimson-gmail.com
nametrans = lambda folder: {'drafts': '[Google Mail]/Drafts',
'sent': '[Google Mail]/Sent Mail',
'flagged': '[Google Mail]/Starred',
'trash': '[Google Mail]/Trash',
'archive': '[Google Mail]/All Mail',
}.get(folder, folder)
[Repository Gmail-Remote]
type = Gmail
remoteuser = [email protected]
remotepasseval = grab_secret('AppSpecific/offlineimap-gmail')
ssl = yes
sslcacertfile = /usr/local/share/certs/ca-root-nss.crt
realdelete = no
nametrans = lambda folder: {'[Google Mail]/Drafts': 'drafts',
'[Google Mail]/Sent Mail': 'sent',
'[Google Mail]/Starred': 'flagged',
'[Google Mail]/Trash': 'trash',
'[Google Mail]/All Mail': 'archive',
}.get(folder, folder)
folderfilter = lambda folder: folder not in ['[Google Mail]/Trash',
'[Google Mail]/Important',
'[Google Mail]/Spam',
]