Re: Deleting "ghost" mailboxes that don't correspond to filesystem directories

Michael Menge <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <20250304205142.Horde.GNnrgOJPggMYo5qDseMhcdw@webmail.uni-tuebingen.de>
Quoting Jay Sekora <[email protected]>:

> On Tue, Mar 04, 2025 at 07:15:00PM +0100, Michael Menge wrote:
>> Quoting Jay Sekora <[email protected]>:
>
> Not the case for these:
>
> # /usr/lib/cyrus/bin/ctl_mboxlist -d | grep user.[redacted].T
> user.[redacted].Templates       0 s [redacted]  lrswipcda
> user.[redacted].Trash   0 s [redacted]  lrswipcda
>
> (And both of those happen to be problem already-exists-but-does-not-exist
> folders.)
>
Check for "space" at the end of the folder name. The columns are "tab"  
seperated.
Also you can try to use "reconstruct -r user.[redacted]" or
"reconstruct -u [redacted]"


=== !!! WARNING USE WITH CAUTION !!! ====

If you are sure that the folder does not exist anymore on the file system
and EVERTHING else failed you can try to remove the entries from the  
mailboxes.db.


====
#stop cyrus
#create backup of your mailboxes.db
ctl_mboxlist -d > /tmp/mboxlist
vi /tmp/mboxlist
ctl_mboxlist -u < /tmp/mboxlist
# Limit access to cyrus e.g. via firewall so that you can test
# if cyrus is running without any problem and nobody is  
creating/deleting folder
# or changing acls, so that you can use your backup of your  
mailboxes.db in case
# somthing went wrong
start cyrus
====



> Jay
>
>
> ------------------------------------------
> Cyrus: Info
> Permalink:  
> https://cyrus.topicbox.com/groups/info/Te4b694eca4c5d369-Mfe826e46224ee117f1b304ca
> Delivery options: https://cyrus.topicbox.com/groups/info/subscription



--
--------------------------------------------------------------------------------
Michael Menge                          Tel.: (49) 7071 / 29-70316
Universität Tübingen                   Fax.: (49) 7071 / 29-5912
Zentrum für Datenverarbeitung          mail:  
[email protected]
Wächterstraße 76
72074 Tübingen


------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/Te4b694eca4c5d369-Md51c49281c250e2aeaecd70b
Delivery options: https://cyrus.topicbox.com/groups/info/subscription
smime.p7s (application/pkcs7-signature, 6.5 KB) - not displayed
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.