The Eternal Sync Bug

I have an interesting incidental finding, which may or may not be directly related to everlasting sync issues… I have disabled the “Show icon in menu / system tray”. My issue with this was Mailspring seemed to be constantly using at least 30 to 40% of one of my CPU cores once started, until I exited it from the tray icon. Now, the interesting bit is that by disabling that option and minimizing the client, the CPU cycles it consumes drops to 0% or almost 0%, while with the tray icon, it would keep consuming a lot of cycles even when no visible window (close or minimize), which leads me to believe there could be some sloppy code with a high rate polling being done by the tray icon. This is a wild guess, as I have not investigated the implementation, but could help finding the offending bit of code.

Email Provider
Gmail

Setup

  • OS and Version: Manjaro Linux x86_64
  • Installation Method: pamac via AUR build
  • Mailspring Version: 1.9.1-30ef802f

Using mailspring on macOS iMac - Catalina. When I delete a message using a gesture (swiping from left to right) - i get the eternal sync bug.

Screen Recording 2021-08-02 at 12.53.11

same issue with yahoo mail on arch linux. Stuck on “Scanning Messages”

Hello,

I think I have a very similar problem with a sync of the Office 365 email (Outlook) via IMAP on Windows 10 (with the latest client version).

There is an error in my log repeated multiple times (part from line 38 is repeating):
repeating_errors.log (2.4 KB)

Same issue here with an SMTP account :

16668 [2021-09-23 11:16:22.559] [background] [info] --sleeping
16668 [2021-09-23 11:18:22.559] [background] [info] Syncing folder list…
16668 [2021-09-23 11:18:27.126] [background] [info] syncFolderUIDRange for INBOX, UIDs: 41269 - 42019, Heavy: true
21706 [2021-09-23 11:19:09.516] [main] [info] Identity created at 1588348170 - using ID Schema 1
21706 [2021-09-23 11:19:09.518] [main] [info] ------------- Starting Sync (EMAIL) ---------------
21706 [2021-09-23 11:19:09.529] [metadata] [info] Metadata delta stream starting…
21706 [2021-09-23 11:19:12.527] [background] [info] Marking all folders as busy
21706 [2021-09-23 11:19:12.527] [background] [info] Syncing folder list…
21706 [2021-09-23 11:19:15.135] [background] [info] Syncing folder list…
21706 [2021-09-23 11:19:17.406] [foreground] [info] Connection does not support idling. Locking until more to do…
21706 [2021-09-23 11:19:18.974] [background] [info] syncFolderUIDRange for INBOX, UIDs: 41269 - 42019, Heavy: true
21706 [2021-09-23 11:19:24.529] [metadataExpiration] [info] Scanning for expired metadata
21706 [2021-09-23 11:19:24.530] [metadataExpiration] [info] – Will wake for next expiration in 7200sec
21706 [2021-09-23 11:20:36.385] [background] [critical]


*** Mailspring Sync
*** An exception occurred during program execution:
*** {“debuginfo”:“syncFolderUIDRange - fetchMessagesByUID”,“key”:“ErrorParse”,“retryable”:true,“what”:“std::exception”}


