IMAP integration

IMAP is supported through the Mach5 connector framework. This page lists every supported operation and where it can be used.

Connection

Integration connection picker

  • Connector kind: imap
  • Configuration: host, optional port, tls, username, password_secret_ref, default_page_limit, and max_message_bytes.

How to use this integration

For Axon concepts, safety classes, idempotency, and outcomes, see Axon workflows.

Axon

Axon is the controlled action path for connector reads, enrichments, and side effects. Use Axon when a workflow needs to call IMAP directly, enrich an investigation, or take an approved action. Invoke the connector kind imap with the operation name and JSON input.

connector: imap
operation: list_mailboxes
input: { ... }

Ingest Pipelines

Use ingest pipelines for operations exposed as sources. These operations can checkpoint and stream records into Mach5-managed data.

source.connector: imap
source.operation: mailbox_source
source.config: { ... }

SQL

Use SQL for read operations exposed as table or scalar functions. Query the connector operation with JSON input and join the result with Mach5 data.

SELECT *
FROM connector_table('imap', 'list_mailboxes', JSON '{}');

Supported operations

OperationWhat it doesAxonIngest PipelinesSQL
validateValidate IMAP server reachability and auth settings.
list_mailboxesList IMAP mailboxes.YesYes
search_messagesSearch IMAP message metadata with bounded limits.YesYes
fetch_messageFetch IMAP message metadata/body/raw with byte limits.YesYes
update_flagsAdd/remove IMAP message flags.Yes
delete_messageMark an IMAP message deleted and optionally expunge.Yes
parse_messageParse a raw RFC 5322/MIME message without network side effects.YesYes
mailbox_sourceDurable mailbox ingest source partitioned by mailbox and UID.Yes

Analytics Cookies

Help us understand website usage.

Necessary storage remembers your choice. With your consent, Mach5 also uses PostHog analytics to measure website traffic and interactions.

Change this anytime from Cookie Settings in the footer. Privacy Notice.