This function deletes messages in the BoxTrapper queue.
Important:
When you disable the Receive Mail role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ BoxTrapper \ delete_messages \ email='user@example.com' \ queuefile='file1.msg'
{- "apiversion": 3,
- "func": "delete_messages",
- "module": "BoxTrapper",
- "result": {
- "data": [
- {
- "email": "user@example.com",
- "failed": 1,
- "matches": [
- "example.msg"
], - "operator": "delete",
- "reason": "(XID d9myfd) The system failed to locate the requested message:",
- "warning": 1
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}