Reconstruct ALL mailboxes?

Eddy Beliveau eddy.beliveau at hec.ca
Wed Jul 14 09:49:05 EDT 2004


----- Original Message ----- 
From: "Anders Norrbring" <lists at norrbring.biz>
To: "Cyrus Info list" <info-cyrus at lists.andrew.cmu.edu>
Sent: Wednesday, July 14, 2004 8:06 AM
Subject: Reconstruct ALL mailboxes?


> Is there a way to recursively reconstruct all and every one mailbox on the
> system?  I tried to issue the command
> 'reconstruct -r user' but that didn't work...

Hi! Anders,

I'm using the following script under user cyrus:

#!/usr/bin/perl
chdir "/mail/spool/imap/user/";
open (LS,"ls |");

while (<LS>) {
  chop; $n++; print "$n ";
  system "/usr/lib/cyrus-imapd/reconstruct  -f  -p  default  -r  user/$_";
}

Hope it help
Eddy

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list