Cannot sync 126 & 163 mails because setting up "Snooze" subfolder in mail folders is not allowed

it doesn’t need a specific thing to reproduce this issue. I have tried to mannualy create the MailSpring folder like you said in #769, but I think 126 & 163 mail server do not support adding a subfolder in the mail folders, and that’s what’s causing the sync process to crush.

6942 [2019-07-13 16:25:22.036] [main] [info] Identity created at 1562964813 - using ID Schema 1
6942 [2019-07-13 16:25:22.038] [main] [info] ------------- Starting Sync (salamandernewt@126.com) ---------------
6942 [2019-07-13 16:25:22.043] [background] [info] Marking all folders as `busy`
6942 [2019-07-13 16:25:22.044] [metadata] [info] Metadata delta stream starting...
6942 [2019-07-13 16:25:22.045] [background] [info] Syncing folder list...
6942 [2019-07-13 16:25:22.346] [background] [error] Could not create Mailspring container folder: Mailspring. ErrorNonExistantFolder
6942 [2019-07-13 16:25:22.384] [background] [error] Could not create required Mailspring folder: Mailspring/Snoozed. ErrorNonExistantFolder
6942 [2019-07-13 16:25:22.386] [background] [info] Syncing folder list...
6942 [2019-07-13 16:25:22.457] [background] [error] Could not create Mailspring container folder: Mailspring. ErrorNonExistantFolder
6942 [2019-07-13 16:25:22.493] [background] [error] Could not create required Mailspring folder: Mailspring/Snoozed. ErrorNonExistantFolder
6942 [2019-07-13 16:25:22.538] [background] [info] syncFolderUIDRange for INBOX, UIDs: 1 - 4294967296, Heavy: false
6942 [2019-07-13 16:25:22.582] [background] [critical] 
 ***
 *** Mailspring GenericException occurred during program execution: 
 *** {"debuginfo":"syncFolderUIDRange - fetchMessagesByUID","key":"ErrorNonExistantFolder","retryable":false,"what":"std::exception"}
 ***

6942 [2019-07-13 16:25:22.583] [background] [critical]  *** Stack trace:
 ***   SyncWorker::syncFolderUIDRange(Folder&, mailcore::Range, bool, vector*)
 ***   SyncWorker::syncNow()
 ***   runBackgroundSyncWorker()
 ***   clone
 ***

Email Provider

imtp.163.com and imtp.126.com

Setup

  • OS and Version: Ubuntu 18.04 LTS
  • Mailspring Version: 1.6.3

(Originally posted by NewtMa on GitHub.)

Describe the bug
can’t get mails.

Setup: (please complete the following information):
OS: Windows 10 edu 64bit
OS Version 17763
Mailspring Version: 1.7.8

Mailspring Version: 1.7.8-COMMIT_INSERTED_DURING_PACKAGING
Platform: win32
Account State: sync_error
Account Provider: imap
IMAP Server: imap.126.com
SMTP Server: smtp.126.com

15304 [2020-07-27 16:26:22.729] [metadata] [info] Metadata delta stream starting...
15304 [2020-07-27 16:26:22.729] [background] [info] Marking all folders as `busy`
15304 [2020-07-27 16:26:22.730] [background] [info] Syncing folder list...
15304 [2020-07-27 16:26:23.227] [background] [error] Could not create Mailspring container folder: Mailspring. ErrorNonExistantFolder
15304 [2020-07-27 16:26:23.268] [background] [error] Could not create required Mailspring folder: Mailspring/Snoozed. ErrorNonExistantFolder
15304 [2020-07-27 16:26:23.269] [background] [info] Syncing folder list...
15304 [2020-07-27 16:26:23.350] [background] [error] Could not create Mailspring container folder: Mailspring. ErrorNonExistantFolder
15304 [2020-07-27 16:26:23.399] [background] [error] Could not create required Mailspring folder: Mailspring/Snoozed. ErrorNonExistantFolder
15304 [2020-07-27 16:26:23.459] [background] [info] syncFolderUIDRange for INBOX, UIDs: 1 - 4294967296, Heavy: false
15304 [2020-07-27 16:26:23.638] [foreground] [info] Connection does not support idling. Locking until more to do...
15304 [2020-07-27 16:26:23.741] [background] [critical]

*** Mailspring Sync
*** An exception occurred during program execution:
*** {"debuginfo":"syncFolderUIDRange - fetchMessagesByUID","key":"ErrorNonExistantFolder","retryable":false,"what":"Unknown exception"}
***

(Originally posted by hechengjin on GitHub.)

