[IMAP] Failed to LIST any folders - Error after last update

How to fix this error? Nothing was changed in the configuration, it appeared after the last update with one specific email account.

1 Like

Same here.
I used the parameter --imap-list-ignore-path-starts-with “Virtual/” before to exclude some Virtual inboxes. After the upgrade I removed that parameter and instead started the new “Ignore Path”-feature in the UI.
However that also did not help. I only see my INBOX-folder. All other IMAP fodlers disappeared.
When trying to create a new folder it fails, saying that it is not allowed to create new folders in the “Virtual”-namespace.
This issue started right after the upgrade.

22:08:26.462|026|   >>> ListFoldersAsync(): Start
22:08:26.464|026|   01: A18 LIST "" "Virtual/*" RETURN (STATUS (UNSEEN MESSAGES UIDNEXT UIDVALIDITY HIGHESTMODSEQ) SPECIAL-USE)
22:08:26.578|026|   01: * LIST (\All) "/" "Virtual/All messages"
22:08:26.578|026|   01: * STATUS "Virtual/All messages" (MESSAGES 87078 UIDNEXT 107287 UIDVALIDITY 1686696235 UNSEEN 1103 HIGHESTMODSEQ 2572)
22:08:26.579|026|   01: * LIST () "/" "Virtual/Smart Inbox"
22:08:26.579|026|   01: * STATUS "Virtual/Smart Inbox" (MESSAGES 14999 UIDNEXT 31445 UIDVALIDITY 1686696235 UNSEEN 83 HIGHESTMODSEQ 16065)
22:08:26.579|026|   01: A18 OK List completed (0.103 + 0.000 + 0.102 secs).
22:08:26.599|026|   >>> ListFoldersAsync(): Fake INBOX list notification added
22:08:26.605|026|   >>> ListFoldersAsync(): WARNING: LIST path Virtual/All messages filtered out by ignore path rule: Virtual/All messages
22:08:26.606|026|   >>> ListFoldersAsync(): WARNING: LIST path Virtual/Smart Inbox filtered out by ignore path rule: Virtual/Smart Inbox
22:08:26.613|026|   >>> ListFoldersAsync(): End: 1 folders found
22:08:26.614|026|   >>> Account folders synchronized
22:08:26.614|026|   WARNING no Sent folder found to synchronize!
22:08:26.614|026|   >>> Account synchronization finished
22:08:29.626|026|   01: A19 IDLE
22:08:29.646|026|   01: + idling
22:08:29.647|026|   01: --- IDLE CMD IN PROGRESS...
22:09:54.670|026|   01: * OK Still here
22:11:54.696|026|   01: * OK Still here
22:12:06.988|026|   >>> CreateFolderAsync(folder: /Posteingang/test): Start
22:12:06.989|026|   01: --- CMD CREATE: CONNECTION IS IDLING
22:12:06.989|026|   01: DONE
22:12:07.002|026|   01: A19 OK Idle completed (217.360 + 217.352 + 217.359 secs).
22:12:07.002|026|   01: --- CMD CREATE: IDLING TERMINATED
22:12:07.002|026|   01: A20 CREATE "Virtual/INBOX/test"
22:12:07.017|026|   01: A20 NO [CANNOT] Can't create virtual mailboxes (0.002 + 0.000 + 0.001 secs).
22:12:07.018|026|   01: A21 STATUS "Virtual/INBOX/test" (UIDVALIDITY)
22:12:07.030|026|   01: A21 NO Mailbox doesn't exist: Virtual/INBOX/test (0.001 + 0.000 secs).
22:12:07.031|026|   >>> CreateFolderAsync(folder: /Posteingang/test): End: Failure
22:12:10.043|026|   01: A22 IDLE
22:12:10.056|026|   01: + idling
22:12:10.056|026|   01: --- IDLE CMD IN PROGRESS...

best regards
Patrick

Same problem here with slightly different logs. This happened immediately after the latest update and none of my other email clients are affected. Outlook and android email clients are working fine.

