Hello,

As a result of some past experiments, I created two mailboxes with similar 
names, lets call them (1) "test-2020", and (2) "user/fabian/test-2020".  All 
emails intended for this mailbox landed in "test-2020". My intention was to 
actually collect all emails in "user/fabian/test-2020", however I ended up with 
_all_ emails in (1) and none in (2). 

Now, I want to consolidate the two mailboxes under (2) name. Since (2) was 
actually empty, I connected through cyradm and 
$ dm user/fabian/test-2020 
to remove the empty mailbox and then I renamed (1) to (2): 
$ rename test-2020 user/fabian/test-2020.  

This seems to have succeeded !  however if I check the metadata I can still see 
references to the original test-2020 mailbox.

ctl_mboxlist -d
"DELETED.user.fabian.test-2020.6A5FF1CC": { ... "uniqueid": "132e85e15e9095f9", 
...}
"test-2020": {... "uniqueid": "088b3d295f3cb7ac", ...}
"user.fabian.test-2020": {..., "uniqueid": "088b3d295f3cb7ac", ...}

The metadata (I assume extracted from mailboxes.db ?) now has two entries that 
point to the same mailbox directory and files. How can I get rid of the 
"test-2020" entry ?  

I thought of using cyr_dbtool to delete the keys I no longer want. However I 
don't know how to piece together and encode the key value so the tool can 
actually find and remove it from the database.  Is this approach correct ?

If I were to start over, how should I replace (1) with (2) the proper way ?

Thank you,

------------------------------------------
Cyrus: Info
Permalink: 
https://cyrus.topicbox.com/groups/info/Tbd27983aaa2c52bb-M2cd441dba14559a95c03bee6
Delivery options: https://cyrus.topicbox.com/groups/info/subscription

Reply via email to