After compiling the latest commit (as of 11 Nov 2020) and trying to add my O365 account using OAuth, the Mailspring webpage confirming the account was added shows after logging in, but the account window for the Mailspring app shows An unknown error has occurred (mailsync: 3765269347). The logs show the following result:
{ Error: An unknown error has occurred (mailsync: 3765269347)
at ChildProcess._proc.on.code (file:///C:/Users/<>/Downloads/mailspring/app/src/mailsync-process.ts:227:25)
at ChildProcess.emit (events.js:182:13)
at ChildProcess.EventEmitter.emit (domain.js:442:20)
at maybeClose (internal/child_process.js:962:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
message: 'An unknown error has occurred (mailsync: 3765269347)',
rawLog:
'\r\nWaiting for Account JSON:\r\n\r\nWaiting for Identity JSON:\r\ninfo: Identity created at 1604894368 - using ID Schema 1\r\r\ninfo: Fetching XOAuth2 access token from Gmail for 2fcf1402\r\r\n' } { pluginIds: [] }
[19048:1111/165135.977:INFO:CONSOLE(101)] "Error: An unknown error has occurred (mailsync: 3765269347)", source: C:\Users\<>\Downloads\mailspring\app\src\error-logger.js (101)
So what this appears to me is that the mailsync process is expecting the Gmail token instead of the O365 token. But since we can’t look at the mailsync source, I’m not sure.
I’m having issues adding office 365 University account that has two-factor authentication on. On Thunderbird, I was able to login using oauth2 however I don’t like the UI of Thunderbird which is why I keep going back to MailSpring hoping to see oauth2 on MailSpring