forked from pvrego/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.offlineimaprc
362 lines (314 loc) · 13.9 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
# Sample minimal config file. Copy this to ~/.offlineimaprc and edit to
# suit to get started fast.
# passwords for offlineimap and msmtprc stored in OSX keychain
# http://stevelosh.com/blog/2012/10/the-homely-mutt/#getting-email
[general]
# List of accounts to be synced, separated by a comma.
#accounts = riseup,geomail
accounts = riseup,geomail,gmail,princeton,noaa
# Suppress nothing but errors
#ui = quiet
ui = ttyui
#ui = blinkenlights
pythonfile=~/.mutt/offlineimap.py
# Controls how many accounts may be synced simultaneously
maxsyncaccounts = 10
[mbnames]
# Generate a muttrc fragment containing the mailboxes offlineimap syncs
enabled = yes
filename = ~/.mutt/mailboxes
header = "mailboxes "
peritem = "+%(accountname)s/%(foldername)s"
sep = " "
footer = "\n"
[Account riseup]
# Identifier for the local repository; e.g. the maildir to be synced via IMAP.
localrepository = riseup-local
# Identifier for the remote repository; i.e. the actual IMAP, usually non-local.
remoterepository = riseup-remote
# Status cache. Default is plain, which eventually becomes huge and slow.
#status_backend = sqlite
#presynchook = imapfilter -c ~/.imapfilter/riseup.lua
#presynchook = imapfilter -t /usr/local/etc/openssl/cert.pem -c ~/.imapfilter/riseup.lua
presynchook = imapfilter -t ~/.mutt/cert.pem -c ~/.imapfilter/riseup.lua
postsynchook = notmuch new
# Minutes between syncs
#autorefresh = 5
# Number of quick-syncs between autorefreshes. Quick-syncs do not update if the
# only changes were to IMAP flags
#quick = 10
[Repository riseup-local]
# Currently, offlineimap only supports maildir and IMAP for local repositories.
type = Maildir
# Where should the mail be placed?
localfolders = ~/Mail/riseup
[Repository riseup-remote]
# Remote repos can be IMAP or Gmail, the latter being a preconfigured IMAP.
type = IMAP
remotehost = mail.riseup.net
remoteuser = andersd
remotepasseval = get_keychain_pass(account="andersd", server="mail.riseup.net")
ssl = yes
cert_fingerprint = 86a010ddba262196d7f6f1f47ae03032f9031c32
#folderfilter = lambda folder: folder not in ['Drafts']
# Instead of closing the connection once a sync is complete, offlineimap will
# send empty data to the server to hold the connection open. A value of 60
# attempts to hold the connection for a minute between syncs (both quick and
# autorefresh).This setting has no effect if autorefresh and holdconnectionopen
# are not both set.
#keepalive = 60
# OfflineIMAP normally closes IMAP server connections between refreshes if
# the global option autorefresh is specified. If you wish it to keep the
# connection open, set this to true. This setting has no effect if autorefresh
# is not set.
#holdconnectionopen = yes
[Account geomail]
# Identifier for the local repository; e.g. the maildir to be synced via IMAP.
localrepository = geomail-local
# Identifier for the remote repository; i.e. the actual IMAP, usually non-local.
remoterepository = geomail-remote
# Status cache. Default is plain, which eventually becomes huge and slow.
#status_backend = sqlite
postsynchook = notmuch new
# Minutes between syncs
#autorefresh = 5
# Number of quick-syncs between autorefreshes. Quick-syncs do not update if the
# only changes were to IMAP flags
#quick = 10
[Repository geomail-local]
# Currently, offlineimap only supports maildir and IMAP for local repositories.
type = Maildir
# Where should the mail be placed?
localfolders = ~/Mail/geomail
[Repository geomail-remote]
# Remote repos can be IMAP or Gmail, the latter being a preconfigured IMAP.
type = IMAP
remotehost = imap.au.dk
remoteuser = au217756
remotepasseval = get_keychain_pass(account="au217756", server="imap.au.dk")
ssl = yes
cert_fingerprint = ae2c89d80632be3ec8a149225199e3cdcc88311f
folderfilter = lambda folder: not re.search('NFIT-Import|geo07kej|Suggested Contacts|Noter|Opgaver|Journal|Slettet post|archive|Kalender|Kontaktpersoner|RSS Feeds', folder)
# Instead of closing the connection once a sync is complete, offlineimap will
# send empty data to the server to hold the connection open. A value of 60
# attempts to hold the connection for a minute between syncs (both quick and
# autorefresh).This setting has no effect if autorefresh and holdconnectionopen
# are not both set.
#keepalive = 60
# OfflineIMAP normally closes IMAP server connections between refreshes if
# the global option autorefresh is specified. If you wish it to keep the
# connection open, set this to true. This setting has no effect if autorefresh
# is not set.
#holdconnectionopen = yes
[Account ucsd]
# Identifier for the local repository; e.g. the maildir to be synced via IMAP.
localrepository = ucsd-local
# Identifier for the remote repository; i.e. the actual IMAP, usually non-local.
remoterepository = ucsd-remote
# Status cache. Default is plain, which eventually becomes huge and slow.
#status_backend = sqlite
postsynchook = notmuch new
# Minutes between syncs
#autorefresh = 5
# Number of quick-syncs between autorefreshes. Quick-syncs do not update if the
# only changes were to IMAP flags
#quick = 10
[Repository ucsd-local]
# Currently, offlineimap only supports maildir and IMAP for local repositories.
type = Maildir
# Where should the mail be placed?
localfolders = ~/Mail/ucsd
[Repository ucsd-remote]
# Remote repos can be IMAP or Gmail, the latter being a preconfigured IMAP.
type = IMAP
remotehost = mail.ucsd.edu
remoteuser = adamsgaard
remotepasseval = get_keychain_pass(account="adamsgaard", server="mail.ucsd.edu")
ssl = yes
cert_fingerprint = ec083b38e0a1942725d301d120893c1014701062
#folderfilter = lambda folder: folder not in ['Kalender','Kontaktpersoner','Slettet post','NFIT-Import-adc-2012-09-11-04:18']
# Instead of closing the connection once a sync is complete, offlineimap will
# send empty data to the server to hold the connection open. A value of 60
# attempts to hold the connection for a minute between syncs (both quick and
# autorefresh).This setting has no effect if autorefresh and holdconnectionopen
# are not both set.
#keepalive = 60
# OfflineIMAP normally closes IMAP server connections between refreshes if
# the global option autorefresh is specified. If you wish it to keep the
# connection open, set this to true. This setting has no effect if autorefresh
# is not set.
#holdconnectionopen = yes
[Account gmail]
# Identifier for the local repository; e.g. the maildir to be synced via IMAP.
localrepository = gmail-local
# Identifier for the remote repository; i.e. the actual IMAP, usually non-local.
remoterepository = gmail-remote
# Status cache. Default is plain, which eventually becomes huge and slow.
#status_backend = sqlite
postsynchook = notmuch new
# Minutes between syncs
#autorefresh = 5
# Number of quick-syncs between autorefreshes. Quick-syncs do not update if the
# only changes were to IMAP flags
#quick = 10
[Repository gmail-local]
# Currently, offlineimap only supports maildir and IMAP for local repositories.
type = Maildir
# Where should the mail be placed?
localfolders = ~/Mail/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 gmail-remote]
# Remote repos can be IMAP or Gmail, the latter being a preconfigured IMAP.
type = Gmail
remoteuser = [email protected]
remotepasseval = get_keychain_pass(account="[email protected]", server="imap.gmail.com")
auth_mechanisms = LOGIN
realdelete = no
nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
'sent': '[Gmail]/Sent Mail',
'flagged': '[Gmail]/Starred',
'trash': '[Gmail]/Trash',
'archive': '[Gmail]/All Mail',
}.get(folder, folder)
#cert_fingerprint = c1a3bb1a8617af4a28ee2e0cd494533c3cd70bf8
#cert_fingerprint = fc0a6ba4bf46851bcea02c6a438de63f6811165b,5f9f9598bf27cce4a97762336a753b8c07878564,f0b04600b419486538ace149e3615c7d94953c87
ssl=true
# install openssl from homebrew
sslcacertfile=/usr/local/etc/openssl/cert.pem
#folderfilter = lambda folder: folder not in ['Kalender','Kontaktpersoner','Slettet post','NFIT-Import-adc-2012-09-11-04:18']
# Instead of closing the connection once a sync is complete, offlineimap will
# send empty data to the server to hold the connection open. A value of 60
# attempts to hold the connection for a minute between syncs (both quick and
# autorefresh).This setting has no effect if autorefresh and holdconnectionopen
# are not both set.
#keepalive = 60
# OfflineIMAP normally closes IMAP server connections between refreshes if
# the global option autorefresh is specified. If you wish it to keep the
# connection open, set this to true. This setting has no effect if autorefresh
# is not set.
#holdconnectionopen = yes
[Account icloud]
# Identifier for the local repository; e.g. the maildir to be synced via IMAP.
localrepository = icloud-local
# Identifier for the remote repository; i.e. the actual IMAP, usually non-local.
remoterepository = icloud-remote
# Status cache. Default is plain, which eventually becomes huge and slow.
#status_backend = sqlite
postsynchook = notmuch new
# Minutes between syncs
#autorefresh = 5
# Number of quick-syncs between autorefreshes. Quick-syncs do not update if the
# only changes were to IMAP flags
#quick = 10
[Repository icloud-local]
# Currently, offlineimap only supports maildir and IMAP for local repositories.
type = Maildir
# Where should the mail be placed?
localfolders = ~/Mail/icloud
[Repository icloud-remote]
# Remote repos can be IMAP or Gmail, the latter being a preconfigured IMAP.
type = IMAP
remotehost = imap.mail.me.com
remoteuser = a.damsgaard
remotepasseval = get_keychain_pass(account="a.damsgaard", server="imap.mail.me.com")
auth_mechanisms = PLAIN
ssl = yes
cert_fingerprint = 653087783af6e38b439b275bacba12777bdee9d1
#folderfilter = lambda folder: folder not in ['Drafts']
[Account princeton]
# Identifier for the local repository; e.g. the maildir to be synced via IMAP.
localrepository = princeton-local
# Identifier for the remote repository; i.e. the actual IMAP, usually non-local.
remoterepository = princeton-remote
# Status cache. Default is plain, which eventually becomes huge and slow.
#status_backend = sqlite
postsynchook = notmuch new
# Minutes between syncs
#autorefresh = 5
# Number of quick-syncs between autorefreshes. Quick-syncs do not update if the
# only changes were to IMAP flags
#quick = 10
[Repository princeton-local]
# Currently, offlineimap only supports maildir and IMAP for local repositories.
type = Maildir
# Where should the mail be placed?
localfolders = ~/Mail/princeton
[Repository princeton-remote]
# Remote repos can be IMAP or Gmail, the latter being a preconfigured IMAP.
type = IMAP
remotehost = exchangeimap.princeton.edu
remoteuser = andersd
remotepasseval = get_keychain_pass(account="andersd", server="exchangeimap.princeton.edu")
ssl = yes
cert_fingerprint = 0855b2039ba7540c2f53f186bfc34fde80468fad
#folderfilter = lambda folder: folder not in ['Kalender','Kontaktpersoner','Slettet post','NFIT-Import-adc-2012-09-11-04:18']
# Instead of closing the connection once a sync is complete, offlineimap will
# send empty data to the server to hold the connection open. A value of 60
# attempts to hold the connection for a minute between syncs (both quick and
# autorefresh).This setting has no effect if autorefresh and holdconnectionopen
# are not both set.
#keepalive = 60
# OfflineIMAP normally closes IMAP server connections between refreshes if
# the global option autorefresh is specified. If you wish it to keep the
# connection open, set this to true. This setting has no effect if autorefresh
# is not set.
#holdconnectionopen = yes
[Account noaa]
# Identifier for the local repository; e.g. the maildir to be synced via IMAP.
localrepository = noaa-local
# Identifier for the remote repository; i.e. the actual IMAP, usually non-local.
remoterepository = noaa-remote
# Status cache. Default is plain, which eventually becomes huge and slow.
#status_backend = sqlite
postsynchook = notmuch new
# Minutes between syncs
#autorefresh = 5
# Number of quick-syncs between autorefreshes. Quick-syncs do not update if the
# only changes were to IMAP flags
#quick = 10
[Repository noaa-local]
# Currently, offlineimap only supports maildir and IMAP for local repositories.
type = Maildir
# Where should the mail be placed?
localfolders = ~/Mail/noaa
nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
'sent': '[Gmail]/Sent Mail',
'flagged': '[Gmail]/Starred',
'trash': '[Gmail]/Trash',
'archive': '[Gmail]/All Mail',
}.get(folder, folder)
[Repository noaa-remote]
# Remote repos can be IMAP or Gmail, the latter being a preconfigured IMAP.
type = Gmail
remoteuser = [email protected]
remotepasseval = get_keychain_pass(account="[email protected]", server="imap.gmail.com")
auth_mechanisms = LOGIN
realdelete = no
nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
'sent': '[Gmail]/Sent Mail',
'flagged': '[Gmail]/Starred',
'trash': '[Gmail]/Trash',
'archive': '[Gmail]/All Mail',
}.get(folder, folder)
#cert_fingerprint = c1a3bb1a8617af4a28ee2e0cd494533c3cd70bf8
#cert_fingerprint = fc0a6ba4bf46851bcea02c6a438de63f6811165b,5f9f9598bf27cce4a97762336a753b8c07878564,f0b04600b419486538ace149e3615c7d94953c87
ssl=true
# install openssl from homebrew
sslcacertfile=/usr/local/etc/openssl/cert.pem
#folderfilter = lambda folder: folder not in ['Kalender','Kontaktpersoner','Slettet post','NFIT-Import-adc-2012-09-11-04:18']
# Instead of closing the connection once a sync is complete, offlineimap will
# send empty data to the server to hold the connection open. A value of 60
# attempts to hold the connection for a minute between syncs (both quick and
# autorefresh).This setting has no effect if autorefresh and holdconnectionopen
# are not both set.
#keepalive = 60
# OfflineIMAP normally closes IMAP server connections between refreshes if
# the global option autorefresh is specified. If you wish it to keep the
# connection open, set this to true. This setting has no effect if autorefresh
# is not set.
#holdconnectionopen = yes