Errors syncing this account

I have tried to search GitHub and this community. GitHub is referring to community and community to GitHub. This is confusing. Some GitHub issues were saying this was fixed in version 1.7.x .

It looks like this bug is a real thing and not fixed over a long time. Is it possible to enable stacktraces? Is it possible to somehow attach a debugger?


I have multiple accounts (Zoho & self-hosted IMAP) with syncing errors. Google and Yahoo and other self-hosted are having no problem.

To Reproduce…

Close Mail spring
Wait some time, I guess 24 hours.
Start Mail spring


  • OS and Version: Windows 10 Home 21H2
  • Installation Method: MSI/Installer
  • Mailspring Version: 1.10.4-af83444a

Additional Context

Error Details:

Mailspring Version: 1.10.4-af83444a
Platform: win32
Account State: sync_error
Account Provider: imap
IMAP Server:
SMTP Server: mail.

Some log

14036 [2022-08-09 18:54:39.410] [calContacts] [critical] 
*** Mailspring Sync 
*** An exception occurred during program execution: 
*** {"debuginfo":" RETURNED ","key":"Invalid Response Code: 504","retryable":true,"what":"Unknown exception"}

14036 [2022-08-09 18:54:39.410] [calContacts] [critical] *** Stack trace (line numbers are approximate):
*** 211  ValidateRequestResp()
*** 142  PerformRequest()
*** 177  PerformJSONRequest()
*** 130  DAVWorker::resolveAddressBook()
*** 105  DAVWorker::runContacts()
*** 97   DAVWorker::run()
*** 270  runCalContactsSyncWorker()
*** 701  ::operator()
*** 210  _Pad::_Call_func()