Possibly #118
Ubuntu 18.04 LTS
1.5.6-4cb1851b
Bug?
Yes
IMAP, DavMail, Exchange
No
Excerpt from log:
28474 [2019-02-20 10:16:18.674] [main] [info] Identity created at 1549060724 - using ID Schema 1
28474 [2019-02-20 10:16:18.675] [main] [info] ------------- Starting Sync ([redacted]) ---------------
28474 [2019-02-20 10:16:18.678] [background] [info] Marking all folders as `busy`
28474 [2019-02-20 10:16:18.678] [background] [info] Syncing folder list...
28474 [2019-02-20 10:16:18.678] [metadata] [info] Metadata delta stream starting...
28474 [2019-02-20 10:16:19.104] [background] [critical]
***
*** A C++ exception occurred during program execution:
*** UNIQUE constraint failed: Folder.id
***
28474 [2019-02-20 10:16:19.125] [background] [critical] *** Stack trace (line numbers are approximate):
*** (unknown) clone
***
Same here...
same here, 1.6.1-aceed8e5
Same:
DavMail gateway 5.2.0-2961
Mailspring: 1.6.1
9207 [2019-05-06 07:44:28.706] [main] [info] Identity created at 1554188816 - using ID Schema 1
9207 [2019-05-06 07:44:28.708] [main] [info] ------------- Starting Sync ([redacted]) ---------------
9207 [2019-05-06 07:44:28.712] [metadata] [info] Metadata delta stream starting...
9207 [2019-05-06 07:44:28.712] [background] [info] Marking all folders as `busy`
9207 [2019-05-06 07:44:28.712] [background] [info] Syncing folder list...
9207 [2019-05-06 07:44:28.972] [background] [critical]
***
*** A C++ exception occurred during program execution:
*** UNIQUE constraint failed: Folder.id
***
9207 [2019-05-06 07:44:28.983] [background] [critical] *** Stack trace:
*** clone
***
Some extra info:
I got it working by using WebDav instead of EWS in the DavMail gateway settings.
I believe this is a Exchange 2007 version that is giving trouble on EWS.
Same. I'm using 0365Interactive protocol on davmail (version 5.3.1). Mailspring snap (version 1.6.3) on Ubuntu 18.04:
20845 [2019-08-23 09:32:29.983] [main] [info] Identity created at 1554150817 - using ID Schema 1
20845 [2019-08-23 09:32:29.985] [main] [info] ------------- Starting Sync (<redacted>) ---------------
20845 [2019-08-23 09:32:29.988] [background] [info] Marking all folders as `busy`
20845 [2019-08-23 09:32:29.988] [background] [info] Syncing folder list...
20845 [2019-08-23 09:32:29.988] [metadata] [info] Metadata delta stream starting...
20845 [2019-08-23 09:32:30.785] [background] [critical]
***
*** A C++ exception occurred during program execution:
*** UNIQUE constraint failed: Folder.id
***
20845 [2019-08-23 09:32:30.794] [background] [critical] *** Stack trace:
*** clone
***
Same here - EWS on davmail (5.3.1-3079) + Mailspring (1.6.3-134a0e55).
Haven't found a viable alternative on Linux for O365 + GMail w/ unified inbox.
Current showstopper for making Linux a daily driver OS.
``16006 [2019-10-04 11:02:35.423] [main] [info] Identity created at 1549235868 - using ID Schema 1
16006 [2019-10-04 11:02:35.424] [main] [info] ------------- Starting Sync (<redacted>) ---------------
16006 [2019-10-04 11:02:35.427] [metadata] [info] Metadata delta stream starting...
16006 [2019-10-04 11:02:35.427] [background] [info] Marking all folders asbusy`
16006 [2019-10-04 11:02:35.427] [background] [info] Syncing folder list...
16006 [2019-10-04 11:02:36.220] [background] [critical]
* A C++ exception occurred during program execution:
* UNIQUE constraint failed: Folder.id
16006 [2019-10-04 11:02:36.243] [background] [critical] * Stack trace (line numbers are approximate):
(unknown) clone
**```
For everyone experiencing this:
Looking at the mailsync log there seems to be a constraint on unique folder names in the underlying database. Try to delete all duplicate folders you might have in on your exchange account also look if there is any deleted folders in the trash/bin and remove them.
This fixed it for me.
i have a davmail daemon running and Thunderbird successfully synced with it to my Exchange account. But trying to use Mailspring for the same account it fails with same errors as @gdyr .
Same problem here! Thunderbirds works correctly with DavMail , however Mailspring is not able to sync
Same here aswell, thunderbird is fine, but Mailspring 1.7.8 fails to sync,
got the "* UNIQUE constraint failed: Folder.id" error to
Same issue here. No problem with Thunderbird.
For everyone experiencing this:
Looking at the mailsync log there seems to be a constraint on unique folder names in the underlying database. Try to delete all duplicate folders you might have in on your exchange account also look if there is any deleted folders in the trash/bin and remove them.
This fixed it for me.
Many thanks.
One more clarify... you have to delete mailspring folder direct in your Echange account (it appears in your account after a failed synchronization attempt at the beginning of the settings)
Most helpful comment
i have a davmail daemon running and Thunderbird successfully synced with it to my Exchange account. But trying to use Mailspring for the same account it fails with same errors as @gdyr .