Description
I am currently using MailSpring to synchronize emails from 163.com and 126.com, but these two email providers do not support folder nesting. I found that mailspring always attempts to create the Mailspring/Snoozed folder when executing synchronization commands. Although I currently do not know the purpose of this folder, I can confirm that an error occurred while creating it.
To Reproduce…
Perhaps common international email providers support nested folders, so it’s difficult for me to find an English email provider to reproduce this issue. I sincerely hope to try the two providers 162.com and 126.com, but there may be language issues, and I am willing to provide as detailed assistance as possible.
When I entered my email account and password correctly, MailSpring was able to successfully log in to the email provider and obtain existing folder information, but was unable to obtain email information. The error message is as follows.
Mailspring Version: 1.15.1-cb02bf10
Platform: linux
Account State: sync_error
Account Provider: imap
IMAP Server: imap.163.com
SMTP Server: smtp.163.com
--------------------------------------------
17829 [2025-02-08 15:25:10.294] [background] [error] Could not create required Mailspring folder: Mailspring/Snoozed. ErrorNonExistantFolder
17829 [2025-02-08 15:25:10.341] [background] [info] syncFolderUIDRange for INBOX, UIDs: 1 - 4294967296, Heavy: false
17829 [2025-02-08 15:25:10.408] [background] [critical]
***
*** Mailspring Sync
*** An exception occurred during program execution:
*** {"debuginfo":"syncFolderUIDRange - fetchMessagesByUID","key":"ErrorNonExistantFolder","retryable":false,"what":"std::exception"}
***
17829 [2025-02-08 15:25:10.409] [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()
***
17856 [2025-02-08 15:25:10.619] [main] [info] Identity created at 1738999510 - using ID Schema 1
17856 [2025-02-08 15:25:10.620] [main] [info] ------------- Starting Sync (a2711492759@163.com) ---------------
17856 [2025-02-08 15:25:10.622] [metadata] [info] Metadata sync disabled, not logged in.
17856 [2025-02-08 15:25:11.622] [background] [info] Marking all folders as `busy`
17856 [2025-02-08 15:25:11.623] [background] [info] Syncing folder list...
17856 [2025-02-08 15:25:12.111] [background] [error] Could not create Mailspring container folder: Mailspring. ErrorNonExistantFolder
17856 [2025-02-08 15:25:12.155] [background] [error] Could not create required Mailspring folder: Mailspring/Snoozed. ErrorNonExistantFolder
17856 [2025-02-08 15:25:12.157] [background] [info] Syncing folder list...
17856 [2025-02-08 15:25:12.246] [background] [error] Could not create Mailspring container folder: Mailspring. ErrorNonExistantFolder
17856 [2025-02-08 15:25:12.291] [background] [error] Could not create required Mailspring folder: Mailspring/Snoozed. ErrorNonExistantFolder
17856 [2025-02-08 15:25:12.336] [background] [info] syncFolderUIDRange for INBOX, UIDs: 1 - 4294967296, Heavy: false
17856 [2025-02-08 15:25:12.400] [background] [critical]
***
*** Mailspring Sync
*** An exception occurred during program execution:
*** {"debuginfo":"syncFolderUIDRange - fetchMessagesByUID","key":"ErrorNonExistantFolder","retryable":false,"what":"std::exception"}
***
17856 [2025-02-08 15:25:12.400] [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()
***
It is evident that mailspring encountered an issue while creating the Mailspring/Snoozed folder. I tried to create the folder on the official page of the email provider and found that the provider does not support nested folders.
Expected Behavior
Perhaps we can consider the following plan
- Can users choose whether to create the folder or not
- Can the folder be set as a non nested folder
- Can users be allowed to manually select non nested folders mapped to this folder
Setup
- OS and Version: debian 6.1.0-30-amd64
- Installation Method: deb
- Mailspring Version: 1.15.1
The issue may not be related to the operating environment.