Re: Moving/renaming a mailbox root
Nels Lindquist <[email protected]> Mon, 29 Sep 2025 16:27:21 -0600
| Newsgroups | gmane.mail.imap.cyrus |
|---|---|
| Message-ID | <[email protected]> |
Hi, Philip. On 2025-09-08 10:36 AM, Philip Prindeville via Info wrote: > Hi, > > I had a mailbox get autocreated by the delivery of a message and now that mailbox is called /var/spool/imap/uuid/?/?/<guid>. I want to rename it to be /var/spool/mail/j/user/joe (or equivalent). > > What do I need to do to make this happen? I presume you've upgraded to at least version 3.6.x at some point prior to this? You're experiencing the storage changes documented here: https://www.cyrusimap.org/3.6/imap/download/upgrade.html#storage-changes While there is a command (relocate_by_id) which migrates mailboxes still using the legacy storage method to the new style, I don't believe there's a command to go the other way. I expect that after enabling legacy_maildirs, you could manually move the hashed directory to your desired location and then use reconstruct to add it back. You could try renm in a cyradm shell first; no idea if that would work. Note that as of 3.12.x there's no further mention of the legacy_maildirs option; it may not be supported after the 3.10.x series. -- Nels Lindquist [email protected] ------------------------------------------ Cyrus: Info Permalink: https://cyrus.topicbox.com/groups/info/Td01403760e4be254-Mece4d3978c69384920357455 Delivery options: https://cyrus.topicbox.com/groups/info/subscription