eM Client 10.1.4588+f11e2ab373 (Windows)
9:29:33 AM Nextcloud CalDAV / CardDAV Synchronizing folder list
9:29:33 AM d******@*******.com IMAP Synchronizing folder '/Inbox'
9:29:33 AM i******@*********.com IMAP Synchronizing folder '/Inbox'
9:29:34 AM i******@*********.com IMAP Synchronizing folder list
9:29:34 AM i******@********.com [IMAP] MailClient.Protocols.Imap.ImapException: Failed to LIST any folders
              at MailClient.Protocols.Imap.ImapFolderSynchronizer.ListFoldersAsync(IListFoldersProgress progress, Folder homeFolder, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapFolderSynchronizer.ListFoldersAsync(IListFoldersProgress progress, Folder homeFolder, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapFolderSynchronizer.GetFolderList(IListFoldersProgress progress, Folder homeFolder, CancellationToken cancellationToken)
              at MailClient.Protocols.Common.FolderSynchronizer.<>c__DisplayClass18_0.<EnqueueGetFolderList>b__0(WorkerStatus status, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapActionCommand.ExecuteInternalSync(WorkerStatus status)
              at MailClient.Protocols.Imap.ImapActionCommand.Execute(WorkerStatus status)
              at MailClient.Commands.Command.Process(WorkerStatus status)
           --- End of stack trace from previous location ---
              at MailClient.Storage.Synchronization.FolderSynchronizerExtensions.SynchronizeSubfoldersAsync(IFolderSynchronizer synchronizer, Folder folder, SynchronizationPriority priority, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapAccount.SynchronizeIntAsync(Boolean forced)
              at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass22_0.<<SynchronizeAsync>b__0>d.MoveNext()
             AccountId = e1f75b15-97b7-492d-a415-1d21eace54bc
             AccountName = i*****@***********.com
             reason_code = 1
             IMAP_SERVER_TYPE = Dovecot
             RunInPlace = False
             EnqueuedStackTrace =
                  at MailClient.Storage.Synchronization.FolderSynchronizerExtensions.<>c__DisplayClass0_0.<SynchronizeSubfoldersAsync>b__1()
                  at System.Threading.Tasks.Task.InnerInvoke()
                  at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
                  at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
                  at System.Threading.Tasks.Task.ExecuteFromThreadPool(Thread threadPoolThread)
                  at System.Threading.ThreadPoolWorkQueue.Dispatch()
                  at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
                  at System.Threading.Thread.StartCallback()
             GUIStatus_Exception_Reported = True
9:29:34 AM d******@*******.com IMAP Synchronizing folder list
9:29:34 AM d******@*********.com [IMAP] MailClient.Protocols.Imap.ImapException: Failed to LIST any folders
              at MailClient.Protocols.Imap.ImapFolderSynchronizer.ListFoldersAsync(IListFoldersProgress progress, Folder homeFolder, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapFolderSynchronizer.ListFoldersAsync(IListFoldersProgress progress, Folder homeFolder, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapFolderSynchronizer.GetFolderList(IListFoldersProgress progress, Folder homeFolder, CancellationToken cancellationToken)
              at MailClient.Protocols.Common.FolderSynchronizer.<>c__DisplayClass18_0.<EnqueueGetFolderList>b__0(WorkerStatus status, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapActionCommand.ExecuteInternalSync(WorkerStatus status)
              at MailClient.Protocols.Imap.ImapActionCommand.Execute(WorkerStatus status)
              at MailClient.Commands.Command.Process(WorkerStatus status)
           --- End of stack trace from previous location ---
              at MailClient.Storage.Synchronization.FolderSynchronizerExtensions.SynchronizeSubfoldersAsync(IFolderSynchronizer synchronizer, Folder folder, SynchronizationPriority priority, CancellationToken cancellationToken)
              at MailClient.Protocols.Imap.ImapAccount.SynchronizeIntAsync(Boolean forced)
              at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass22_0.<<SynchronizeAsync>b__0>d.MoveNext()
             AccountId = 06e7e432-ac0b-4263-8762-1cfa26997dc7
             AccountName = d*******@*********.com
             reason_code = 1
             IMAP_SERVER_TYPE = Dovecot
             RunInPlace = False
             EnqueuedStackTrace =
                  at MailClient.Storage.Synchronization.FolderSynchronizerExtensions.<>c__DisplayClass0_0.<SynchronizeSubfoldersAsync>b__1()
                  at System.Threading.Tasks.Task.InnerInvoke()
                  at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
                  at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
                  at System.Threading.Tasks.Task.ExecuteFromThreadPool(Thread threadPoolThread)
                  at System.Threading.ThreadPoolWorkQueue.Dispatch()
                  at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
                  at System.Threading.Thread.StartCallback()
             GUIStatus_Exception_Reported = True

I gave up and reverted back to version 10.0.3530 and it fixed the broken IMAP account.

this happened to me too after last update. I tried deleting and re-adding that account but it didn’t help. And that email account has no problem with other mail clients on my other devices. This is exceptionally annoying as I can’t delete any of the emails (it will just stay there and give me an error that virtual mailboxes can’t be created), I can’t even send mails using that email because it can’t create a send folder. And I can’t send any emails to junk. When will this be fixed?

This issue has been resolved, and a fix will be in the next release.

You can watch the Release History for when it is available. It will be the version after 10.1.4588