cyr_expire on 2.3.16

Marcus Schopen lists at localguru.de
Sat Dec 10 09:40:12 EST 2016


Am Samstag, den 10.12.2016, 14:15 +0000 schrieb Ken Smith via
Info-cyrus:
> Hi All,
> 
> I'm running 2.3.16 cyrus-imap on Centos 6.
> 
> Following a mother board failure on our primary Cyrus server we have 
> been using a standby server that normally gets a daily backup from the 
> primary. I now have the primary server running again and I'm 
> transferring the mailbox data back from the standby.
> 
> Through a backup anomaly there a quite a few more mail files in the 
> mailbox store than cyrus has in its database.
> 
> The primary server is now fine, and preparing to be live again.  If I 
> check the content of the imap store with mutt all is well on the primary 
> after updating it from the standby, there's just a whole load of surplus 
> files in /var/spool/imap/.. that I'd like to delete.
> 
> I believe I need the -D  option in cyr_expire but when I run it I get 
> this help text
> 
> ./cyr_expire
> cyr_expire [-C <altconfig>] -E <days> [-X <expunge-days>] [-p prefix] 
> [-a] [-v]
> 
> Is the -D option not valid in this version?
> 
> What's the simplest way to tidy the filesystem up?

I do this on some mailboxes, if I want to physically remove all mails
with deleted flag from file system:

su - cyrus -c "/usr/sbin/cyrus expire -E 1 -X 0 -D 0 -v -p
user.usermailbox"

Ciao
Marcus




More information about the Info-cyrus mailing list