----- Original Message ----- 
From: "Anders Norrbring" <[EMAIL PROTECTED]>
To: "Cyrus Info list" <[EMAIL PROTECTED]>
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

Reply via email to