+set sendmail = "msmtp -a office365"
+
+set spoolfile = "+office365/inbox" # set inbox
+set postponed = "+office365/drafts" # drafts folder
+unset record # do not move sent msgs to a folder, gmail does that
+unset move # do not move read msgs, gmail does that
+
+mailboxes "+office365/inbox"
+mailboxes "+office365/sent"
+mailboxes "+office365/archive"
+mailboxes "+office365/drafts"
+mailboxes "+office365/spam"
+mailboxes "+office365/bin"
+
+macro index,pager gi "<change-folder>=office365/inbox<return>" "go to inbox"
+macro index,pager ga "<change-folder>=office365/archive<return>" "go to archive"
+macro index,pager gs "<change-folder>=office365/spam<return>" "go to spam"