21706 [2021-09-23 11:20:36.385] [background] [critical] *** Stack trace (line numbers are approximate):
*** ??:? SyncWorker::syncFolderUIDRange(Folder&, mailcore::Range, bool, vector*)
*** ??:? SyncWorker::syncNow()
*** ??:? runBackgroundSyncWorker()
*** main.cpp:? main::{lambda()#3}::operator()() const
*** main.cpp:? _Bind_simple::operator()()
*** main.cpp:? thread::_Impl::_M_run()
*** thread.o:? execute_native_thread_routine()

Same here - I’m getting an error trying to sync my iCloud account and it fails in the same place:

4915 [2021-10-06 09:44:32.750] [background] [info] syncFolderUIDRange for Archive, UIDs: 1 - 4026, Heavy: true
4915 [2021-10-06 09:44:34.095] [background] [critical] 
***
*** Mailspring Sync 
*** An exception occurred during program execution: 
*** {"debuginfo":"syncFolderUIDRange - fetchMessagesByUID","key":"ErrorParse","retryable":true,"what":"std::exception"}
***

4915 [2021-10-06 09:44:34.095] [background] [critical] *** Stack trace (line numbers are approximate):
*** in mailsync     SyncWorker::syncFolderUIDRange(Folder&, mailcore::Range, bool, vector*)
*** in mailsync     SyncWorker::syncNow()
*** in mailsync     runBackgroundSyncWorker()
*** in mailsync     main::$_6::operator()() const
*** in mailsync     void* __thread_proxy(void*)
*** 0x7fff20392443  thread_start()
***

I’m stuck at the initial sync. It’s been sitting at scanning - inbox 2%, all the other folders 0%. It’s been like this for hours.

Email provider: Hotmail
System: macOS Catalina v10.15.7
Mailspring version: Version 1.9.2

Not really sure what I’m looking for in the logs (sorry new to this)… Seeing lots of this:

*** Mailspring Sync
*** An exception occurred during program execution:
*** {“debuginfo”:“syncFoldersAndLabels - fetchAllFolders”,“key”:“ErrorParse”,“retryable”:true,“what”:“std::exception”}


14841 [2021-11-12 10:41:47.268] [background] [critical] *** Stack trace (line numbers are approximate):
*** in mailsync SyncWorker::syncFoldersAndLabels()
*** in mailsync SyncWorker::syncNow()
*** in mailsync runBackgroundSyncWorker()
*** in mailsync main::$_6::operator()() const
*** in mailsync void* __thread_proxy(void*)
*** in mailsync thread_start()

Anyone know what to do?

1 Like

Same issue but with outlook/hotmail account for me.

But I have noticed that this is not problem only with Mailspring, but I am getting the same issue also with other email clients like Edison, Spark, Canary [all use MailCore2 !] even Apple mail (I am not sure if they also use MailCore)…

And it happens in multiple steps

  1. Issue with login account - getting the ErrorNamespace (IMAP)
  2. After multiple tries I get in but the sync doesn’t happen (endless sync) or is extremely slow.

The only app that doesn’t have issue for me is Microsoft Outlook.

Another observation is that this is happening only with my biggest account (over 15k email, existing for 10+ years)

----------IMAP----------
connect mailcore::IMAPSession:0x7ff7bfeff528

  • OK The Microsoft Exchange IMAP4 service is ready. [UABSADMAUAAyADUAMQBDAEEAMAAwADIANwAuAEUAVQBSAFAAMgA1ADEALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA==]
    ssl connect imap-mail.outlook.com 993 2
    1 CAPABILITY
  • CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
    1 OK CAPABILITY completed.
    connect ok
    login
    2 LOGIN “ACCOUNT” “PASSWORD”
    2 OK LOGIN completed.
    3 CAPABILITY
  • CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CLIENTACCESSRULES CLIENTNETWORKPRESENCELOCATION BACKENDAUTHENTICATE CHILDREN IDLE NAMESPACE LITERAL+
    3 OK CAPABILITY completed.
    4 NAMESPACE
    4 BAD Request is throttled. Suggested Backoff Time: 47931 milliseconds
  • BYE Connection closed. 14
    fetch namespace failed

I think I know what causes this.

It’s the same problem I had when I used Thunderbird - my virus checking program continually kept scanning and rescanning the email directory on my computer. There is a page showing which directory to put as an “exception” in your virus scanning program (for Thunderbird) but I don’t know which directory I should list for MailSpring. One page that has the info (Thunderbird:Testing:Antivirus Related Performance Issues - MozillaWiki) and the directory that needs to be put into the exception: C:\Users[UserName]\AppData\Roaming\Thunderbird\Profiles.

Yes I know that is for Thunderbird (yada yada yada) but I’m 90-100% sure it’s the same problem with MailSpring.

Could someone PLEASE tell everyone which directory to list as an “exception” in virus checking programs please>

Thank you :slight_smile:
Luke

@lfrohling you are right :smiley: :raised_hands:. Thanks. In my case, I had problems connecting my custom IMAP account with an eternal sync but after I added an exception from my server It is working again. I really love this email client and it was frustrating not be able to use it.

The sync bug is unrelated to anti-virus, I am on Linux, and don’t use anti-virus software, yet the eternal sync bug is there.

1 Like

scanning message…

forever green spinning circle…

ubuntu 20.04

kill the process and re-start mailspring would help.

why this bug is unfixed until now…

1 Like

I have the same issue.

I have a lot of gmail or hotmail accounts in Mailsprings, some with 10 000+ emails, and they all sync fine except one. That one account get stuck while attempting to get my Archive folder, which holds ~975 emails. It’s a Mailo.com account, using IMAP.

I tried Mailspring on Linux and Windows 10 and the issue occurs in both platform.

When using Evolution on Linux, I can sync that account without issues, including the problematic Archive folder and its ~975 emails.

Same issue here on macOS (see client and server logs below). Tried from two different computers and one account (the same on both computers) does not sync . It keeps saying “encountered an error while syncing”… I have to manually hit try again every time. I’m attaching some logs. Another account on the same server syncs fine although that one has fewer emails.

22471 [2022-06-17 11:49:00.504] [background] [info] Sync loop deleting unlinked messages with phase 2.
22471 [2022-06-17 11:49:00.505] [background] [info] Sync loop complete.
22471 [2022-06-17 11:50:31.283] [metadata] [info] Metadata delta stream starting...
22471 [2022-06-17 11:50:31.796] [metadata] [info] Metadata delta stream closed.
22471 [2022-06-17 11:50:32.461] [metadata] [info] Will retry in 300 sec.
22471 [2022-06-17 11:50:52.701] [foreground] [info] Idle exited with code 0
22471 [2022-06-17 11:50:52.750] [foreground] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 11:50:52.758] [foreground] [info] Idling on folder INBOX
22471 [2022-06-17 11:51:00.507] [background] [info] Syncing folder list...
22471 [2022-06-17 11:51:00.601] [background] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 11:51:00.647] [background] [info] syncFolderChangesViaCondstore - Sent: modseq 33 to 33, uidnext 104 to 104
22471 [2022-06-17 11:51:00.689] [background] [info] syncFolderChangesViaCondstore - Drafts: modseq 236 to 236, uidnext 55 to 55
22471 [2022-06-17 11:51:00.731] [background] [info] syncFolderChangesViaCondstore - Archive: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:51:00.770] [background] [info] syncFolderChangesViaCondstore - Trash: modseq 2 to 2, uidnext 2 to 2
22471 [2022-06-17 11:51:00.809] [background] [info] syncFolderChangesViaCondstore - Junk: modseq 235 to 235, uidnext 538 to 538
22471 [2022-06-17 11:51:00.850] [background] [info] syncFolderChangesViaCondstore - Elk&APw-ld&APY-tt elemek: modseq 3 to 3, uidnext 3 to 3
22471 [2022-06-17 11:51:00.891] [background] [info] syncFolderChangesViaCondstore - INBOX.backup: modseq 399 to 399, uidnext 487 to 487
22471 [2022-06-17 11:51:00.937] [background] [info] syncFolderChangesViaCondstore - Deleted Messages: modseq 2551 to 2551, uidnext 1694 to 1694
22471 [2022-06-17 11:51:00.975] [background] [info] syncFolderChangesViaCondstore - INBOX.fail2ban: modseq 6046 to 6046, uidnext 6018 to 6018
22471 [2022-06-17 11:51:01.023] [background] [info] syncFolderChangesViaCondstore - INBOX.Nem_Spam: modseq 52 to 52, uidnext 31 to 31
22471 [2022-06-17 11:51:01.062] [background] [info] syncFolderChangesViaCondstore - Lev&AOk-lszem&AOk-t: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:51:01.105] [background] [info] syncFolderChangesViaCondstore - Sent Messages: modseq 108 to 108, uidnext 40 to 40
22471 [2022-06-17 11:51:01.149] [background] [info] syncFolderChangesViaCondstore - T&APY-r&APY-lt elemek: modseq 4 to 4, uidnext 2 to 2
22471 [2022-06-17 11:51:01.200] [background] [info] syncFolderChangesViaCondstore - Mailspring: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:51:01.251] [background] [info] syncFolderChangesViaCondstore - Mailspring.Snoozed: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:51:01.291] [background] [info] syncFolderChangesViaCondstore - INBOX.cron: modseq 1928 to 1928, uidnext 1923 to 1923
22471 [2022-06-17 11:51:01.303] [background] [info] Sync loop deleting unlinked messages with phase 1.
22471 [2022-06-17 11:51:01.306] [background] [info] Sync loop complete.
22471 [2022-06-17 11:52:52.861] [foreground] [info] Idle exited with code 0
22471 [2022-06-17 11:52:52.913] [foreground] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 11:52:52.915] [foreground] [info] Idling on folder INBOX
22471 [2022-06-17 11:53:01.308] [background] [info] Syncing folder list...
22471 [2022-06-17 11:53:01.416] [background] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 11:53:01.479] [background] [info] syncFolderChangesViaCondstore - Sent: modseq 33 to 33, uidnext 104 to 104
22471 [2022-06-17 11:53:01.520] [background] [info] syncFolderChangesViaCondstore - Drafts: modseq 236 to 236, uidnext 55 to 55
22471 [2022-06-17 11:53:01.582] [background] [info] syncFolderChangesViaCondstore - Archive: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:53:01.705] [background] [info] syncFolderChangesViaCondstore - Trash: modseq 2 to 2, uidnext 2 to 2
22471 [2022-06-17 11:53:01.746] [background] [info] syncFolderChangesViaCondstore - Junk: modseq 235 to 235, uidnext 538 to 538
22471 [2022-06-17 11:53:02.064] [background] [info] syncFolderChangesViaCondstore - Elk&APw-ld&APY-tt elemek: modseq 3 to 3, uidnext 3 to 3
22471 [2022-06-17 11:53:02.102] [background] [info] syncFolderChangesViaCondstore - INBOX.backup: modseq 399 to 399, uidnext 487 to 487
22471 [2022-06-17 11:53:02.143] [background] [info] syncFolderChangesViaCondstore - Deleted Messages: modseq 2551 to 2551, uidnext 1694 to 1694
22471 [2022-06-17 11:53:02.184] [background] [info] syncFolderChangesViaCondstore - INBOX.fail2ban: modseq 6046 to 6046, uidnext 6018 to 6018
22471 [2022-06-17 11:53:02.229] [background] [info] syncFolderChangesViaCondstore - INBOX.Nem_Spam: modseq 52 to 52, uidnext 31 to 31
22471 [2022-06-17 11:53:02.269] [background] [info] syncFolderChangesViaCondstore - Lev&AOk-lszem&AOk-t: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:53:02.309] [background] [info] syncFolderChangesViaCondstore - Sent Messages: modseq 108 to 108, uidnext 40 to 40
22471 [2022-06-17 11:53:02.348] [background] [info] syncFolderChangesViaCondstore - T&APY-r&APY-lt elemek: modseq 4 to 4, uidnext 2 to 2
22471 [2022-06-17 11:53:02.387] [background] [info] syncFolderChangesViaCondstore - Mailspring: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:53:02.439] [background] [info] syncFolderChangesViaCondstore - Mailspring.Snoozed: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:53:02.481] [background] [info] syncFolderChangesViaCondstore - INBOX.cron: modseq 1928 to 1928, uidnext 1923 to 1923
22471 [2022-06-17 11:53:02.487] [background] [info] Sync loop deleting unlinked messages with phase 2.
22471 [2022-06-17 11:53:02.488] [background] [info] Sync loop complete.
22471 [2022-06-17 11:54:52.025] [foreground] [info] Idle exited with code 0
22471 [2022-06-17 11:54:52.072] [foreground] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 11:54:52.074] [foreground] [info] Idling on folder INBOX
22471 [2022-06-17 11:55:02.490] [background] [info] Syncing folder list...
22471 [2022-06-17 11:55:02.573] [background] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 11:55:02.615] [background] [info] syncFolderChangesViaCondstore - Sent: modseq 33 to 33, uidnext 104 to 104
22471 [2022-06-17 11:55:02.655] [background] [info] syncFolderChangesViaCondstore - Drafts: modseq 236 to 236, uidnext 55 to 55
22471 [2022-06-17 11:55:02.702] [background] [info] syncFolderChangesViaCondstore - Archive: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:55:02.741] [background] [info] syncFolderChangesViaCondstore - Trash: modseq 2 to 2, uidnext 2 to 2
22471 [2022-06-17 11:55:02.781] [background] [info] syncFolderChangesViaCondstore - Junk: modseq 235 to 235, uidnext 538 to 538
22471 [2022-06-17 11:55:02.820] [background] [info] syncFolderChangesViaCondstore - Elk&APw-ld&APY-tt elemek: modseq 3 to 3, uidnext 3 to 3
22471 [2022-06-17 11:55:02.859] [background] [info] syncFolderChangesViaCondstore - INBOX.backup: modseq 399 to 399, uidnext 487 to 487
22471 [2022-06-17 11:55:02.900] [background] [info] syncFolderChangesViaCondstore - Deleted Messages: modseq 2551 to 2551, uidnext 1694 to 1694
22471 [2022-06-17 11:55:02.940] [background] [info] syncFolderChangesViaCondstore - INBOX.fail2ban: modseq 6046 to 6046, uidnext 6018 to 6018
22471 [2022-06-17 11:55:02.983] [background] [info] syncFolderChangesViaCondstore - INBOX.Nem_Spam: modseq 52 to 52, uidnext 31 to 31
22471 [2022-06-17 11:55:03.023] [background] [info] syncFolderChangesViaCondstore - Lev&AOk-lszem&AOk-t: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:55:03.063] [background] [info] syncFolderChangesViaCondstore - Sent Messages: modseq 108 to 108, uidnext 40 to 40
22471 [2022-06-17 11:55:03.103] [background] [info] syncFolderChangesViaCondstore - T&APY-r&APY-lt elemek: modseq 4 to 4, uidnext 2 to 2
22471 [2022-06-17 11:55:03.144] [background] [info] syncFolderChangesViaCondstore - Mailspring: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:55:03.190] [background] [info] syncFolderChangesViaCondstore - Mailspring.Snoozed: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:55:03.231] [background] [info] syncFolderChangesViaCondstore - INBOX.cron: modseq 1928 to 1928, uidnext 1923 to 1923
22471 [2022-06-17 11:55:03.238] [background] [info] Sync loop deleting unlinked messages with phase 1.
22471 [2022-06-17 11:55:03.240] [background] [info] Sync loop complete.
22471 [2022-06-17 11:55:32.459] [metadata] [info] Metadata delta stream starting...
22471 [2022-06-17 11:55:58.409] [metadata] [info] Metadata delta stream closed.
22471 [2022-06-17 11:55:58.566] [metadata] [info] Will retry in 300 sec.
22471 [2022-06-17 11:56:52.215] [foreground] [info] Idle exited with code 0
22471 [2022-06-17 11:56:52.263] [foreground] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 11:56:52.265] [foreground] [info] Idling on folder INBOX
22471 [2022-06-17 11:57:03.242] [background] [info] Syncing folder list...
22471 [2022-06-17 11:57:03.325] [background] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 11:57:03.368] [background] [info] syncFolderChangesViaCondstore - Sent: modseq 33 to 33, uidnext 104 to 104
22471 [2022-06-17 11:57:03.408] [background] [info] syncFolderChangesViaCondstore - Drafts: modseq 236 to 236, uidnext 55 to 55
22471 [2022-06-17 11:57:03.447] [background] [info] syncFolderChangesViaCondstore - Archive: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:57:03.488] [background] [info] syncFolderChangesViaCondstore - Trash: modseq 2 to 2, uidnext 2 to 2
22471 [2022-06-17 11:57:03.526] [background] [info] syncFolderChangesViaCondstore - Junk: modseq 235 to 235, uidnext 538 to 538
22471 [2022-06-17 11:57:03.578] [background] [info] syncFolderChangesViaCondstore - Elk&APw-ld&APY-tt elemek: modseq 3 to 3, uidnext 3 to 3
22471 [2022-06-17 11:57:03.622] [background] [info] syncFolderChangesViaCondstore - INBOX.backup: modseq 399 to 399, uidnext 487 to 487
22471 [2022-06-17 11:57:03.664] [background] [info] syncFolderChangesViaCondstore - Deleted Messages: modseq 2551 to 2551, uidnext 1694 to 1694
22471 [2022-06-17 11:57:03.703] [background] [info] syncFolderChangesViaCondstore - INBOX.fail2ban: modseq 6046 to 6046, uidnext 6018 to 6018
22471 [2022-06-17 11:57:03.747] [background] [info] syncFolderChangesViaCondstore - INBOX.Nem_Spam: modseq 52 to 52, uidnext 31 to 31
22471 [2022-06-17 11:57:03.787] [background] [info] syncFolderChangesViaCondstore - Lev&AOk-lszem&AOk-t: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:57:03.828] [background] [info] syncFolderChangesViaCondstore - Sent Messages: modseq 108 to 108, uidnext 40 to 40
22471 [2022-06-17 11:57:03.866] [background] [info] syncFolderChangesViaCondstore - T&APY-r&APY-lt elemek: modseq 4 to 4, uidnext 2 to 2
22471 [2022-06-17 11:57:03.906] [background] [info] syncFolderChangesViaCondstore - Mailspring: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:57:03.946] [background] [info] syncFolderChangesViaCondstore - Mailspring.Snoozed: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:57:03.985] [background] [info] syncFolderChangesViaCondstore - INBOX.cron: modseq 1928 to 1928, uidnext 1923 to 1923
22471 [2022-06-17 11:57:03.991] [background] [info] Sync loop deleting unlinked messages with phase 2.
22471 [2022-06-17 11:57:03.992] [background] [info] Sync loop complete.
22471 [2022-06-17 11:58:52.385] [foreground] [info] Idle exited with code 0
22471 [2022-06-17 11:58:52.432] [foreground] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 11:58:52.434] [foreground] [info] Idling on folder INBOX
22471 [2022-06-17 11:59:03.995] [background] [info] Syncing folder list...
22471 [2022-06-17 11:59:04.081] [background] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 11:59:04.122] [background] [info] syncFolderChangesViaCondstore - Sent: modseq 33 to 33, uidnext 104 to 104
22471 [2022-06-17 11:59:04.162] [background] [info] syncFolderChangesViaCondstore - Drafts: modseq 236 to 236, uidnext 55 to 55
22471 [2022-06-17 11:59:04.201] [background] [info] syncFolderChangesViaCondstore - Archive: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:59:04.240] [background] [info] syncFolderChangesViaCondstore - Trash: modseq 2 to 2, uidnext 2 to 2
22471 [2022-06-17 11:59:04.280] [background] [info] syncFolderChangesViaCondstore - Junk: modseq 235 to 235, uidnext 538 to 538
22471 [2022-06-17 11:59:04.324] [background] [info] syncFolderChangesViaCondstore - Elk&APw-ld&APY-tt elemek: modseq 3 to 3, uidnext 3 to 3
22471 [2022-06-17 11:59:04.363] [background] [info] syncFolderChangesViaCondstore - INBOX.backup: modseq 399 to 399, uidnext 487 to 487
22471 [2022-06-17 11:59:04.402] [background] [info] syncFolderChangesViaCondstore - Deleted Messages: modseq 2551 to 2551, uidnext 1694 to 1694
22471 [2022-06-17 11:59:04.441] [background] [info] syncFolderChangesViaCondstore - INBOX.fail2ban: modseq 6046 to 6046, uidnext 6018 to 6018
22471 [2022-06-17 11:59:04.485] [background] [info] syncFolderChangesViaCondstore - INBOX.Nem_Spam: modseq 52 to 52, uidnext 31 to 31
22471 [2022-06-17 11:59:04.523] [background] [info] syncFolderChangesViaCondstore - Lev&AOk-lszem&AOk-t: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:59:04.563] [background] [info] syncFolderChangesViaCondstore - Sent Messages: modseq 108 to 108, uidnext 40 to 40
22471 [2022-06-17 11:59:04.601] [background] [info] syncFolderChangesViaCondstore - T&APY-r&APY-lt elemek: modseq 4 to 4, uidnext 2 to 2
22471 [2022-06-17 11:59:04.640] [background] [info] syncFolderChangesViaCondstore - Mailspring: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:59:04.680] [background] [info] syncFolderChangesViaCondstore - Mailspring.Snoozed: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 11:59:04.720] [background] [info] syncFolderChangesViaCondstore - INBOX.cron: modseq 1928 to 1928, uidnext 1923 to 1923
22471 [2022-06-17 11:59:04.724] [background] [info] Sync loop deleting unlinked messages with phase 1.
22471 [2022-06-17 11:59:04.725] [background] [info] Sync loop complete.
22471 [2022-06-17 12:00:52.571] [foreground] [info] Idle exited with code 0
22471 [2022-06-17 12:00:52.618] [foreground] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 12:00:52.621] [foreground] [info] Idling on folder INBOX
22471 [2022-06-17 12:00:58.565] [metadata] [info] Metadata delta stream starting...
22471 [2022-06-17 12:00:59.095] [metadata] [info] Metadata delta stream closed.
22471 [2022-06-17 12:00:59.216] [metadata] [info] Will retry in 300 sec.
22471 [2022-06-17 12:01:04.727] [background] [info] Syncing folder list...
22471 [2022-06-17 12:01:04.837] [background] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 12:01:04.910] [background] [info] syncFolderChangesViaCondstore - Sent: modseq 33 to 33, uidnext 104 to 104
22471 [2022-06-17 12:01:04.951] [background] [info] syncFolderChangesViaCondstore - Drafts: modseq 236 to 236, uidnext 55 to 55
22471 [2022-06-17 12:01:04.999] [background] [info] syncFolderChangesViaCondstore - Archive: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:01:05.118] [background] [info] syncFolderChangesViaCondstore - Trash: modseq 2 to 2, uidnext 2 to 2
22471 [2022-06-17 12:01:05.157] [background] [info] syncFolderChangesViaCondstore - Junk: modseq 235 to 235, uidnext 538 to 538
22471 [2022-06-17 12:01:05.211] [background] [info] syncFolderChangesViaCondstore - Elk&APw-ld&APY-tt elemek: modseq 3 to 3, uidnext 3 to 3
22471 [2022-06-17 12:01:05.264] [background] [info] syncFolderChangesViaCondstore - INBOX.backup: modseq 399 to 399, uidnext 487 to 487
22471 [2022-06-17 12:01:05.323] [background] [info] syncFolderChangesViaCondstore - Deleted Messages: modseq 2551 to 2551, uidnext 1694 to 1694
22471 [2022-06-17 12:01:05.365] [background] [info] syncFolderChangesViaCondstore - INBOX.fail2ban: modseq 6046 to 6046, uidnext 6018 to 6018
22471 [2022-06-17 12:01:05.409] [background] [info] syncFolderChangesViaCondstore - INBOX.Nem_Spam: modseq 52 to 52, uidnext 31 to 31
22471 [2022-06-17 12:01:05.447] [background] [info] syncFolderChangesViaCondstore - Lev&AOk-lszem&AOk-t: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:01:05.491] [background] [info] syncFolderChangesViaCondstore - Sent Messages: modseq 108 to 108, uidnext 40 to 40
22471 [2022-06-17 12:01:05.566] [background] [info] syncFolderChangesViaCondstore - T&APY-r&APY-lt elemek: modseq 4 to 4, uidnext 2 to 2
22471 [2022-06-17 12:01:05.608] [background] [info] syncFolderChangesViaCondstore - Mailspring: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:01:05.647] [background] [info] syncFolderChangesViaCondstore - Mailspring.Snoozed: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:01:05.687] [background] [info] syncFolderChangesViaCondstore - INBOX.cron: modseq 1928 to 1928, uidnext 1923 to 1923
22471 [2022-06-17 12:01:05.690] [background] [info] Sync loop deleting unlinked messages with phase 2.
22471 [2022-06-17 12:01:05.690] [background] [info] Sync loop complete.
22471 [2022-06-17 12:02:52.754] [foreground] [info] Idle exited with code 0
22471 [2022-06-17 12:02:52.806] [foreground] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 12:02:52.808] [foreground] [info] Idling on folder INBOX
22471 [2022-06-17 12:03:05.692] [background] [info] Syncing folder list...
22471 [2022-06-17 12:03:05.933] [background] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 12:03:05.976] [background] [info] syncFolderChangesViaCondstore - Sent: modseq 33 to 33, uidnext 104 to 104
22471 [2022-06-17 12:03:06.016] [background] [info] syncFolderChangesViaCondstore - Drafts: modseq 236 to 236, uidnext 55 to 55
22471 [2022-06-17 12:03:06.054] [background] [info] syncFolderChangesViaCondstore - Archive: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:03:06.097] [background] [info] syncFolderChangesViaCondstore - Trash: modseq 2 to 2, uidnext 2 to 2
22471 [2022-06-17 12:03:06.136] [background] [info] syncFolderChangesViaCondstore - Junk: modseq 235 to 235, uidnext 538 to 538
22471 [2022-06-17 12:03:06.176] [background] [info] syncFolderChangesViaCondstore - Elk&APw-ld&APY-tt elemek: modseq 3 to 3, uidnext 3 to 3
22471 [2022-06-17 12:03:06.215] [background] [info] syncFolderChangesViaCondstore - INBOX.backup: modseq 399 to 399, uidnext 487 to 487
22471 [2022-06-17 12:03:06.260] [background] [info] syncFolderChangesViaCondstore - Deleted Messages: modseq 2551 to 2551, uidnext 1694 to 1694
22471 [2022-06-17 12:03:06.300] [background] [info] syncFolderChangesViaCondstore - INBOX.fail2ban: modseq 6046 to 6046, uidnext 6018 to 6018
22471 [2022-06-17 12:03:06.344] [background] [info] syncFolderChangesViaCondstore - INBOX.Nem_Spam: modseq 52 to 52, uidnext 31 to 31
22471 [2022-06-17 12:03:06.388] [background] [info] syncFolderChangesViaCondstore - Lev&AOk-lszem&AOk-t: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:03:06.430] [background] [info] syncFolderChangesViaCondstore - Sent Messages: modseq 108 to 108, uidnext 40 to 40
22471 [2022-06-17 12:03:06.474] [background] [info] syncFolderChangesViaCondstore - T&APY-r&APY-lt elemek: modseq 4 to 4, uidnext 2 to 2
22471 [2022-06-17 12:03:06.513] [background] [info] syncFolderChangesViaCondstore - Mailspring: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:03:06.552] [background] [info] syncFolderChangesViaCondstore - Mailspring.Snoozed: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:03:06.593] [background] [info] syncFolderChangesViaCondstore - INBOX.cron: modseq 1928 to 1928, uidnext 1923 to 1923
22471 [2022-06-17 12:03:06.599] [background] [info] Sync loop deleting unlinked messages with phase 1.
22471 [2022-06-17 12:03:06.601] [background] [info] Sync loop complete.
22471 [2022-06-17 12:04:52.906] [foreground] [info] Idle exited with code 0
22471 [2022-06-17 12:04:52.965] [foreground] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 12:04:53.001] [foreground] [info] Idling on folder INBOX
22471 [2022-06-17 12:05:06.602] [background] [info] Syncing folder list...
22471 [2022-06-17 12:05:06.718] [background] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 12:05:06.772] [background] [info] syncFolderChangesViaCondstore - Sent: modseq 33 to 33, uidnext 104 to 104
22471 [2022-06-17 12:05:06.810] [background] [info] syncFolderChangesViaCondstore - Drafts: modseq 236 to 236, uidnext 55 to 55
22471 [2022-06-17 12:05:06.860] [background] [info] syncFolderChangesViaCondstore - Archive: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:05:06.913] [background] [info] syncFolderChangesViaCondstore - Trash: modseq 2 to 2, uidnext 2 to 2
22471 [2022-06-17 12:05:06.982] [background] [info] syncFolderChangesViaCondstore - Junk: modseq 235 to 235, uidnext 538 to 538
22471 [2022-06-17 12:05:07.023] [background] [info] syncFolderChangesViaCondstore - Elk&APw-ld&APY-tt elemek: modseq 3 to 3, uidnext 3 to 3
22471 [2022-06-17 12:05:07.067] [background] [info] syncFolderChangesViaCondstore - INBOX.backup: modseq 399 to 399, uidnext 487 to 487
22471 [2022-06-17 12:05:07.115] [background] [info] syncFolderChangesViaCondstore - Deleted Messages: modseq 2551 to 2551, uidnext 1694 to 1694
22471 [2022-06-17 12:05:07.185] [background] [info] syncFolderChangesViaCondstore - INBOX.fail2ban: modseq 6046 to 6046, uidnext 6018 to 6018
22471 [2022-06-17 12:05:07.231] [background] [info] syncFolderChangesViaCondstore - INBOX.Nem_Spam: modseq 52 to 52, uidnext 31 to 31
22471 [2022-06-17 12:05:07.346] [background] [info] syncFolderChangesViaCondstore - Lev&AOk-lszem&AOk-t: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:05:07.385] [background] [info] syncFolderChangesViaCondstore - Sent Messages: modseq 108 to 108, uidnext 40 to 40
22471 [2022-06-17 12:05:07.424] [background] [info] syncFolderChangesViaCondstore - T&APY-r&APY-lt elemek: modseq 4 to 4, uidnext 2 to 2
22471 [2022-06-17 12:05:07.483] [background] [info] syncFolderChangesViaCondstore - Mailspring: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:05:07.524] [background] [info] syncFolderChangesViaCondstore - Mailspring.Snoozed: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:05:07.584] [background] [info] syncFolderChangesViaCondstore - INBOX.cron: modseq 1928 to 1928, uidnext 1923 to 1923
22471 [2022-06-17 12:05:07.592] [background] [info] Sync loop deleting unlinked messages with phase 2.
22471 [2022-06-17 12:05:07.594] [background] [info] Sync loop complete.
22471 [2022-06-17 12:05:59.213] [metadata] [info] Metadata delta stream starting...
22471 [2022-06-17 12:06:30.819] [metadata] [info] Metadata delta stream closed.
22471 [2022-06-17 12:06:30.958] [metadata] [info] Will retry in 300 sec.
22471 [2022-06-17 12:06:52.122] [foreground] [info] Idle exited with code 0
22471 [2022-06-17 12:06:52.170] [foreground] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 12:06:52.172] [foreground] [info] Idling on folder INBOX
22471 [2022-06-17 12:07:07.598] [background] [info] Syncing folder list...
22471 [2022-06-17 12:07:07.692] [background] [info] syncFolderChangesViaCondstore - INBOX: modseq 2119 to 2119, uidnext 2782 to 2782
22471 [2022-06-17 12:07:07.734] [background] [info] syncFolderChangesViaCondstore - Sent: modseq 33 to 33, uidnext 104 to 104
22471 [2022-06-17 12:07:07.778] [background] [info] syncFolderChangesViaCondstore - Drafts: modseq 236 to 236, uidnext 55 to 55
22471 [2022-06-17 12:07:07.818] [background] [info] syncFolderChangesViaCondstore - Archive: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:07:07.932] [background] [info] syncFolderChangesViaCondstore - Trash: modseq 2 to 2, uidnext 2 to 2
22471 [2022-06-17 12:07:07.972] [background] [info] syncFolderChangesViaCondstore - Junk: modseq 235 to 235, uidnext 538 to 538
22471 [2022-06-17 12:07:08.012] [background] [info] syncFolderChangesViaCondstore - Elk&APw-ld&APY-tt elemek: modseq 3 to 3, uidnext 3 to 3
22471 [2022-06-17 12:07:08.051] [background] [info] syncFolderChangesViaCondstore - INBOX.backup: modseq 399 to 399, uidnext 487 to 487
22471 [2022-06-17 12:07:08.100] [background] [info] syncFolderChangesViaCondstore - Deleted Messages: modseq 2551 to 2551, uidnext 1694 to 1694
22471 [2022-06-17 12:07:08.151] [background] [info] syncFolderChangesViaCondstore - INBOX.fail2ban: modseq 6046 to 6046, uidnext 6018 to 6018
22471 [2022-06-17 12:07:08.201] [background] [info] syncFolderChangesViaCondstore - INBOX.Nem_Spam: modseq 52 to 52, uidnext 31 to 31
22471 [2022-06-17 12:07:08.253] [background] [info] syncFolderChangesViaCondstore - Lev&AOk-lszem&AOk-t: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:07:08.302] [background] [info] syncFolderChangesViaCondstore - Sent Messages: modseq 108 to 108, uidnext 40 to 40
22471 [2022-06-17 12:07:08.345] [background] [info] syncFolderChangesViaCondstore - T&APY-r&APY-lt elemek: modseq 4 to 4, uidnext 2 to 2
22471 [2022-06-17 12:07:08.405] [background] [info] syncFolderChangesViaCondstore - Mailspring: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:07:08.456] [background] [info] syncFolderChangesViaCondstore - Mailspring.Snoozed: modseq 1 to 1, uidnext 1 to 1
22471 [2022-06-17 12:07:08.511] [background] [info] syncFolderChangesViaCondstore - INBOX.cron: modseq 1928 to 1928, uidnext 1923 to 1923
22471 [2022-06-17 12:07:08.515] [background] [info] Sync loop deleting unlinked messages with phase 1.
22471 [2022-06-17 12:07:08.516] [background] [info] Sync loop complete.

