aboutsummaryrefslogtreecommitdiff
path: root/.mbsyncrc
blob: b80c0a1d44fcfb00b93a464326e198aff61adc13 (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
# 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 ~/.mail as the prefix for the local storage.
MaildirStore gmail-local
Path ~/.mail/gmail/
Inbox ~/.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 susede
Host imap.suse.de
User msabate
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mbsyncpasssusede.gpg"
SSLType IMAPS
AuthMechs Login
CertificateFile /etc/ssl/ca-bundle.pem

IMAPStore susede-remote
Account susede

MaildirStore susede-local
Path ~/.mail/susede/
Inbox ~/.mail/susede/inbox
SubFolders Verbatim

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

##
# suse.com

IMAPAccount susecom
Host gwmail.emea.novell.com
User msabate
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mbsyncpasssusecom.gpg"
SSLType IMAPS
AuthMechs Login
CertificateFile /etc/ssl/ca-bundle.pem
Timeout 0

IMAPStore susecom-remote
Account susecom

MaildirStore susecom-local
Path ~/.mail/susecom/
Inbox ~/.mail/susecom/inbox
SubFolders Verbatim

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