# mbsync-outlook -rw-r--r-- 749 bytes View raw
                                                                                
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
IMAPAccount my-outlook
# Address to connect to
Host outlook.office365.com
User yourmail@outlook.com
Pass yourpass
# To store the password in an encrypted file use PassCmd instead of Pass
# PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mailpass.gpg"
#
# Use SSL
SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt

IMAPStore my-outlook-remote
Account my-outlook

MaildirStore my-outlook-local
Path ~/Maildir/my-outlook/
Inbox ~/Maildir/my-outlook/Inbox
SubFolders Verbatim

Channel my-outlook
Master :my-outlook-remote:
Slave :my-outlook-local:
Patterns *
# Automatically create missing mailboxes, both locally and on the server
Create Both
Expunge Both
# Save the synchronization state files in the relevant directory
SyncState *