This function returns the first 200 lines of an email in the BoxTrapper queue.
Important:
When you disable the Receive Mail role, the system disables this function.
required | string or string The account’s name, either an email address or the cPanel user’s username. Important: If you call this function in Webmail, the system ignores this parameter. Example: [email protected] |
queuefile required | string The message's filename. Example: queuefile=example.msg |
uapi --output=jsonpretty \ --user=username \ BoxTrapper \ get_message \ email='[email protected]' \ queuefile='example.msg'
{- "apiversion": 3,
- "func": "get_message",
- "module": "BoxTrapper",
- "result": {
- "data": {
- "content": "From [email protected] Tue May 07 08:30:36 2019\nReceived: from user by example.com with local (Exim 4.92) (envelope-from <[email protected]>)\n id 1hO0B1-0003Ev-Md for [email protected]; Tue, 07 May 2019 08:30:36 -0500\nFrom: [email protected]\nSubject: Message\nMessage-Id: <[email protected]>\nDate: Tue, 07 May 2019 08:30:35 -0500\n\nThis is an email message",
- "contents": null,
- "queuefile": "example.msg"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}