This function restores an account's email filters.
Important:
When the Receive Mail role is disabled, the system also disables this function.
Note:
You must use the backup
parameter when you call this function in one of the following formats:
multipart/form-data
request body to upload and restore a backup file to the server.The email filter file to upload and restore.
Important:
Note:
backup-1
, backup-2
, and backup-3
.uapi --input=json --output=jsonpretty \ --user=username \ Backup \ restore_email_filters
{- "apiversion": 3,
- "func": "restore_email_filters",
- "module": "Backup",
- "result": {
- "data": {
- "log_id": "2019-08-13T15:10:07Z.1",
- "log_path": "/home/cpuser/.cpanel/logs/restore-email-filters/2019-09-11T18:30:49Z.1.log",
- "messages": [
- "The system successfully restored the email filters from the 'filter-info.user.yaml.gz' backup."
]
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}