IMAP List Account Sizes

popowich

EQ Forum Admin
Staff member
list_account_sizes.pl

list_account_sizes.pl is called like this:

./list_account_sizes.pl -S <host> -u <list of users> [-A admin : password]

If you supply the name and password for an administrator who can log into a user's account then the user list is just account names; otherwise you must supply the users's passwords in the list:

john:mypass
mary:herpassword
etc...

The output is written to list_account_sizes.report.

For example:

SIZE (MB) USER
==================================================
1,583.27 jessi
1,429.61 tom
1,260.20 john
691.07 jane
45.18 bob

Totals
=================
Users 5
Bytes 5,009.33 MB

If you have a question about using this script please reply.

If you would like to download the script please see How to get the IMAP Tools.
 

popowich

EQ Forum Admin
Staff member
For this script is there a way to give it a single username and password as arguments and get back a simple 1 line output that's the size of their IMAP account? I get the batch mode mentality of it, but I can also think up some uses for it when used as a check for a single account.
 

rfs9999

IMAP Tools
Just a minor tweak needed to list_account_sizes.pl to get this output:

./list_account_sizes.pl -B -S localhost:1430/<user>/<password>

2490.05 MB

I'll send you the new version.

-Rick
 
Top