Actions39
- Email Actions
- Mailbox Actions
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 an email account. For example, users can automate moving emails from the inbox to an archive folder based on certain criteria.
Use Case Examples
- Move a single email by specifying its UID from the INBOX to a folder named 'Processed'.
- Move multiple emails at once by providing a comma-separated list of UIDs from one mailbox to another.
Properties
| Name | Meaning |
|---|---|
| Credential Type | Selects which IMAP credentials to use for authentication, either 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. Supports a comma-separated list to move multiple emails at once. |
| 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- The result of the move operation, typically including details about the moved emails.
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.