Description
This function lists the account's Mailman mailing lists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
regex |
string |
A Perl Compatible Regular Expression (PCRE) that filters the results. |
A valid PCRE. |
user |
domain |
string |
The domain to query. If you do not use this parameter, the function lists mailing lists for all of the cPanel account's domains. |
A valid domain on the cPanel account. |
example.com |
Returns
Return |
Type |
Description |
Possible values |
Example |
listid |
string |
The mailing list's name and domain. |
The mailing list name, an underscore (_), and the domain. |
list_example.com |
desthost |
string |
The IP address of the domain that was specified in the domaininput parameter. |
An IPv4 address. |
172.16.254.1 |
accesstype |
string |
The level of access that users have to the mailing list. |
|
public |
list |
string |
The mailing list name and domain. |
The mailing list name, the @character, and the domain. |
list@example.com |
subscribe_policy |
integer |
The level of control that the mailing list administrator has over new subscribers. |
|
1 |
archive_private |
Boolean |
Whether the mailing list archive is private. |
|
0 |
advertised |
Boolean |
Whether the Mailman directory page displays the list. |
|
1 |
listadmin |
string |
The mailing list's administrators' email addresses. |
A comma-separated list of email addresses. |
admin@example.com,admin2@example.com |
diskused |
integer |
The disk space that the mailing list currently uses. |
A positive value that represents the disk space used, measured in Megabytes (MB). |
20379 |
humandiskused |
string |
The disk space that the mailing list uses, in human-readable format. |
The disk space that the mailing list uses, a non-breaking space (\u00a0), and the unit of measure. |
19.9\u00a0KB |