Email Trigger

messaging · A004 · starter-package 7.0.1

Start a saved workflow when an email matches its mailbox filter.

Inputs and outputs

Inputs

ConnectorTypeRequired
Registration NametextYes
FilterrecordYes
Expires In MillisecondsnumberNo

Outputs

ConnectorType
Registrationrecord
Triggeredboolean
Payloadany

Filter settings

Connect Filter as one plain record. Unknown fields are rejected.

SettingTypeRequiredMeaning
hosttextYesIMAP server host.
portintegerNo1-65535; defaults to 993 or 143 based on secure.
securebooleanNoTLS selection; defaults to true.
usernameEnvironmentVariabletextYesName of the environment variable containing the IMAP user.
passwordEnvironmentVariabletextYesName of the environment variable containing the IMAP password.
mailboxtextNoMailbox name; defaults to INBOX.
sendertextNoExact sender-address filter.
subjectContainstextNoCase-insensitive subject fragment.

What the block does

On the first valid execution, Nodestly stores the registration durably and the installed add-on starts its own listener. A matching event starts the exact same saved workflow revision. The registration run returns Triggered=false and Payload=null; the delivery run returns Triggered=true with the received Payload. The listener is stopped cleanly when disabled or on shutdown.

Errors and recovery

Missing connectors, unknown Filter fields, invalid bounds, relative file paths, invalid routes or URLs, and missing environment variables stop the block with a clear message and correction. An occupied webhook port, unreachable email/database/queue service, and a failed HTTP request are reported separately. Correct the named setting, make the local path or endpoint reachable, and run the workflow again. If a required component is still missing after Nodestly finishes workflow preparation, update Nodestly and the add-on, restart the app, and run the same saved workflow again. If it continues, report the highlighted block as a product defect.

If every documented connector and setting is correct but the block reports an invalid result, update Nodestly and this official add-on, restart Nodestly, and try again. If it still fails, report the highlighted block as a product defect.

Example workflow

Connect a filter Record for your IMAP host, the secure port and the names of the environment variables holding the mailbox login. Configure the mailbox and matching rules in that record. Connect triggered to a Boolean branch. Registration returns false with a null payload. A matching delivery starts a new run with triggered true.

Read the receipt

After registration, registration contains registrationId, status ('active') and expiresAtEpochMs (expiry in milliseconds since the Unix epoch). On that run, triggered is false and payload is null. When a delivered event starts a later run, triggered is true and the next block reads the event from payload. The registration output for that run contains consumed: true and the same payload.