Last active
          June 16, 2022 20:17 
        
      - 
      
 - 
        
Save tknv/b1f3cc4c59cd5088dad74e425bb1a33f to your computer and use it in GitHub Desktop.  
    isync office365
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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 @vnckppl! I've tried it out now, but get an error :( harishkrupo/oauth2ms#1
@japhir I am using this for resolving two-factor authentication. You can resolve it
without Authy, Google-Authenticator, Microsoft-Authenticator... But I do not use it for office365 yet.
But I think you can integrate it with mbsyncrc.
https://www.cyberciti.biz/faq/use-oathtool-linux-command-line-for-2-step-verification-2fa/
Please have a look.
…On Fri, 13 Nov 2020 at 01:29, Ilja Kocken ***@***.***> wrote:
 ***@***.**** commented on this gist.
 ------------------------------
 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.
 —
 You are receiving this because you authored the thread.
 Reply to this email directly, view it on GitHub
 <https://gist.github.com/b1f3cc4c59cd5088dad74e425bb1a33f#gistcomment-3525466>,
 or unsubscribe
 <https://github.com/notifications/unsubscribe-auth/AAAF4GZGGFWITF3LFD7BQ3LSPQLOBANCNFSM4TTCBWZQ>
 .
@vnckppl I've resolved my issue, I was copying over the wrong secret thingie :S.
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
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.