cyrusimap / cyrus-imapd

Cyrus IMAP is an email, contacts and calendar server
http://cyrusimap.org
Other
534 stars 146 forks source link

Mailboxes without ID vs. JMAP #3549

Open t-vi opened 3 years ago

t-vi commented 3 years ago

Thank you for maintaining Cyrus IMAPd over all the years!

I have an oldish Cyrus installation (>12 years) in which not all mailboxes had unique ids until now. When enabling JMAP this led to:

I think dumping and restoring mailboxes with ctl_mboxlist does not help, as it doesn't produce unique ids in mailboxes.

I fixed my installation with mbtool -r '*' to get ids for all mailboxes, but the above might be worth fixing in the code.

t-vi commented 3 years ago

There is more related things: The E-Mails in the folders appear not to be accessible through Email/get if they don't have a the mailbox field filled in and the pre-existing mails don't have that. :/

elliefm commented 3 years ago

Did you follow the upgrade instructions here: https://www.cyrusimap.org/imap/download/upgrade.html, or just install a new distro package in place?

If you haven't already, you'll need to reconstruct -V max each of your mailboxes, and maybe reconstruct -G as well. You can do the entire store at once if you like (it will take a while), but if your store is large you might prefer to do it in batches.