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 *