Actions13
Overview
This node operation sets flags on specified emails in an IMAP mailbox. It allows users to mark emails as answered, deleted, draft, flagged, or seen by specifying the email UID(s) and the desired flags. This is useful for email management automation, such as marking emails as read or flagged after processing them in a workflow.
Use Case Examples
- Mark an email as seen after processing it in a workflow.
- Flag important emails for follow-up by setting the \Flagged flag.
- Delete emails automatically by setting the \Deleted flag based on certain criteria.
Properties
| Name | Meaning |
|---|---|
| Credential Type | Selects which IMAP credentials to use for connecting to the mailbox. |
| Mailbox | The mailbox path where the email resides, e.g., INBOX. |
| Email UID | The UID(s) of the email(s) to set flags on. Can be a comma-separated list. |
| Flags | The flags to set on the email(s), such as Answered, Deleted, Draft, Flagged, and Seen. |
Output
JSON
json- The result of the flag setting operation, including any errors if they occur.
Dependencies
- Requires IMAP credentials, either from this node or from an existing N8N IMAP Trigger node.
Troubleshooting
- Connection failures due to incorrect IMAP credentials or network issues. Verify credentials and network connectivity.
- Errors related to invalid mailbox paths or email UIDs. Ensure the mailbox path exists and UIDs are correct.
- Operation failures if the IMAP server rejects flag changes. Check server permissions and flag support.