import_email
Import raw RFC822 (.eml) messages into a folder via IMAP APPEND to restore backups or migrate mail from other providers, without sending.
Instructions
Import a raw RFC822 message (.eml content) into a folder via IMAP APPEND. Use to restore a backed-up message or migrate mail from another provider's export. Does not send anything — this only inserts a message directly into the mailbox.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | Yes | Full raw RFC822 message source (the .eml file content) as a UTF-8 string. | |
| markAsRead | No | Set the \Seen flag on import. | |
| targetFolder | No | Destination folder. Defaults to INBOX. |