This function whitelists email messages.
Important:
When you disable the Receive Mail role, the system disables this function.
Note:
To retrieve email messages in the BoxTrapper queue from senders that you did not previously whitelist, use the UAPI BoxTrapper::deliver_messages
function.
uapi --output=jsonpretty \ --user=username \ BoxTrapper \ whitelist_messages \ queuefile='example.msg'
{- "apiversion": 3,
- "func": "whitelist_messages",
- "module": "BoxTrapper",
- "result": {
- "data": [
- {
- "email": "user@example.com",
- "matches": [
- "example.msg"
], - "operator": "whitelist"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}