Re: [IMAPD 3.6.2] mailbox missing uniqueid - howto repair ?

Łukasz Michalski via Info <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <[email protected]>
On 9/27/24 11:56 AM, Andrzej Kwiatkowski via Info wrote:
> Hello.
>
> One from mailboxes has some folders without uniqueid:
>
> Dump from ctl_mboxlist -d
>
> "domain.pl!user.username.folder 2020.folder": {"name": 
> "domain.pl!user.username.folder 2020.folder", "mtime": "1720178891", 
> "uidvalidity": "0", "createdmodseq": "0", "foldermodseq": "0", 
> "mbtype": "el", "partition": "default", "acl": {"[email protected]": 
> "lrswipkxtecdan", "cyrusadmin": "lrswipxtecda"}, "name_history": []},
>
> I've tried :
>
> /opt/imapd/sbin/reconstruct -rfIxoM "user/username/folder 2020/folder"
>
> /opt/imapd/sbin/mbtool -r "user/username/folder 2020/folder"
>
> And in imap.log there are entries:
>
> mbentry has no uniqueid, needs reconstruct: 
> mboxname=<domain.pl!user.username.folder 2020.folder> 
> func=<mailbox_open_advanced>
>
> IOERROR: read header failed: mailbox=<domain.pl!user.username.folder 
> 2020.folder> error=<Invalid identifier> 
> func=<mailbox_lock_index_internal>
>

I've had a folder that did not exists anymore on disk and recostruct 
thrown and "uniqueid" error.

I just dumped whole list with ctl_mboxlist -d > maiboxes.txt, removed 
mailboxes.db, removed bad folder from mailboxes.txt and then imported 
fixed mailbox list back with ctl_mboxlist -u.

Regards,
Łukasz


------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T0b84afe90ca46380-Md5ad21ccdf25701774d8b512
Delivery options: https://cyrus.topicbox.com/groups/info/subscription
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.