Re: Can't delete folders after migration to a new server

Nic Bernstein <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <[email protected]>
You've listed the version of Cyrus-SASL, not of Cyrus-IMAP. cyrus-sasl 
v2.1.27 dates from late 2018, so it's not terribly old. But we'd need to 
know the old and new version of cyrus-imap.

You'd need to review the release notes spanning from your old version to 
the new one to see what changes have been made which might require such 
interventions as database dump & restore.

However, reviewing your original email, you wrote (emphasis mine):
> What I've checked:
> reconstruct -fGR  -u lukaszolesiejuk
> (*after deleting cyrus.* files recursevely*)

The use of "-f" won't do what you expect if you've deleted "cyrus.* 
recursively."  From the manual (emphasis mine),

    -f    Examine the filesystem underneath mailbox, _adding all
    directories with a __|cyrus.header|__found there as new mailboxes_.
    Useful for restoring mailboxes from backups.

If you've deleted cyrus.header, then 'reconstruct -f' won't consider the 
directory a mailbox, and will ignore it.  This would explain your 
inability to delete old mailboxes.

You can confirm whether or not the system recognizes these mailboxes 
with a dump of mailboxes.db, 'sudo <Cyrus binaries path>/ctl_mboxlist 
-d' and grep it for your mailbox of interest.

Cheers,
     -nic

On 12/19/22 12:20, [email protected] wrote:
> On new server I've got:
> cyrus-sasl-2.1.27-6.el8_5.x86_64
>
> Old server is shutted down and it wont be easy to check old cyrus 
> version... But it was deployed few years ago...
> Can I check is dump/restore needed? This is production environment...
>
> *Cyrus <https://cyrus.topicbox.com/latest>* / Info / see discussions 
> <https://cyrus.topicbox.com/groups/info> + participants 
> <https://cyrus.topicbox.com/groups/info/members> + delivery options 
> <https://cyrus.topicbox.com/groups/info/subscription> Permalink 
> <https://cyrus.topicbox.com/groups/info/T3f69d5538f21bf56-Me7ec6380ff04d9d792b9f0b5> 
>

-- 
Nic [email protected]
https://www.nicbernstein.com

------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T3f69d5538f21bf56-M019bd839d708f19a37dbc477
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.