Am Sonntag, dem 16.11.2025 um 22:09 +0100 schrieb Marcus Schopen: > 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)?
The interesting thing is, that on the slave the number of messages in the filesystem is correct, no left files in the file system. On the master I removed all left files by hand with rm and did a reconstruct. After that ipurge -d 7 -f user.test" Working on user.test... total messages 1081 total bytes 168824164 Deleted messages 1067 Deleted bytes 167134915 Remaining messages 14 Remaining bytes 1689249 Followed by 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 17197 messages from 9 mailboxes Removing deleted mailboxes older than 0.00 days Removed 0 deleted mailboxes mbexamine "user.test" Examining user.test... Mailbox Header Info: Path to mailbox: [...]/user/test Mailbox ACL: test lrswipkxtecda Unique ID: 1422ef4856cb0575 User Flags: $Forwarded Forwarded $MDNSent Index Header Info: Generation Number: 722 Minor Version: 12 Header Size: 128 bytes Record Size: 96 bytes Number of Messages: 4 Mailbox Size: 389250 bytes Last Append Date: (1763408289) Mon Nov 17 20:38:09 2025 UIDValidity: 1456145781 Last UID: 50335 Deleted: 0 Answered: 0 Flagged: 0 Mailbox Options: POP3_NEW_UIDL Last POP3 Login: (1695881483) Thu Sep 28 08:11:23 2023 Highest Mod Sequence: 86772 I think the cyrus.index and cyrus.cache files have a kind of wrong information, and cyrus.cache and cyrus.index are really big on master: master: -rw------- 1 cyrus mail 34071424 Nov 17 20:38 cyrus.cache -rw------- 1 cyrus mail 193 Sep 29 2024 cyrus.header -rw------- 1 cyrus mail 1651040 Nov 17 20:41 cyrus.index slave: -rw------- 1 cyrus mail 5944 Nov 17 20:38 cyrus.cache -rw------- 1 cyrus mail 193 Sep 29 2024 cyrus.header -rw------- 1 cyrus mail 512 Nov 17 20:38 cyrus.index Would I a way to remove them and do a reconstruct or is that a bad idea? Cheers Marcus ------------------------------------------ Cyrus: Info Permalink: https://cyrus.topicbox.com/groups/info/T97dd50222cf68219-M98af5564a93e20820135061a Delivery options: https://cyrus.topicbox.com/groups/info/subscription
