Command-line reconstruct different from cyradm reconstruct?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a number of users with quotas that are set correctly, but Cyrus
is confused about the amount of data they have.  For instance:

imap> lq user.jpublic
 STORAGE 0/307200 (0%)

If I run:

# su - cyrus -c "/usr/lib64/cyrus-imapd/reconstruct -rf user.jpublic"

nothing changes, and all remains as it was:

imap> lq user.jpublic
 STORAGE 0/307200 (0%)

But if I run reconstruct from cyradm, it works fine:

imap> reconstruct user.jpublic
imap> lq user.jpublic
 STORAGE 23140/307200 (7.53255208333333%)

Two questions:

1.  Why would this be?

2.  I need to reconstruct several thousand mailboxes thusly.  How can
    I script this?  Cyrus::IMAP::Admin doesn't appear to have a
    "reconstruct" method, and piping a text file into cyradm doesn't
    work because of the password prompt.  Other ideas?

I'm using the RHEL4 package of Cyrus IMAP v2.2.12.  Thanks!

Chris St. Pierre
Unix Systems Administrator
Nebraska Wesleyan University

----
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

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux