IMAP List Account Sizes

Discussion in 'IMAP Tools' started by popowich, Oct 27, 2013.

  1. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,983
    Likes Received:
    120
    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.
     


  2. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,983
    Likes Received:
    120
    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.
     

  3. rfs9999

    rfs9999 IMAP Tools

    Joined:
    Oct 27, 2013
    Messages:
    114
    Likes Received:
    6
    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
     

Want to reply or ask your own question?

It only takes a minute to sign up (and it's free!). Click the orange sign up button to choose a username and then you can ask your own questions on the forum.
Loading...