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.
uapi --output=jsonpretty \ --user=username \ BoxTrapper \ get_message \ email='user@example.com' \ queuefile='example.msg'
{- "apiversion": 3,
- "func": "get_message",
- "module": "BoxTrapper",
- "result": {
- "data": {
- "content": "From user@example.com Tue May 07 08:30:36 2019\nReceived: from user by example.com with local (Exim 4.92) (envelope-from <root@yourserver.net>)\n id 1hO0B1-0003Ev-Md for user2@example.com; Tue, 07 May 2019 08:30:36 -0500\nFrom: user3@example.com\nSubject: Message\nMessage-Id: <E1hO0B1-0003Ev-Md@yourserver.net>\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
}
}