Re: reconstruct: delete orphaned mails in files system

Michael Menge <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <20241025144036.Horde.LGSGDgKire_lMKZMh_Bo6gO@webmail.uni-tuebingen.de>
Hi,

Quoting Marcus Schopen <[email protected]>:

> Am Freitag, dem 25.10.2024 um 13:08 +0200 schrieb Marcus Schopen:
>> Hi,
>>
>> in a user's INBOX folder are about 10k files in the cyrus spool, all
>> deleted. The folder is shown as empty in different clients. New
>> incoming mails are displayed correctly. An unexpunge -l shows only
>> about 20 deleted newser files. It seems that almost all files are not
>> present in cyrus.index and that there are orphaned mails in files
>> system. I don't want to reconstruct the folder as this will restore
>> all
>> mails. How do I delete all files in a folder that are not listed in
>> the
>> index, so that the folder is also emptied file system too.
>
> is "reconstruct -O, --delete-odd-files" what I'm looking for?
>

If the files names are of the pattern "[1-9][0-9]*\." this will not remove the
files as they are not "odd" files. It will either rediscover/restore the mails
if they have been purged, or do nothing if they are only flagged as "\Deleted"





--
--------------------------------------------------------------------------------
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/Td104cee5e7304809-M43e620cb5dd54e0e53f92aa1
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.