Description
To Reproduce…
Steps to reproduce the behavior:
- Restart Mailspring
Expected Behavior
I expect Mailspring to connect/sync all may mail accounts.
Screenshots
Setup
- OS and Version: Windows10pro
- Installation Method: Mailspring Windows Installer
- Mailspring Version: 1.10.5-1ce06f18
Additional Context
I have three email accounts that Mailspring will not store credentials for. Everytime I restart Mailspring, I have to “Reconnet” these accounts or they will not connect/sync.
1 is a Google Workspace Account
1 is a standard Gmail Account
1 is a standard IMAP account.
All my other Google Workspace accounts and standard IMAP accounts work. Just these three that have issues.
I’ve tried re-installing Mailspring over the existing install, but not removing or re-installing because of the number of accounts, I didn’t want to reload/reinstall all accounts.
The following errors are present in the Mailspring logs:
"Error: null17420 [2022-09-28 10:57:17.392] [background] [critical] \r\n***\r\n*** Mailspring Sync \r\n*** An exception occurred during program execution: \r\n*** {\"debuginfo\":\"https://www.googleapis.com/oauth2/v4/token RETURNED {\\n \\\"error\\\": \\\"unauthorized_client\\\",\\n \\\"error_description\\\": \\\"Unauthorized\\\"\\n}\",\"key\":\"Invalid Response Code: 401\",\"retryable\":false,\"what\":\"Unknown exception\"}\r\n***\r\n\r\r\n\n at ChildProcess.onStreamCloseOrExit (file:///C:/Users/appveyor/AppData/Local/Temp/1/nylas-build/electron-packager/win32-x64/Mailspring-win32-x64/resources/app/src/mailsync-process.ts:313:17)\n at ChildProcess.emit (node:events:390:28)\n at ChildProcess.emit (node:domain:475:12)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)",
"message": "null17420 [2022-09-28 10:57:17.392] [background] [critical] \r\n***\r\n*** Mailspring Sync \r\n*** An exception occurred during program execution: \r\n*** {\"debuginfo\":\"https://www.googleapis.com/oauth2/v4/token RETURNED {\\n \\\"error\\\": \\\"unauthorized_client\\\",\\n \\\"error_description\\\": \\\"Unauthorized\\\"\\n}\",\"key\":\"Invalid Response Code: 401\",\"retryable\":false,\"what\":\"Unknown exception\"}\r\n***\r\n\r\r\n"
"Error: Account is missing required fields:imap_password or refresh_token\n at ChildProcess.onStreamCloseOrExit (file:///C:/Users/appveyor/AppData/Local/Temp/1/nylas-build/electron-packager/win32-x64/Mailspring-win32-x64/resources/app/src/mailsync-process.ts:305:21)\n at ChildProcess.emit (node:events:390:28)\n at ChildProcess.emit (node:domain:475:12)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)",
"message": "Account is missing required fields:imap_password or refresh_token"
"Error: Setup Failed: Failed opening file C:\\Users\\User001\\AppData\\Roaming\\Mailspring\\mailsync-f7551309.log for writing: Permission denied\n at ChildProcess.onStreamCloseOrExit (file:///C:/Users/appveyor/AppData/Local/Temp/1/nylas-build/electron-packager/win32-x64/Mailspring-win32-x64/resources/app/src/mailsync-process.ts:305:21)\n at ChildProcess.emit (node:events:390:28)\n at ChildProcess.emit (node:domain:475:12)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)",
"message": "Setup Failed: Failed opening file C:\\Users\\User001\\AppData\\Roaming\\Mailspring\\mailsync-f7551309.log for writing: Permission denied"