Page 1 of 1

get email account quota

Posted: Sun Sep 01, 2019 5:08 am
by zomebodi
is there a way to get the account quota with cli ?
v-list-mail-accounts shows quota used, but no quota asigned.

Re: get email account quota

Posted: Sun Sep 01, 2019 6:06 pm
by grayfolk
zomebodi wrote:
Sun Sep 01, 2019 5:08 am
is there a way to get the account quota with cli ?
v-list-mail-accounts shows quota used, but no quota asigned.
May be v-list-user?

Re: get email account quota

Posted: Mon Sep 02, 2019 12:25 am
by zomebodi
i mean, email quota asigned

Re: get email account quota

Posted: Fri Oct 04, 2019 6:11 am
by fedekrum
Absolutly there is a way !!!
v-list-mail-account USER DOMAIN ACCOUNT [FORMAT]
so....

If you do:

Code: Select all

v-list-mail-account dragonco dragoncompany.com info json
You will get:

Code: Select all

{
    "waves": {
        "ALIAS": "",
        "FWD": "",
        "FWD_ONLY": "no",
        "AUTOREPLY": "no",
        "QUOTA": "101",
        "U_DISK": "0",
        "SUSPENDED": "no",
        "TIME": "13:09:01",
        "DATE": "2019-03-22"
    }
}
Parse the json for "QUOTA" and there you are !