Docs
On this page
reference2 min readApplication: System Email

Inbound message fields

Fields of an inbound message, the rule that decides what Servicely does with an email it collects.

An inbound message is a rule that decides what Servicely does with a collected email, such as creating an interaction or adding a comment to a ticket. Look up its fields here when you build or change one. You need the administrator role, and the rules are under Messaging & notifications → Inbound → Inbound messages in the Administration workspace.

The default inbound message “Interaction - Create new interaction” with Type New, Table Interaction, an empty Messaging account and empty Condition and User script fields.

How Servicely picks an inbound message

For each collected email, Servicely does this in order:

  1. It drops the email if an active email address override disables inbound processing for the sender. See Email address override fields.
  2. It looks for the record the email replies to. It checks the Reply-To header, the thread ID, the References header and the watermark in the body. Outbound notifications explains the watermark.
  3. It sets the email’s type. A match makes it a Reply. Otherwise a subject that starts with FW: or Fwd: makes it a Forward, and anything else is New.
  4. It stops with an error if it detects an email loop.
  5. It tries the active inbound messages of that type, lowest Priority order first. For a Reply, it tries only those whose Table is the matched record’s table.
  6. It runs the processing script of the first inbound message whose Messaging account, To, From and Condition all match. No other inbound message runs.

The notification.email.inbound.forward_subject_prefixes property adds forward prefixes that other languages use. It is a comma-separated list, for example WG:, TR:, RV:, and is blank by default. If no Forward inbound message accepts an email matched by one of these prefixes, Servicely tries the New ones.

Processor settings

Name sits above this panel on the form.

Field Type Required Behaviour Purpose
Name Text No Shown in the list and in the log of each email the rule is tried on. Identifies the rule.
Active Yes or no No Default: Yes. Servicely tries only active rules. Turns the rule on.
Providers Choice No Takes several values. Default: Email. Email processing tries only rules whose providers include Email. The channels the rule handles.
Priority order Number No Default: 0. Lower numbers are tried first. Orders the rules of one type.

Message matching

Field Type Required Behaviour Purpose
Type Choice No New, Reply or Forward. A New rule skips an email that counts as an auto-reply. The kind of email the rule handles.
Table Table No A Reply rule is tried only when the replied-to record is in this table. The record type the rule creates or updates.
Messaging account Reference (Messaging account) No Empty matches every account. Limits the rule to email collected by one account.
To Text No Empty matches every address. Compared, ignoring case, with the receiving account’s from address, or its username when it has no from address. It is not compared with the email’s recipient list. Limits the rule to one mailbox address.
From Text No Empty matches every sender. Compared with the sender’s address, ignoring case. Limits the rule to one sender.

Scripts

Field Type Required Behaviour Purpose
Condition Script No Receives email and sets answer to true or false. Empty always matches. Adds any other test on the email.
User script Script No Receives email and sets answer to a User record. Empty finds the user whose email address or active email alias is the sender’s address. Chooses the user the processing script runs as, for example when several users share an address.
Processing script Script No Runs as the matched user, with email, current and user. A script that changes current calls current.update() after its last change. Creates or updates records.

A user’s aliases are in the Email aliases list on the user record. To see a working processing script, open the default inbound message “Interaction - Create new interaction”.

Script variables

Variable Available in Description
email.id All scripts The record ID of the email’s System email record.
email.subject All scripts The subject line.
email.body All scripts The full body, as HTML.
email.body_reply All scripts The body with earlier replies and forwarded text removed.
email.no_html_body All scripts The full body as plain text.
email.no_html_body_reply All scripts The reply part as plain text.
email.from All scripts The sender’s address.
email.to All scripts The receiving account’s from address, or its username.
email.recipients_to All scripts An array of the addresses in To.
email.recipients_cc All scripts An array of the addresses in CC.
email.type All scripts new, reply or forward.
email.matched All scripts True when Servicely found the record the email replies to.
email.is_auto_reply All scripts True when the email counts as an auto-reply.
email.is_no_reply All scripts True when the From or Reply-To address is a no-reply address.
email.is_email_loop All scripts True when Servicely detected an email loop.
email.record All scripts The System email record.
current Processing script The record the email replies to. Empty for a New or Forward email.
user Processing script The user the script runs as.

Default inbound messages

All default inbound messages are active, with Priority order 0. The two Work Tracker Item rules come with the Work Tracker application.

Name Table Type Providers
Interaction - Create new interaction Interaction New Email
Interaction - Create new interaction from forward Interaction Forward Email
Interaction - Update existing interaction Interaction Reply Email
Incident - Update existing incident Incident Reply Email
Incident - Update existing incident Incident Reply Teams, WhatsApp
ITSM Request - Update existing ITSM request ITSM Request Reply Email
Problem - Update existing problem Problem Reply Email
Change - Update existing change Change Reply Email
HR Case - Update existing HR case HR Case Reply Email
Incident task - Update existing Incident task Incident task Reply Email
ITSM Request task - Update existing ITSM Request task ITSM Request task Reply Email
Problem task - Update existing problem task Problem task Reply Email
Change task - Update existing change task Change task Reply Email
HR Case task - Update existing HR case task HR Case task Reply Email
Approval task - Approve / Reject for ITSM request, change, HR case and knowledge Approval task Reply Email
Work Tracker - Update existing Work Tracker Item Work Tracker Item Reply Email
Work tracker - Update existing Work Tracker Item Work Tracker Item Reply Teams, WhatsApp
Last updated 3 December 2026commit 97a56b9c7df7Chris Jones
Back to top