IMAPAccount mit
Host outlook.office365.com
Port 993
User benjames@mit.edu
PassCmd "oama access benjames@mit.edu"
AuthMechs XOAUTH2
TLSType IMAPS
SystemCertificates yes

IMAPStore mit-remote
Account mit

MaildirStore mit-local
Path ~/Mail/mit/
Inbox ~/Mail/mit/INBOX
SubFolders Verbatim

Channel mit
Far :mit-remote:
Near :mit-local:
Patterns INBOX "Sent Items" Drafts "Deleted Items" Archive "Junk Email"
Sync All
Create Near
Remove None
Expunge Near
SyncState *


IMAPAccount csail
Host imap.csail.mit.edu
Port 143
User benjames
AuthMechs CRAM-MD5 DIGEST-MD5
PassCmd "mail-secret get imap imap.csail.mit.edu benjames"
TLSType IMAPS
TLSType STARTTLS
TLSVersions +1.2 +1.3
SystemCertificates yes

IMAPStore csail-remote
Account csail

MaildirStore csail-local
Path ~/Mail/csail/
Inbox ~/Mail/csail/INBOX
Subfolders Verbatim

Channel csail
Far :csail-remote:
Near :csail-local:
Patterns INBOX Drafts Sent Trash Spam Archive
Sync All
Create Near
Remove None
Expunge Near
SyncState *
