email.parse
The email.parse: command parses a MIME-encoded email message into a ticket.
start:
email.parse/parse:
output: results
inputs:
message@text:
From: customer@cerb.example
To: support@cerb.example
Subject: This is an example
This is an example message.
on_simulate:
set:
results:
_context: ticket
id@int: 123
on_success:
return:
ticket_id@key: results:id
Syntax
inputs:
Key | |
---|---|
message@text: |
A MIME-encoded email message as a text block. At minimum this should contain headers, a blank line, and a plaintext body. |
output:
Save the results in this placeholder.
on_simulate:
The commands to run during simulation instead of parsing the email.
If omitted, the email is parsed during simulation.
on_success:
The commands to run on success.
The output:
placeholder receives a ticket dictionary.
on_error:
The commands to run on failure. If omitted, the automation exits in the error
state.
The output:
placeholder receives a dictionary with these keys:
Key | |
---|---|
error |
The error message. |