[MlMt] Displaying IMAP quota usage
Bill Cole
mmlist-20120120 at billmail.scconsult.com
Sun Dec 24 23:14:54 EST 2017
On 24 Dec 2017, at 13:50 (-0500), Roger Sheen wrote:
> Is there a way to query it from the command line,
Sure. It's not exactly simple:
printf "1 AUTHENTICATE PLAIN $(printf '\0[username]\0[password]' |
base64 )\n2 GETQUOTAROOT . \n3 logout\n" | openssl s_client -quiet
-connect [imapservername]:993 2>&1 |grep '^\* QUOTA '
(replace the [] placeholders with your details)
That will spit out something like :
* QUOTA "User quota" (STORAGE 1616791 10485760)
Indicating that in this case I am using ~1.6GB of my 10GB quota.
--
Bill Cole
bill at scconsult.com or billcole at apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Currently Seeking Steady Work: https://linkedin.com/in/billcole
More information about the mailmate
mailing list