Reconstruct ALL mailboxes?

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

----- Original Message ----- 
From: "Anders Norrbring" <lists at>
To: "Cyrus Info list" <info-cyrus at>
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:

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

Cyrus Home Page:
Cyrus Wiki/FAQ:
List Archives/Info:

More information about the Info-cyrus mailing list