- 
      
 - 
        
Save tknv/b1f3cc4c59cd5088dad74e425bb1a33f to your computer and use it in GitHub Desktop.  
| IMAPAccount work | |
| Host outlook.office365.com | |
| User [email protected] | |
| PassCmd "pass mail/work-gpg" | |
| UseIMAPS yes | |
| CertificateFile /etc/ssl/certs/ca-certificates.crt | |
| IMAPStore work-remote | |
| Account work | |
| MaildirStore work-local | |
| Path ~/mail/work/ | |
| Inbox ~/mail/work/Inbox | |
| Channel work | |
| Master :work-remote: | |
| Slave :work-local: | |
| # Include everything | |
| Patterns "INBOX" "*" | |
| # Automatically create missing mailboxes, both locally and on the server | |
| Create Both | |
| Sync All | |
| # Save the synchronization state files in the relevant directory | |
| SyncState * | 
thanks, I tried searching for configs many times, but my work email is an office 365 account that has recently switched to two-factor authentication/oauth2 and since then I've been reading my email in the browser. But it keeps logging me out and I miss mu4e ;-).
For office 365 I can't find anywhere how to generate these tokens that people seem to be successfully using for gmail.
I have the same issue and came across this: https://www.reddit.com/r/emacs/comments/jreehr/imap_and_smtp_oauth2_configuration_for_office_365/ (links to: https://github.com/harishkrupo/oauth2ms) I haven't tried it yet though.
Thanks @vnckppl! I've tried it out now, but get an error :( harishkrupo/oauth2ms#1
@vnckppl I've resolved my issue, I was copying over the wrong secret thingie :S.
I've never tried oauth2 with mbsync.
Looks it will help(I googled) : http://blog.onodera.asia/2020/06/how-to-use-google-g-suite-oauth2-with.html