I also have access to the server on which the account tries to sync, and this is what the server says (I removed the IP addresses and the real email address)

Jun 17 12:10:08 emailserver dovecot: imap(emailaccount@domain.com): Connection closed (UID FETCH finished 0.874 secs ago) in=3359 out=2693300
Jun 17 12:10:08 emailserver dovecot: imap(emailaccount@domain.com): Connection closed (IDLE running for 0.001 + waiting input for 6.655 secs, 2 B in + 10 B out, state=wait-input) in=250 out=1956
Jun 17 12:10:12 emailserver dovecot: imap-login: Login: user=<emailaccount@domain.com>, method=PLAIN, rip=<<IP_REMOVED>>, lip=<<IP_REMOVED>>, mpid=31370, TLS,auth_user=emailaccount@domain.com
Jun 17 12:10:13 emailserver dovecot: imap-login: Login: user=<emailaccount@domain.com>, method=PLAIN, rip=<<IP_REMOVED>>, lip=<<IP_REMOVED>>, mpid=31410, TLS,auth_user=emailaccount@domain.com
Jun 17 12:10:16 emailserver dovecot: imap(emailaccount@domain.com): Connection closed (IDLE running for 0.001 + waiting input for 3.170 secs, 2 B in + 10 B out, state=wait-input) in=130 out=1306
Jun 17 12:10:16 emailserver dovecot: imap(emailaccount@domain.com): Connection closed (UID FETCH finished 0.881 secs ago) in=3189 out=2572929
Jun 17 12:10:21 emailserver dovecot: imap-login: Login: user=<emailaccount@domain.com>, method=PLAIN, rip=<<IP_REMOVED>>, lip=<<IP_REMOVED>>, mpid=31874, TLS,auth_user=emailaccount@domain.com
Jun 17 12:10:22 emailserver dovecot: imap-login: Login: user=<emailaccount@domain.com>, method=PLAIN, rip=<<IP_REMOVED>>, lip=<<IP_REMOVED>>, mpid=31876, TLS,auth_user=emailaccount@domain.com
Jun 17 12:10:25 emailserver dovecot: imap(emailaccount@domain.com): Connection closed (IDLE running for 0.001 + waiting input for 3.442 secs, 2 B in + 10 B out, state=wait-input) in=130 out=1314
Jun 17 12:10:25 emailserver dovecot: imap(emailaccount@domain.com): Connection closed (UID FETCH finished 0.865 secs ago) in=3189 out=2572993
Jun 17 12:10:30 emailserver dovecot: imap-login: Login: user=<emailaccount@domain.com>, method=PLAIN, rip=<<IP_REMOVED>>, lip=<<IP_REMOVED>>, mpid=32422, TLS,auth_user=emailaccount@domain.com
Jun 17 12:10:31 emailserver dovecot: imap-login: Login: user=<emailaccount@domain.com>, method=PLAIN, rip=<<IP_REMOVED>>, lip=<<IP_REMOVED>>, mpid=32428, TLS,auth_user=emailaccount@domain.com
Jun 17 12:10:34 emailserver dovecot: imap(emailaccount@domain.com): Connection closed (UID FETCH finished 0.772 secs ago) in=3189 out=2572961
Jun 17 12:10:34 emailserver dovecot: imap(emailaccount@domain.com): Connection closed (IDLE running for 0.001 + waiting input for 3.346 secs, 2 B in + 10 B out, state=wait-input) in=130 out=1314
Jun 17 12:10:39 emailserver dovecot: imap-login: Login: user=<emailaccount@domain.com>, method=PLAIN, rip=<<IP_REMOVED>>, lip=<<IP_REMOVED>>, mpid=32445, TLS,auth_user=emailaccount@domain.com
Jun 17 12:10:40 emailserver dovecot: imap-login: Login: user=<emailaccount@domain.com>, method=PLAIN, rip=<<IP_REMOVED>>, lip=<<IP_REMOVED>>, mpid=32447, TLS,auth_user=emailaccount@domain.com
Jun 17 12:10:43 emailserver dovecot: imap(emailaccount@domain.com): Connection closed (IDLE running for 0.001 + waiting input for 3.279 secs, 2 B in + 10 B out, state=wait-input) in=130 out=1306
Jun 17 12:10:43 emailserver dovecot: imap(emailaccount@domain.com): Connection closed (UID FETCH finished 0.812 secs ago) in=3189 out=2572945

