IMAP icon

IMAP

Retrieve emails via IMAP

Overview

This node operation creates a new mailbox in an IMAP email account. It supports creating either a top-level mailbox or a child mailbox under a specified parent mailbox. This is useful for organizing email folders programmatically, such as setting up new folders for categorizing incoming emails or managing mailbox structure automatically.

Use Case Examples

  1. Create a new top-level mailbox named 'Projects' to organize project-related emails.
  2. Create a child mailbox named 'Invoices' under the 'Finance' mailbox to separate invoice emails.

Properties

Name Meaning
Credential Type Selects which IMAP credentials to use for authentication, either credentials from this node or from an existing N8N IMAP Trigger node.
Top Level Mailbox Boolean flag indicating whether the mailbox to create is a top-level mailbox or a child mailbox.
Mailbox Specifies the parent mailbox path under which the new mailbox will be created. Required only if creating a child mailbox.
Mailbox Name The name of the new mailbox to create.

Output

JSON

  • json - Contains the details of the created mailbox, such as its name and path.

Dependencies

  • Requires IMAP credentials for authentication, either provided directly in the node or via an existing IMAP Trigger node's credentials.

Troubleshooting

  • Connection failures due to incorrect IMAP credentials or network issues. Verify credentials and network connectivity.
  • Errors indicating unknown operations or resources suggest misconfiguration of the node parameters; ensure 'Mailbox' resource and 'Create' operation are selected.
  • Mailbox creation errors may occur if the mailbox name is invalid or already exists; verify mailbox naming conventions and uniqueness.

Discussion