Re: Command-line reconstruct different from cyradm reconstruct?

From: Daniel Eckl (no email)
Date: Mon Aug 21 2006 - 10:19:48 EDT

  • Next message: David Hornick: "Cyradm works, SquirrelMail and other clients don't"

    Possibly the IMAP command uses a quota reconstruct, too, while the
    command line reconstruct does not do that automatically.

    I'd try on command line if "reconstruct -rf user.jpublic; quota -f
    user.jpublic" does what you want.

    If quota -f does the trick and a lot of mailboxes have the problem, I'd
    do a
    "quota -f user."

    Best,
    Daniel

    Chris St. Pierre wrote:
    > 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

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

  • Next message: David Hornick: "Cyradm works, SquirrelMail and other clients don't"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD