Why does mailspring always be disconnected from GMAIL

Hello to all of you.

Is there somebody can help me.
Each time I quit Mailspring and reconnect, I have to reconnect all my Gmail account.
Is there a way to avoid that and keep all the Gmail connected ?

Thank you

Google gives Mailspring a long-lived refresh token when you sign in, so you should only ever have to authorize once. If you’re asked again on every launch, the token was saved but couldn’t be read back the next time Mailspring started: the sign-in works, the storage doesn’t. Nothing is wrong on Google’s side.

Two things to try, in order:

  1. Update to the current release (1.24.x). Versions from 2022 stored account secrets in the OS credential manager (Windows Credential Manager / macOS Keychain / Linux keyring) and that path was fragile — since 1.12.0 secrets are encrypted into Mailspring’s own config.json instead, which fixed most “re-authorize every launch” reports. After updating, go to Preferences > Accounts, select the account, and click Re-authenticate… once.
  2. If it still happens and you’re on Linux, the keyring that holds the encryption key isn’t available when Mailspring starts (very common with the snap and Flatpak builds). The fixes are in "Password Management Error" on Linux — Mailspring Documentation — for the snap it’s sudo snap connect mailspring:password-manager-service, and the .deb / .rpm packages are the most reliable option.

The full checklist, including antivirus / VPN products that intercept the Google sign-in, is at Connecting a Gmail or Google Workspace account — Mailspring Documentation.