Zimbra // mailspring sync

Hi,
as proposed by CodeMouse92 on Github (issue #304), I reopen the issue about sync Zimbra/mailspring troubles. In short, the synchronization between Zimbra and mailspring has a strange behavior. what I have in the reception box in Zimbra do not correspond to the emails I have in Mailspring.

with Zimbra(online) and Mailsping 1.8.0, I noticed two things:

  • when I read an unread email in zimbra then this email appears again in Mailsping.
  • If I switch the “missing” emails in unread alternatively read in Zimbra, then all this emails appear again in Mailspring… But they disappear again after a few minutes. :frowning: . I just have the emails of today and yesterday.

Hi @jbbarse,

Thanks for reporting this. I’m marking it to be looked into soon. Just a heads up, we do have a fairly extensive roadmap, but stay tuned. I won’t let this one slip by.

Duplicate Issues

Emails Disappear From Inbox · Issue #304 · Foundry376/Mailspring · GitHub (this one)

@jbbarre Do you have a Zimbra installation, where you can create an account for testing for me? Then I will have a look at it.

Cheers Phylu

Unfortunately not. Zimbra is the email server of the university I work for. I am only a user and don’t have access to the server as a sysadmin.

I can provide you with account on Zimbra if it helps you to push the issue forward.

1 Like

Any progress on this?? My mailspring always stuck at forever sync issue… tested it on windows and linux version…

@alveox If you don’t see an #accepted tag and a link to a PR, you can assume no “progress” yet. There a literally hundreds of things to fix and improve, nearly all of them Very Very Urgent in someone’s eyes, but Mailspring development is all done in free time.

Please read: About the Sync Issues category

Voting on an issue will help raise its priority, but we cannot realistically make promises about when we can work on something, as much as we wish we could!

Noted… Thanks for that…

I have the exact same problem, however I don’t use Zimbra, I use ProtonBridge from ProtonMail to access my email. Emails appear when opening MailSprint, then promptly disappear after a few minutes. When I click into All Mail, and back into the Inbox they reappear.

I’m running the latest version of Arch Linux. What information can I supply? This issue is quite annoying.

Hi folks
The zimbra problem occurs also for my institutional account… Hoping it will be solved soon, as I love this tool and would pay for it

Hi,

I also have the same Sync problem between Mailspring and a Zimbra IMAP server. The account creation is successful, but I quickly have some orange window saying that there is a sync problem with the account. After some minutes, a red window appears saying that the connection failed, and I have to manually reconnect the account. We looked into the logs of the Zimbra server and there nothing strange there. The same Zimbra server perfectly works with Thunderbird, Evolution or Geary mail clients. Mailspring is also very slow to scan and index mails with Zimbra and IMAP (not with Gmail).

I do not have problem with Mailspring and Gmail, which make me think this may be related to Zimbra.
This is really a pity as I do love the modern interface of Mailspring, but this little bug makes it unusable.

I’m running Mailspring 1.9.1 on Ubuntu Linux 20.04 LTS.

Thanks for your help.

This is what appears in the Mailspring log file:

117937 [2021-06-24 23:47:23.274] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) no longer present in remote range.
117937 [2021-06-24 23:47:23.341] [background] [info] – 0 matches.
117937 [2021-06-24 23:47:23.341] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) no longer present in remote range.
117937 [2021-06-24 23:47:23.417] [background] [info] – 0 matches.
117937 [2021-06-24 23:47:23.417] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) no longer present in remote range.
117937 [2021-06-24 23:47:23.445] [foreground] [critical]


*** Mailspring Sync
*** A C++ exception occurred during program execution:

Hi same here: I just started testing mailspring as an alternative for Zimbra installations we do provide for numerous clients in the EMEA space. Mailspring could make it as an alternative to the zimbra web client, which has some issues, too.

The description above is like my findings. I also want to share the exception I have got: It looks like this is not in conjunction with Zimbra, but with my firemail account, another IMAP/SMTP connector driven one. It uses a pretty common mail web server engine, same a lot of other providers

But the ZIMBRA related behaviour is there too liek the other guys desribe it.

