At first, thanks for your answer, and sorry for the delay.
On 10.06.2024 12:20, Patrick Boutilier wrote:
The first thing that comes to mind is to make sure that Thunderbird has actually compacted the folders.
I always thought that a message gets the "Deleted" flag assigned when I delete it in TB, and that cyr_expire can be used to purge all messages that have this flag set. Would you mind shortly explaining why it is necessary to have TB compact the respective folder before using cyr_expire?
Compacting folders is not possible anyway for me because there are a few hundred of them over which these messages are scattered.
If you run this, do you get the expected number of messages?
unexpunge -l user.ton|grep UID|wc -l
That does not seem to effect anything. At least this is a thing I can understand because the messages in question only have the "Deleted" flag set, but have not been expunged yet. Therefore unexpunge is not expected to process them.
Change UID to Expg and remove "wc -l" in the above command to see when the messages were expunged.
Thank you very much. I'll note this for future cases as a possible method to analyze problems. In the current scenario, unexpunge doesn't seem the right tool because the messages in question haven't been expunged yet.
Best regards,
Binarus
On 6/10/24 05:34, Binarus wrote:
Dear all,
on one my Cyrus imapd installations, I am running out of disk space. Solving the problem the right way will take some days, so I decided to delete about 100,000 messages as a first measure (those messages definitely don't need to be kept any longer). I have used Thunderbird to delete those messages (of course, I have not moved them to trash, but have really deleted them), and afterwards have used cyrdump to verify that they actually are flagged as deleted.
To finally free up the space on the disk, I wanted to use cyr_expire. However, the output of
/usr/lib/cyrus/bin/cyr_expire -D 60s -E 60s -X 60s -v
only told me that nothing happened (last lines of the very lengthy output, empty lines partly omitted):
...
cleaning up expunged messages in user.ton
cleaning up expunged messages in user.ton.Drafts
cleaning up expunged messages in user.ton.Junk
cleaning up expunged messages in user.ton.Sent
cleaning up expunged messages in user.ton.Trash
Expired 0 and expunged 0 out of 293918 messages from 3867 mailboxes
Removing deleted mailboxes older than 0.00 days
Removed 0 deleted mailboxes
Of course, after having deleted the messages in Thunderbird, I have waited several minutes before I have issued the command mentioned above.
Does anybody have an idea why cyr_expire refuses to purge the deleted messages?
I have to add that no MUA or other client was connected to the server when I have issued the command. The Cyrus imapd version is 3.2.3, the OS is Debian 11.9 / amd64.
Thank you very much in advance,
Binarus
------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/Te8b9eb9ffbec5936-M7a54200834c0991bcf0d88fa
Delivery options: https://cyrus.topicbox.com/groups/info/subscription