mail_import_email
Import an uploaded .eml email message into your mail store by specifying the blob ID and mailbox IDs. Optionally set JMAP keywords and a received timestamp.
Instructions
Import a raw RFC 5322 message blob into the mail store.
The blob must already be uploaded (use mail_upload_attachment to get a blobId). The .eml content must be a valid RFC 5322 message with at minimum Date and Message-Id headers — a bare body without proper headers will be rejected.
Args: blob_id: blobId of the uploaded .eml blob. mailbox_ids: List of mailbox IDs to place the email in. keywords: Optional JMAP keywords (e.g. ["$seen", "$flagged"]). received_at: Optional UTC timestamp (ISO 8601) for receivedAt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blob_id | Yes | ||
| mailbox_ids | Yes | ||
| keywords | No | ||
| received_at | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |