IMAP icon

IMAP

Retrieve emails via IMAP

Email → Copy

AI-generated

Overview

This node operation copies one or more emails from a specified source mailbox to a destination mailbox using the IMAP protocol. It is useful in scenarios where emails need to be organized or duplicated across different mailboxes within the same email account. For example, copying important emails from the inbox to a dedicated folder for archiving or processing.

Use Case Examples

  1. Copying emails with specific UIDs from the INBOX to a 'Processed' folder.
  2. Duplicating emails from a shared mailbox to a personal mailbox for backup.

Properties

Name Meaning
Credential Type Selects the type of IMAP credentials to use for authentication, either from this node or from an existing N8N IMAP Trigger node.
Source Mailbox The mailbox from which the email(s) will be copied. Can be selected from a list or specified by full path.
Email UID The unique identifier(s) of the email(s) to copy. Multiple UIDs can be specified as a comma-separated list.
Destination Mailbox The mailbox to which the email(s) will be copied. Can be selected from a list or specified by full path.

Output

JSON

  • json - The copied email data or operation result for each processed email.

Dependencies

  • Requires IMAP credentials for authentication, either provided directly in the node or via 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 names or paths. Ensure the source and destination mailboxes exist and are correctly specified.
  • Failures when specifying invalid or non-existent email UIDs. Confirm the UIDs are correct and accessible.
  • Operation errors may be caught and logged; enabling 'Continue On Fail' allows processing to continue despite individual email copy failures.

Discussion