Am Sonntag, dem 16.11.2025 um 21:44 +0100 schrieb Marcus Schopen: > Hi, > > in a mailbox I see about 1081 old files in file system. I used > > /usr/sbin/ipurge -d 7 -f user.test > > to delete all mails in that mailbox older than 7 day (delay is > activated). After that I run > > su - cyrus -c "/usr/sbin/cyrus expire -E 1 -X 0 -D 0 -v -p user.test" > Expunging deleted messages in mailboxes older than 0.00 days > > Expunged 0 out of 17193 messages from 9 mailboxes > Removing deleted mailboxes older than 0.00 days > Removed 0 deleted mailboxes > > > When I log in to that mailbox I only see mails younger that 7 days, > but > in the filesystem I still see about 1081 mail files, oldest are from > October 2024, but not 17193 messages like cyrus expire points out. > > I don't need any emails in this mailbox, but would like to have it > clean. So, what would be the correct reconstruct to remove all old > files from filesystem, keep only 7 day old mails and bring the index > von 17193 mails to the correct number? Is it "reconstruct -O > user.test"? > > Thanks > Marcus # mbexamine "user.test" | grep -e "^ Deleted: " -e "Mailbox Size:" -e "^Examining " Examining user.test... Number of Messages: 14 Mailbox Size: 1689542 bytes Deleted: 0 Answered: 0 Flagged: 0
14 messages is correct, that are all messages younger than 7 days. How do I delete the old email files in the file system and how do I update the index so that it displays the correct number of emails (14 and not 17193 messages when I run expire)? Cheers Marcus ------------------------------------------ Cyrus: Info Permalink: https://cyrus.topicbox.com/groups/info/T97dd50222cf68219-M3fad5966195d608b8ab54c48 Delivery options: https://cyrus.topicbox.com/groups/info/subscription
