IMAP Manager icon

IMAP Manager

Manage mail via IMAP (works with IONOS or any IMAP server): search, add keywords, move, copy, delete

Overview

This node, named IMAP Manager, allows users to manage emails on an IMAP server, including IONOS or any other IMAP-compatible server. It supports operations such as listing mailboxes, searching emails by RFC822 Message-ID, adding or removing keywords (tags) to messages, moving or copying messages between mailboxes, deleting messages, and marking messages as unread. This node is useful for automating email management tasks, such as organizing emails into folders, tagging important messages, or searching for specific emails by their unique message ID.

Use Case Examples

  1. Automatically search for an email by its Message-ID to retrieve its UID for further processing.
  2. Add custom tags to emails to categorize them based on business needs.
  3. Move emails from the inbox to an archive folder automatically after processing.
  4. Delete emails based on certain criteria to keep the mailbox clean.

Properties

Name Meaning
Mailbox The mailbox or folder on the IMAP server where the operation will be performed. Defaults to 'INBOX'. Used in operations like searching by Message-ID, adding/removing keywords, moving, copying, deleting, and marking unread.
RFC822 Message-ID The unique Message-ID of the email to search for. Must include angle brackets, e.g., abc123@example.com. Required for the 'Search by Message-ID' operation.

Output

JSON

  • mailbox - The mailbox where the operation was performed.
  • messageId - The RFC822 Message-ID used in the search operation.
  • uids - Array of UIDs of messages matching the searched Message-ID.

Dependencies

  • Requires IMAP server credentials including host, port, security setting, username, and password.

Troubleshooting

  • Ensure the 'messageId' parameter is provided and correctly formatted with angle brackets for the 'Search by Message-ID' operation, otherwise the node will throw an error.
  • UID and keywords must be provided for operations that modify message flags or move/copy messages; missing these will cause errors.
  • If moving or copying messages to a destination mailbox that does not exist, enable 'Create Destination If Missing' to automatically create the mailbox.
  • Connection issues may arise if IMAP credentials are incorrect or the server is unreachable; verify credentials and network connectivity.

Discussion