Description
Every time I restart Mailspring, it is not able to connect to my Gmail accounts anymore.
It will display the message below and clicking “Try Again” won’t help:
If I go to Preferences
> Accounts
and select my problematic email account, it will display this message:
Clicking on “Reconnect” will temporarily solve the issue (it will ask you to log in to your email account again). But, once you restart the application, the issue will come back.
Clicking “Error Details…” will give this log (remoteUID
s redacted):
Mailspring Version: 1.14.0-07c62cca
Platform: linux
Account State: sync_error
Account Provider: gmail
IMAP Server: imap.gmail.com
SMTP Server: smtp.gmail.com
--------------------------------------------
409 [2024-12-09 19:00:37.846] [background] [info] - Fetching full headers for 1024 (of 3939 needed)
409 [2024-12-09 19:00:40.399] [background] [warning] [SLOW] Transaction=insertMessage > 80ms (107ms, 0 waiting to aquire)
409 [2024-12-09 19:00:40.550] [background] [warning] [SLOW] Transaction=insertMessage > 80ms (105ms, 0 waiting to aquire)
409 [2024-12-09 19:00:40.704] [background] [warning] [SLOW] Transaction=insertMessage > 80ms (117ms, 0 waiting to aquire)
409 [2024-12-09 19:00:40.869] [background] [warning] [SLOW] Transaction=insertMessage > 80ms (120ms, 0 waiting to aquire)
409 [2024-12-09 19:00:50.882] [background] [info] Sync loop deleting unlinked messages with phase 1.
409 [2024-12-09 19:00:50.884] [background] [info] Sync loop complete.
409 [2024-12-09 19:00:50.884] [background] [info] Syncing folder list...
409 [2024-12-09 19:00:51.366] [background] [info] syncFolderUIDRange for [Gmail]/All Mail, UIDs: 89945 - 94945, Heavy: false
409 [2024-12-09 19:00:52.958] [background] [info] - [Gmail]/All Mail: remote=3239, local=0, remoteUID=...
409 [2024-12-09 19:00:52.960] [background] [info] - Fetching full headers for 1024 (of 3239 needed)
409 [2024-12-09 19:01:05.876] [background] [info] Sync loop deleting unlinked messages with phase 2.
409 [2024-12-09 19:01:05.878] [background] [info] Sync loop complete.
409 [2024-12-09 19:01:05.878] [background] [info] Syncing folder list...
409 [2024-12-09 19:01:06.552] [background] [info] syncFolderUIDRange for [Gmail]/All Mail, UIDs: 84945 - 89945, Heavy: false
409 [2024-12-09 19:01:07.462] [background] [info] - [Gmail]/All Mail: remote=1702, local=0, remoteUID=...
409 [2024-12-09 19:01:07.463] [background] [info] - Fetching full headers for 1024 (of 1702 needed)
409 [2024-12-09 19:01:19.651] [background] [info] syncFolderUIDRange for [Gmail]/Trash, UIDs: 1 - 70352, Heavy: false
409 [2024-12-09 19:01:20.299] [background] [info] - [Gmail]/Trash: remote=264, local=264, remoteUID=...
409 [2024-12-09 19:01:20.537] [background] [info] syncFolderUIDRange for [Gmail]/Spam, UIDs: 1 - 11005, Heavy: false
409 [2024-12-09 19:01:21.040] [background] [info] - [Gmail]/Spam: remote=40, local=40, remoteUID=...
409 [2024-12-09 19:01:21.041] [background] [info] Sync loop deleting unlinked messages with phase 1.
409 [2024-12-09 19:01:21.043] [background] [info] Sync loop complete.
409 [2024-12-09 19:01:21.043] [background] [info] Syncing folder list...
409 [2024-12-09 19:01:21.705] [background] [info] syncFolderUIDRange for [Gmail]/All Mail, UIDs: 79945 - 84945, Heavy: false
409 [2024-12-09 19:01:22.683] [background] [info] - [Gmail]/All Mail: remote=666, local=0, remoteUID=...
409 [2024-12-09 19:01:22.684] [background] [info] - Fetching full headers for 666 (of 666 needed)
To Reproduce…
Steps to reproduce the behavior:
- Add a Gmail account.
- Quit then restart app.
Expected Behavior
Mailspring should be able to sync to the email account that was added after restarting.
Screenshots
Already provided above.
Setup
- OS and Version: Bluefin-dx 41 (Fedora Silverblue 41)
- Installation Method: Flatpak
- Mailspring Version: 1.14.0-07c62cca
Additional Context
I’ve only ever used Mailspring w/ Gmail so I don’t know if this issue occurs with other email providers.