For When You Can't Have The Real Thing
[ start | index | login ]
start > cyrus > imap > Listing Mailbox Quotas

Listing Mailbox Quotas

Created by dave. Last edited by dave, 12 years and 216 days ago. Viewed 2,668 times. #1
[edit] [rdf]
labels
attachments

Gosh, it would be nice to automate quota listing.

Yes, it would. My particular solution:

#!/usr/bin/python

import cyruslib m=cyruslib.CYRUS() m.login("cyrus","mycyruspassword") userlist=m.lm()['user'] for user in userlist: (used,limit)=m.lq("user",user) try: percent=used*100/limit except: percent=0 if percent > 90: print user, used, percent

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt