Folders not updating until much later

Description

I have several server-side filters for sorting my incoming emails into various folders.

When I receive new emails to the inbox (not filtered), Mailspring shows them pretty much instantly. However, if I receive new emails into a folder, Mailspring does not show the email as soon as I receive it, even if I’m viewing the folder at that time. I’m sure I got the email as I saw it in another client as well as in a webmail client.

I tried clicking “Sync New Mail Now” and I still didn’t see the email. Eventually, at some point in the future (maybe 5 or 10 minutes after receiving the email), it finally appeared in Mailspring.

It’s possible that Mailspring is only using IMAP IDLE for the inbox and not for subfolders, but even in that case I’d expect the “sync new mail now” button to update the folders.

Not sure if it’s useful, but when the message finally came through, I saw this in the logs:

24960 [2021-03-02 17:28:40.255] [background] [info] syncFolderChangesViaCondstore - INBOX.Server: modseq 9899 to 9907, uidnext 9798 to 9804
24960 [2021-03-02 17:28:40.611] [background] [info] syncFolderChangesViaCondstore - Changes since HMODSEQ 9899: 6 changed, 0 vanished
24960 [2021-03-02 17:28:40.781] [background] [warning] [SLOW] Transaction=insertMessage > 80ms (168ms, 0 waiting to aquire)
24960 [2021-03-02 17:28:40.967] [background] [warning] [SLOW] Transaction=insertMessage > 80ms (186ms, 0 waiting to aquire)
24960 [2021-03-02 17:28:41.101] [background] [warning] [SLOW] Transaction=insertMessage > 80ms (133ms, 0 waiting to aquire)
24960 [2021-03-02 17:28:41.266] [background] [warning] [SLOW] Transaction=insertMessage > 80ms (163ms, 0 waiting to aquire)
24960 [2021-03-02 17:28:41.382] [background] [warning] [SLOW] Transaction=insertMessage > 80ms (115ms, 0 waiting to aquire)
24960 [2021-03-02 17:28:41.507] [background] [warning] [SLOW] Transaction=insertMessage > 80ms (124ms, 0 waiting to aquire)

Which I guess was just from a periodic resync.

To Reproduce…

Steps to reproduce the behavior:

  1. Have some server-side filters that move emails into another folder
  2. Receive an email that matches the filter
  3. Expect Mailspring to instantly show the email

Expected Behavior

Receive email instantly both for the inbox and for any subfolders

Screenshots

N/A

Setup

  • OS and Version: Windows 10, version 20H2
    • Installation Method: Installer
  • Mailspring Version: 1.8.0

Additional Context

Email provider is MXRoute, who are using Dovecot for their IMAP server.