IM
EN
Docs Home
Menu
Features

Email Ingestion and Delivery

IMAP sync, email storage, body/part retrieval, and outbound SMTP task enqueueing.

inbox-manager email imap smtp

Email Ingestion and Delivery

The email ingestion and delivery feature defines how signed-in users with saved credentials sync inbound email and queue outbound sends. It gives you one clear order of use: sign in, set credentials, then run IMAP and SMTP operations.

Why This Matters

This feature stores provider email data in a consistent account shape so reads and writes stay predictable across IMAP and SMTP flows. It separates metadata search from full body and part retrieval, and it ties provider actions to tasks and jobs for clear retry behavior.

Core Flow

After sign in, the client uses saved credentials to sync mailboxes or messages from IMAP. Inbox Manager stores message and part data, clients search and read what they need, and outbound SMTP sends are queued while results are tracked through tasks, jobs, and logs.

Operations

OperationEndpointPurpose
Sync mailboxesPOST /api/accounts/:account_id/imap/sync-mailboxesEnqueue mailbox synchronization
Sync messagesPOST /api/accounts/:account_id/imap/sync-messagesEnqueue message synchronization
Send SMTP messagePOST /api/accounts/:account_id/smtp/messagesEnqueue outbound message send
List emailsGET /api/accounts/:account_id/emailsList account email metadata
Search emailsPOST /api/accounts/:account_id/emails/searchQuery emails by indexed fields
Delete emails by searchPOST /api/accounts/:account_id/emails/search-deleteBulk delete matched email records
Create email recordPOST /api/accounts/:account_id/emailsCreate email record explicitly
Get emailGET /api/emails/:email_idRetrieve one email record
Update emailPATCH /api/emails/:email_idUpdate mutable email fields
Delete emailDELETE /api/emails/:email_idDelete one email record
Get full bodyGET /api/accounts/:account_id/emails/:email_id/bodyRetrieve parsed message body
List partsGET /api/accounts/:account_id/emails/:email_id/partsRetrieve message part metadata
Get part contentGET /api/accounts/:account_id/emails/:email_id/parts/:part_id/contentRetrieve decoded content for one part

Key Data and State

ItemPurposeLinked To
email_messageStored inbound/outbound message datatask, job, provider credential
email_message_partPart data for attachments and embedsemail_message
email_message_part_contentDecoded part payloademail_message_part
taskRequested provider operationjob

Failure Modes and Controls

Provider sync or send failures are surfaced through task/job state and audit trails rather than silent drops. Account-scoped routes reject account mismatches, search-delete remains explicit and scoped, and body or part-content retrieval stays on dedicated endpoints to prevent accidental over-fetch during list or search operations.

Email Message, Email Message Part, Email Message Part Content, Task, IMAP Sync Guide, Search and Read Guide, Send Outbound Email Guide.