-
Notifications
You must be signed in to change notification settings - Fork 1
/
.mbsyncrc
242 lines (210 loc) · 5.21 KB
/
.mbsyncrc
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
## This file pulls solismail and syncs it to a local folder
## passwords are stored as encrypted files in my home directory
IMAPAccount solismail
# Address to connect to
Host outlook.office365.com
User i.j.kocken@uu.nl
# To store the password in an encrypted file use PassCmd instead of Pass
# To work with 2-factor authentication for Microsoft Office (work) account
# I've now installed the package oauth2ms from https://github.com/harishkrupo/oauth2ms locally
PassCmd /home/japhir/bin/oauth2ms
AuthMechs XOAUTH2
IMAPStore solismail-remote
Account solismail
MaildirStore solismail-local
# The trailing "/" is important
Path ~/Maildir/solismail/
Inbox ~/Maildir/solismail/Inbox
SubFolders Verbatim
# sync solismail channel-by-channel to standardize names
Channel solismail-archive
Far :solismail-remote:"archive"
Near :solismail-local:"Archive"
CopyArrivalDate yes
Create Both
Expunge Both
SyncState *
Channel solismail-trash
Far :solismail-remote:"Deleted Items"
Near :solismail-local:"Trash"
CopyArrivalDate yes
Create Both
Expunge Both
SyncState *
Channel solismail-spam
Far :solismail-remote:"Junk Email"
Near :solismail-local:"Spam"
CopyArrivalDate yes
Create Both
Expunge Both
SyncState *
Channel solismail-sent
Far :solismail-remote:"Sent Items"
Near :solismail-local:"Sent"
CopyArrivalDate yes
Create Both
Expunge Both
SyncState *
Channel solismail-all
Far :solismail-remote:
Near :solismail-local:
Patterns "INBOX" "Drafts" "Important backlog" "NEXT" "news"
CopyArrivalDate yes
Create Both
Expunge Both
SyncState *
Group solismail
Channel hawaii-archive
Channel hawaii-trash
Channel hawaii-spam
Channel hawaii-sent
Channel hawaii-all
# this just synced all of solismail, copying the remote folder structure as-is
# Channel solismail
# Far :solismail-remote:
# Near :solismail-local:
# Patterns *
# # Automatically create missing mailboxes, both locally and on the server
# Create Both
# # Automatically delete items on both IMAP and local
# Expunge Both
# # Save the synchronization state files in the relevant directory
# SyncState *
# second account, work email gmail for ikocken@hawaii.edu
IMAPAccount hawaii
Host imap.gmail.com
User ikocken@hawaii.edu
PassCmd "cat ~/.hawaiipass"
AuthMechs LOGIN
SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt
Pipelinedepth 50
Timeout 60
IMAPStore hawaii-remote
Account hawaii
MaildirStore hawaii-local
Subfolders Verbatim
Path ~/Maildir/hawaii/
Inbox ~/Maildir/hawaii/Inbox
# sync everything at once
# Channel hawaii
# Far :hawaii-remote:
# Near :hawaii-local:
# Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail" "[Gmail]/Trash"
# Create Both
# Expunge Both
# SyncState *
# sync channel by channel so we can drop the [Gmail] prefix
# copied from: https://github.com/danielfleischer/mu4easy
Channel hawaii-inbox
Far :hawaii-remote:"INBOX"
Near :hawaii-local:"Inbox"
CopyArrivalDate yes
Create Both
Expunge Both
SyncState *
Channel hawaii-trash
Far :hawaii-remote:"[Gmail]/Trash"
Near :hawaii-local:"Trash"
CopyArrivalDate yes
Create Both
Expunge Both
SyncState *
Channel hawaii-spam
Far :hawaii-remote:"[Gmail]/Spam"
Near :hawaii-local:"Spam"
CopyArrivalDate yes
Create Both
Expunge Both
SyncState *
Channel hawaii-all
Far :hawaii-remote:"[Gmail]/All Mail"
Near :hawaii-local:"Archive"
CopyArrivalDate yes
Create Both
Expunge Both
SyncState *
# drafts often give sync issues...
# Channel hawaii-drafts
# Far :hawaii-remote:"[Gmail]/Drafts"
# Near :hawaii-local:"Drafts"
# CopyArrivalDate yes
# Create Both
# Expunge Both
# SyncState *
Group hawaii
Channel hawaii-inbox
Channel hawaii-trash
Channel hawaii-all
Channel hawaii-spam
# Channel hawaii-drafts
# note: no Sent items b/c they're in All Mail already!
# third account, personal gmail
IMAPAccount gmail
Host imap.gmail.com
User iljakocken@gmail.com
PassCmd "cat ~/.gmailpass"
AuthMechs LOGIN
SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt
Pipelinedepth 50
Timeout 60
IMAPStore gmail-remote
Account gmail
MaildirStore gmail-local
Subfolders Verbatim
Path ~/Maildir/gmail/
Inbox ~/Maildir/gmail/Inbox
# sync everything at once
# Channel hawaii
# Far :hawaii-remote:
# Near :hawaii-local:
# Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail" "[Gmail]/Trash"
# Create Both
# Expunge Both
# SyncState *
# sync channel by channel so we can drop the [Gmail] prefix
# copied from: https://github.com/danielfleischer/mu4easy
Channel gmail-inbox
Far :gmail-remote:"INBOX"
Near :gmail-local:"Inbox"
CopyArrivalDate yes
Create Both
Expunge Both
SyncState *
Channel gmail-trash
Far :gmail-remote:"[Gmail]/Trash"
Near :gmail-local:"Trash"
CopyArrivalDate yes
Create Both
Expunge Both
SyncState *
Channel gmail-spam
Far :gmail-remote:"[Gmail]/Spam"
Near :gmail-local:"Spam"
CopyArrivalDate yes
Create Both
Expunge Both
SyncState *
Channel gmail-all
Far :gmail-remote:"[Gmail]/All Mail"
Near :gmail-local:"Archive"
CopyArrivalDate yes
Create Both
Expunge Both
SyncState *
# drafts often give sync issues...
# Channel hawaii-drafts
# Far :hawaii-remote:"[Gmail]/Drafts"
# Near :hawaii-local:"Drafts"
# CopyArrivalDate yes
# Create Both
# Expunge Both
# SyncState *
Group gmail
Channel gmail-inbox
Channel gmail-trash
Channel gmail-all
Channel gmail-spam
# Channel gmail-drafts
# note: no Sent items b/c they're in All Mail already!