aboutsummaryrefslogtreecommitdiff
path: root/.mbsyncrc
blob: 1b2244ed9b51ecb9394b4076330dcd01c1cf1ee8 (plain)
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
# My credentials are encrypted with my GPG keys symmetrically. The login is done
# through SSL and the certificate file is located where openSUSE puts it. This
# configuration requires mbsync 1.3 (or current git master). I'm doing this
# because:
#   1. I need to increase the timeout for imap.novell.com
#   2. I need the improvements for subdirectories handling

##
# GMail

IMAPAccount gmail
Host imap.gmail.com
User mikisabate@gmail.com
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mbsyncpassgmail.gpg"
SSLType IMAPS
AuthMechs Login
CertificateFile /etc/ssl/ca-bundle.pem

# Use the account specified above as the remote storage.
IMAPStore gmail-remote
Account gmail

# Let's use /home/backup/mail as the prefix for the local storage.
MaildirStore gmail-local
Path /home/backup/mail/gmail/
Inbox /home/backup/mail/gmail/inbox
SubFolders Verbatim

# We could have one only channel, and filter them through the Patterns
# directive. I prefer having multiple channels and then group them.

Channel gmail-inbox
Master :gmail-remote:
Slave :gmail-local:
Patterns "INBOX"
Create Both
Expunge Both
Sync All
SyncState *

Channel gmail-all
Master :gmail-remote:"[Gmail]/Tot el correu"
Slave :gmail-local:"All"
Create Both
Expunge Both
Sync All
SyncState *

Channel gmail-sent
Master :gmail-remote:"[Gmail]/Enviats"
Slave :gmail-local:"Sent"
Create Both
Expunge Both
Sync All
SyncState *

# And finally group everything here.

Group gmail
Channel gmail-inbox
Channel gmail-all
Channel gmail-sent

##
# suse.de

IMAPAccount desuse
Host imap.suse.de
User msabate@freezeezy
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.imapsusede.gpg"
SSLType IMAPS
AuthMechs Login
CertificateFile /etc/ssl/ca-bundle.pem

IMAPStore desuse-remote
Account desuse

MaildirStore desuse-local
Path /home/backup/mail/desuse/
Inbox /home/backup/mail/desuse/inbox
SubFolders Verbatim

Channel desuse
Master :desuse-remote:
Slave :desuse-local:
Patterns *
Create Both
Sync All
Expunge Both
SyncState *

##
# suse.com

IMAPAccount comsuse
Host outlook.office365.com
User msabate@suse.com
PassCmd "~/bin/mutt_oauth2.py /home/backup/mail/comsuse/sessionfile"
SSLType IMAPS
AuthMechs XOAUTH2
CertificateFile /etc/ssl/ca-bundle.pem
Timeout 0

IMAPStore comsuse-remote
Account comsuse

MaildirStore comsuse-local
Path /home/backup/mail/comsuse/
Inbox /home/backup/mail/comsuse/inbox
SubFolders Verbatim

Channel comsuse
Master :comsuse-remote:
Slave :comsuse-local:
Patterns * !Calendar
Create Both
Sync All
Expunge Both
SyncState *

##
# ajuntament: notice that in this case the mailbox is configured to 'Pull' only
# and that deletions are not propagated. This is done to workaround the
# shamefully-low capacity given on this service, in a way that I have to
# periodically *remove everything* on the server. This is hence manually backed
# up.

IMAPAccount ajuntament
Host mail.diba.cat
User dibasp\\sabatesm
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mbsyncpasssusede.gpg"
SSLType IMAPS
AuthMechs Login
CertificateFile /etc/ssl/ca-bundle.pem
Timeout 0

IMAPStore ajuntament-remote
Account ajuntament

MaildirStore ajuntament-local
Path /home/backup/mail/ajuntament/
Inbox /home/backup/mail/ajuntament/inbox
SubFolders Verbatim

Channel ajuntament
Master :ajuntament-remote:
Slave :ajuntament-local:
Patterns * !Calendar
Create None
Sync Pull New Flags
Expunge None
SyncState *

##
# cgtsuse.org

IMAPAccount sindicat
Host cgtsuse.org
User msabate@cgtsuse.org
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mbsyncpasssusede.gpg"
SSLType IMAPS
AuthMechs Login
CertificateFile /etc/ssl/ca-bundle.pem
Timeout 0

IMAPStore sindicat-remote
Account sindicat

MaildirStore sindicat-local
Path /home/backup/mail/sindicat/
Inbox /home/backup/mail/sindicat/inbox
SubFolders Verbatim

Channel sindicat
Master :sindicat-remote:
Slave :sindicat-local:
Patterns * !Calendar
Create Both
Sync All
Expunge Both
SyncState *

##
# uoc.edu

IMAPAccount uoc
Host imap.gmail.com
User mssola@uoc.edu
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mbsyncpassuoc.gpg"
SSLType IMAPS
AuthMechs Login
CertificateFile /etc/ssl/ca-bundle.pem

# Use the account specified above as the remote storage.
IMAPStore uoc-remote
Account uoc

# Let's use /home/backup/mail as the prefix for the local storage.
MaildirStore uoc-local
Path /home/backup/mail/uoc/
Inbox /home/backup/mail/uoc/inbox
SubFolders Verbatim

Channel uoc-inbox
Master :uoc-remote:
Slave :uoc-local:
Patterns "INBOX"
Create Both
Expunge Both
Sync All
SyncState *

Channel uoc-all
Master :uoc-remote:"[Gmail]/Tot el correu"
Slave :uoc-local:"All"
Create Both
Expunge Both
Sync All
SyncState *

Channel uoc-sent
Master :uoc-remote:"[Gmail]/Enviats"
Slave :uoc-local:"Sent"
Create Both
Expunge Both
Sync All
SyncState *

# And finally group everything here.

Group uoc
Channel uoc-inbox
Channel uoc-all
Channel uoc-sent