We like your product approach, and we would like to help where we can. Please get in touch with me directly if you need some Zimbra expertise on the log and bug bash.

--------- Log Snippet -------------------

4348 [2021-07-07 17:29:05.970] [main] [info] ------------- Starting Sync (xxx@firemail.de) ---------------
4348 [2021-07-07 17:29:05.973] [metadata] [info] Metadata sync disabled, not logged in.
4348 [2021-07-07 17:29:07.974] [background] [info] Marking all folders as busy
4348 [2021-07-07 17:29:07.998] [background] [info] Syncing folder list…
4348 [2021-07-07 17:29:18.071] [background] [critical]


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


4348 [2021-07-07 17:29:18.072] [background] [critical] *** Stack trace (line numbers are approximate):
*** ??:? SyncWorker::syncFoldersAndLabels()
*** ??:? 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()


4348 [2021-07-07 17:29:18.072] [background] [info] --sleeping
4348 [2021-07-07 17:29:20.973] [metadataExpiration] [info] Scanning for expired metadata
4348 [2021-07-07 17:29:20.974] [metadataExpiration] [info] – Will wake for next expiration in 7200sec
4348 [2021-07-07 17:29:43.034] [calContacts] [critical]


*** Mailspring Sync
*** An exception occurred during program execution:
*** {“debuginfo”:“https://id.getmailspring.com/api/resolve-dav-hosts",“key”:"Timeout was reached”,“retryable”:true,“what”:“std::exception”}


4348 [2021-07-07 17:29:43.035] [calContacts] [critical] *** Stack trace (line numbers are approximate):
*** ??:? ValidateRequestResp(CURLcode, void*, string)
*** ??:? PerformRequest(void*)
*** ??:? PerformJSONRequest(void*)
*** ??:? DAVWorker::resolveAddressBook()
*** ??:? DAVWorker::runContacts()
*** ??:? DAVWorker::run()
*** ??:? runCalContactsSyncWorker()
*** main.cpp:? main::{lambda()#4}::operator()() const
*** main.cpp:? _Bind_simple::operator()()
*** main.cpp:? thread::_Impl::_M_run()
*** thread.o:? execute_native_thread_routine()


4348 [2021-07-07 17:31:18.072] [background] [info] Marking all folders as busy
4348 [2021-07-07 17:31:18.077] [background] [info] Syncing folder list…
4348 [2021-07-07 17:31:28.119] [background] [critical]


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


4348 [2021-07-07 17:31:28.119] [background] [critical] *** Stack trace (line numbers are approximate):
*** ??:? SyncWorker::syncFoldersAndLabels()
*** ??:? 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()


4348 [2021-07-07 17:31:28.120] [background] [info] --sleeping
4348 [2021-07-07 17:33:28.120] [background] [info] Marking all folders as busy
4348 [2021-07-07 17:33:28.123] [background] [info] Syncing folder list…
4348 [2021-07-07 17:33:38.161] [background] [critical]


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


4348 [2021-07-07 17:33:38.162] [background] [critical] *** Stack trace (line numbers are approximate):
*** ??:? SyncWorker::syncFoldersAndLabels()
*** ??:? 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()


4348 [2021-07-07 17:33:38.162] [background] [info] --sleeping
4348 [2021-07-07 17:35:38.162] [background] [info] Marking all folders as busy
4348 [2021-07-07 17:35:38.166] [background] [info] Syncing folder list…
4348 [2021-07-07 17:35:48.217] [background] [critical]


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


4348 [2021-07-07 17:35:48.218] [background] [critical] *** Stack trace (line numbers are approximate):
*** ??:? SyncWorker::syncFoldersAndLabels()
*** ??:? 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()


1 Like

Bug with zimbra still exist.
E-mails disappear from the inbox after 15-20 minutes.
Only clearing the cache solves this problem, but only for a few minutes.

I also have the same problem with zimbra. Most of the emails just disappear and reappear after clearing the cache. However, they disappear systematically after 15-20 minutes every time the cache is cleared.

Salve All,

I have also the same issues on some emails managed by DBMail (IMAP), clearing cache emails do appear, after a few minutes they do disappear.

Any news on the matter?