I’ve got the same issue. Scanning is stuck at 3% on my outlook.com account. The other accounts (gmail, yahoo…) work fine. Recreated cache multiple times, deleted appdata, disabled virus scanning.
On first glance mailspring seems to be much faster than thunderbird in every aspect! Thank you for the great work so far.

Windows 11
Mailspring 1.10.3-a476c230

Thank you!

Same issue here on Ubuntu 22.04 with both my IMAP and Gmail account. The IMAP inbox has 148000 emails and Gmail has 77000.

@CodeMouse92: would you happen to know if there is any development happening to squash this bug? I’d love an update from the developers about when it might be fixed.

I am having the same problem with icloud.com.

It’s been more than 24 hours, I tried to reset the cache to restart the process but all the time it got stuck at 69% for certain folder (INBOX).

Is there any update or an easy fix that I can use?

I’m using the latest macOS version (Apple silicon) and although all my Google accounts are syncing, I do notice sometimes several minutes delays in synchronising emails when they are, for example, marked as read or archived from other apps (or even directly from Gmail in the browser). The other two benchmark apps that I use are Superhuman and Mimestream, and those apps synchronize changes almost right away whenever done from other clients. Restarting Mailspring seems to solve the issue momentarily but after awhile the sync issue reappears.

Any update from the devs on this issue? I stumbled across Mailspring in my search for a better email client on Windows but this is a showstopper for me. The affected account is an iCloud account.

10944 [2023-02-08 11:39:19.939] [background] [info] syncFolderUIDRange for INBOX, UIDs: 8801 - 13801, Heavy: false
10944 [2023-02-08 11:39:20.731] [background] [info] - INBOX: remote=1916, local=0, remoteUID=[redacted]
10944 [2023-02-08 11:39:20.732] [background] [info] - Fetching full headers for 1024 (of 1916 needed)
10944 [2023-02-08 11:39:24.169] [background] [critical] 
***
*** Mailspring Sync 
*** An exception occurred during program execution: 
*** {"debuginfo":"syncFolderUIDRange - fetchMessagesByUID (heavy)","key":"ErrorParse","retryable":true,"what":"Unknown exception"}
***

10944 [2023-02-08 11:39:24.169] [background] [critical] *** Stack trace (line numbers are approximate):
*** 799  SyncWorker::syncFolderUIDRange()
*** 358  SyncWorker::syncNow()
*** 202  runBackgroundSyncWorker()
*** 692  ::operator()
*** 210  _Pad::_Call_func()
***