linux也出现了这个问题(Linux also has this problem)
Mailspring Version: 1.7.8-13635bcf
Platform: linux
Account State: sync_error
Account Provider: imap
IMAP Server: imap.163.com
SMTP Server: smtp.163.com

391142 [2020-07-28 22:46:51.724] [background] [error] Could not create required Mailspring folder: Mailspring/Snoozed. ErrorNonExistantFolder
391142 [2020-07-28 22:46:51.797] [background] [info] syncFolderUIDRange for INBOX, UIDs: 1 - 4294967296, Heavy: false
391142 [2020-07-28 22:46:52.001] [background] [critical]

*** Mailspring Sync
*** An exception occurred during program execution:
*** {"debuginfo":"syncFolderUIDRange - fetchMessagesByUID","key":"ErrorNonExistantFolder","retryable":false,"what":"std::exception"}

391142 [2020-07-28 22:46:52.002] [background] [critical] *** Stack trace (line numbers are approximate):
*** ??:? SyncWorker::syncFolderUIDRange(Folder&, mailcore::Range, bool, vector*)
*** ??:? SyncWorker::syncNow()
*** ??:? runBackgroundSyncWorker()
*** main.cpp:? main::{lambda()[#3](https://github.com/Foundry376/Mailspring/pull/3)}::operator()() const
*** main.cpp:? _Bind_simple::operator()()
*** main.cpp:? thread::_Impl::_M_run()
*** thread.o:? execute_native_thread_routine()

391509 [2020-07-28 22:46:53.024] [main] [info] Identity created at 1595906869 - using ID Schema 1
391509 [2020-07-28 22:46:53.026] [main] [info] ------------- Starting Sync ([xxxxx@163.com](mailto:xxxxx@163.com)) ---------------
391509 [2020-07-28 22:46:53.036] [metadata] [info] Metadata delta stream starting...
391509 [2020-07-28 22:46:57.035] [background] [info] Marking all folders as `busy`
391509 [2020-07-28 22:46:57.041] [background] [info] Syncing folder list...
391509 [2020-07-28 22:46:57.564] [background] [error] Could not create Mailspring container folder: Mailspring. ErrorNonExistantFolder
391509 [2020-07-28 22:46:57.604] [background] [error] Could not create required Mailspring folder: Mailspring/Snoozed. ErrorNonExistantFolder
391509 [2020-07-28 22:46:57.609] [background] [info] Syncing folder list...
391509 [2020-07-28 22:46:57.690] [background] [error] Could not create Mailspring container folder: Mailspring. ErrorNonExistantFolder
391509 [2020-07-28 22:46:57.730] [background] [error] Could not create required Mailspring folder: Mailspring/Snoozed. ErrorNonExistantFolder
391509 [2020-07-28 22:46:57.779] [background] [info] syncFolderUIDRange for INBOX, UIDs: 1 - 4294967296, Heavy: false
391509 [2020-07-28 22:46:57.951] [background] [critical]

*** Mailspring Sync
*** An exception occurred during program execution:
*** {"debuginfo":"syncFolderUIDRange - fetchMessagesByUID","key":"ErrorNonExistantFolder","retryable":false,"what":"std::exception"}

391509 [2020-07-28 22:46:57.952] [background] [critical] *** Stack trace (line numbers are approximate):
*** ??:? SyncWorker::syncFolderUIDRange(Folder&, mailcore::Range, bool, vector*)
*** ??:? SyncWorker::syncNow()
*** ??:? runBackgroundSyncWorker()
*** main.cpp:? main::{lambda()[#3](https://github.com/Foundry376/Mailspring/pull/3)}::operator()() const
*** main.cpp:? _Bind_simple::operator()()
*** main.cpp:? thread::_Impl::_M_run()
*** thread.o:? execute_native_thread_routine()

(Originally posted by x93008 on GitHub.)

Description

mail provider: mail.163.com
smtp server: smtp.163.com with SSL
imap server: imap.163.com with SSL

Server address and port number are set according to the guidance provided by mail.163.com/

This line of sentences were shown after setting up the account.
“Mailspring encountered errors syncing this account. Crash reports have been sent to the Mailspring team and we’ll work to fix these errors in the next release. Try Reconnecting.”

Error Log

7667 [2018-03-19 20:21:06.255] [main] [info] ------------- Starting Sync (**************@163.com) ---------------
7667 [2018-03-19 20:21:06.258] [metadata] [info] Metadata delta stream starting…
7667 [2018-03-19 20:21:06.258] [background] [info] Marking all folders as busy
7667 [2018-03-19 20:21:06.259] [background] [info] Syncing folder list…
7667 [2018-03-19 20:21:07.302] [background] [error] Could not create Mailspring container folder: Mailspring. ErrorNonExistantFolder
7667 [2018-03-19 20:21:07.493] [background] [error] Could not create required Mailspring folder: Mailspring/Snoozed. ErrorNonExistantFolder
7667 [2018-03-19 20:21:07.494] [background] [info] Syncing folder list…
7667 [2018-03-19 20:21:07.710] [background] [error] Could not create Mailspring container folder: Mailspring. ErrorNonExistantFolder
7667 [2018-03-19 20:21:07.720] [background] [error] Could not create required Mailspring folder: Mailspring/Snoozed. ErrorNonExistantFolder
7667 [2018-03-19 20:21:07.910] [background] [info] syncFolderUIDRange for INBOX, UIDs: 1 - 4294967296, Heavy: false
7667 [2018-03-19 20:21:07.931] [foreground] [info] Connection does not support idling. Locking until more to do…
7667 [2018-03-19 20:21:07.940] [background] [critical]

*** Mailspring GenericException occurred during program execution:
*** {“debuginfo”:“syncFolderUIDRange - fetchMessagesByUID”,“key”:“ErrorNonExistantFolder”,“retryable”:false,“what”:“std::exception”}

7667 [2018-03-19 20:21:07.940] [background] [critical] *** Stack trace (line numbers are approximate):
*** ??:? SyncWorker::syncFolderUIDRange(Folder&, mailcore::Range, bool, vector*)
*** ??:? SyncWorker::syncNow()
*** ??:? runBackgroundSyncWorker()
*** (unknown) clone

7687 [2018-03-19 20:21:08.070] [main] [info] Identity created at 1521428184 - using ID Schema 1
7687 [2018-03-19 20:21:08.072] [main] [info] ------------- Starting Sync (kongxiao0532@163.com) ---------------
7687 [2018-03-19 20:21:08.074] [background] [info] Marking all folders as busy
7687 [2018-03-19 20:21:08.074] [metadata] [info] Metadata delta stream starting…
7687 [2018-03-19 20:21:08.075] [background] [info] Syncing folder list…
7687 [2018-03-19 20:21:08.573] [background] [error] Could not create Mailspring container folder: Mailspring. ErrorNonExistantFolder
7687 [2018-03-19 20:21:08.734] [background] [error] Could not create required Mailspring folder: Mailspring/Snoozed. ErrorNonExistantFolder
7687 [2018-03-19 20:21:08.736] [background] [info] Syncing folder list…
7687 [2018-03-19 20:21:08.749] [background] [error] Could not create Mailspring container folder: Mailspring. ErrorNonExistantFolder
7687 [2018-03-19 20:21:08.756] [background] [error] Could not create required Mailspring folder: Mailspring/Snoozed. ErrorNonExistantFolder
7687 [2018-03-19 20:21:08.781] [background] [info] syncFolderUIDRange for INBOX, UIDs: 1 - 4294967296, Heavy: false
7687 [2018-03-19 20:21:08.963] [background] [critical]

*** Mailspring GenericException occurred during program execution:
*** {“debuginfo”:“syncFolderUIDRange - fetchMessagesByUID”,“key”:“ErrorNonExistantFolder”,“retryable”:false,“what”:“std::exception”}

7687 [2018-03-19 20:21:08.963] [background] [critical] *** Stack trace (line numbers are approximate):
*** ??:? SyncWorker::syncFolderUIDRange(Folder&, mailcore::Range, bool, vector*)
*** ??:? SyncWorker::syncNow()
*** ??:? runBackgroundSyncWorker()
*** (unknown) clone

  • Ubuntu 16.04.3
  • Mailspring 1.1.5-5834c99f

(Originally posted by kongxiao0532 on GitHub.)

having the same issue here , my version is 1.7.8-13635bcf


(Originally posted by gbcbooks on GitHub.)

The problem seems to be that nested folder is not supported by 126/163 email, but mailspring are trying to create such subfolder. Is there any way that user can specify the snoozed folder in settings?

Thanks in advance!


(Originally posted by sighingnow on GitHub.)

Encountering the same problem in email.qq.com. Nested folders are not supported. I cannot create the folder manually. This brokes not only the snoozing feature but also the whole syncing process of the account.


(Originally posted by miuzel on GitHub.)

This may also be a regression of these:

Additional duplicate:

So after all this time, are there any solution to this issue?