This function returns the number of mailing lists for every email address on a cPanel account.
Important:
When you disable the Receive Mail role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Email \ count_lists
{- "apiversion": 3,
- "func": "count_lists",
- "module": "Email",
- "result": {
- "data": 1,
- "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}