Actions13
Overview
This node operation moves one or more emails from a specified source mailbox to a destination mailbox using the IMAP protocol. It is useful for organizing emails by transferring them between folders or mailboxes within the same email account. For example, users can move emails from the inbox to an archive folder or a project-specific folder automatically as part of an email management workflow.
Use Case Examples
- Move a single email identified by its UID from the INBOX to a 'Processed' folder.
- Move multiple emails by specifying a comma-separated list of UIDs from a source mailbox to a destination mailbox.
Properties
| Name | Meaning |
|---|---|
| Credential Type | Selects which IMAP credentials to use for authentication, either credentials from this node or from an existing N8N IMAP Trigger node. |
| Source Mailbox | The mailbox folder from which the email(s) will be moved. Can be selected from a list or specified by full path. |
| Email UID | The unique identifier(s) of the email(s) to move. Multiple UIDs can be specified as a comma-separated list. |
| Destination Mailbox | The mailbox folder to which the email(s) will be moved. Can be selected from a list or specified by full path. |
Output
JSON
json- Contains the result of the move operation, typically details about the moved emails or any errors encountered.
Dependencies
- Requires IMAP credentials for authentication, either provided directly in the node or via an existing N8N IMAP Trigger node's credentials.
Troubleshooting
- Connection failures due to incorrect IMAP credentials or network issues. Verify credentials and network connectivity.
- Errors related to invalid mailbox names or paths. Ensure the source and destination mailboxes exist and are correctly specified.
- Errors when the specified email UID(s) do not exist or are invalid. Confirm the UIDs are correct and correspond to emails in the source mailbox.
- Operation failures may throw errors caught and logged by the node; enabling debug logging can help diagnose issues.