This function exports a cPanel account's Mailman mailing lists into a CSV file. This file is located in mail/exported_lists under the user's home directory.
uapi --output=jsonpretty \ --user=username \ Email \ export_lists
{- "apiversion": 3,
- "func": "export_lists",
- "module": "Email",
- "result": {
- "data": { },
- "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}