Actions39
- Email Actions
- Mailbox Actions
Overview
This node operation deletes one or more emails from a specified mailbox using the IMAP protocol. It is useful for automating email management tasks such as cleaning up inboxes or removing unwanted messages based on certain criteria. For example, it can be used to delete spam emails or clear out old messages from a specific folder.
Use Case Examples
- Delete a single email by specifying its UID in the INBOX mailbox.
- Delete multiple emails at once by providing a comma-separated list of UIDs in a custom mailbox.
Properties
| Name | Meaning |
|---|---|
| Credential Type | Selects the source of IMAP credentials to authenticate the connection, either from this node or an existing IMAP trigger node. |
| Mailbox | The mailbox folder path containing the email(s) to delete. Can be selected from a list or specified as a full path. |
| Email UID | The unique identifier(s) of the email(s) to delete. Supports a comma-separated list to delete multiple emails at once. |
Output
JSON
json- The result of the delete operation, including success or error details for each email processed.
Dependencies
- Requires IMAP credentials for authentication to the email server.
Troubleshooting
- Connection failures due to incorrect IMAP credentials or network issues. Verify credentials and network connectivity.
- Errors when specifying invalid mailbox paths or email UIDs. Ensure mailbox exists and UIDs are correct.
- Operation failures may return error messages from the IMAP server, which should be reviewed to understand the cause.