IMAP icon

IMAP

Retrieve emails via IMAP

Overview

This node operation copies one or multiple emails from a source mailbox to a destination mailbox using the IMAP protocol. It is useful for organizing emails by moving or duplicating them between folders within the same email account. For example, you can copy important emails from the inbox to a project-specific folder automatically.

Use Case Examples

  1. Copy a single email by specifying its UID from the INBOX to a 'Processed' folder.
  2. Copy multiple emails 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 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 provided as a comma-separated list.
Destination Mailbox The mailbox folder 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 status information for each copied 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 or non-existent email UIDs. Ensure the UIDs are correct and exist in the source mailbox.
  • Permission errors when accessing source or destination mailboxes. Confirm the authenticated user has appropriate mailbox access rights.
  • Operation failures may produce error messages with details; enabling debug logging can help diagnose issues.

Discussion