get list of users on partition
tedtarg at jobstreet.com
Thu Mar 16 20:58:46 EST 2006
to list all the users and their current quota and quota usage...
i think that is more or less what you are looking for
note that this is a cyrus binary , not the usual linux quota...
also note that you must run it as the cyrus user
so i su cyrus before i run it.
On Thu, 2006-03-16 at 12:33 -0500, Aaron Bennett wrote:
> I'm trying to get a list of all the users on a partition and the size of
> their mailboxes in a Perl script. I'm looking through the perldocs for
> Cyrus::IMAP and Cyrus::IMAP::Admin and I'm not having any luck getting
> that info. From cyradm I can do "info" on a user and get their size and
> partition; but I can't see how this is done in Cyrus::IMAP::Admin except
> possibly by examining the results from :
> > listmailbox($pattern[, $reference])
> > list($pattern[, $reference])
> > List mailboxes matching the specified pattern, starting
> > from the
> > specified reference. The result is a list; each element is an
> > array containing the mailbox name, attributes, and the
> > separator.
> > (This interface may change.)
> Does anyone have an example snippet?
> Aaron Bennett
> Unix Administrator,
> Clark 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
Business Development/Operations Manager
Hand Phone: 6012-2063600
email: tedtarg at jobstreet.com
To within half a percent of accuracy, pi seconds is a
More information about the Info-cyrus