IMAP icon

IMAP

Retrieve emails via IMAP

Overview

This node connects to an IMAP email server to retrieve the status of a specified mailbox. It is useful for scenarios where you need to monitor mailbox status information such as message counts, recent activity, or mailbox flags. For example, it can be used to check the status of the INBOX or any other mailbox folder to trigger further email processing workflows.

Use Case Examples

  1. Checking the status of the INBOX mailbox to monitor new emails.
  2. Retrieving status information from a specific mailbox folder to track unread messages or mailbox flags.

Properties

Name Meaning
Credential Type Selects the type of credentials to use for connecting to the IMAP server, either credentials from this node or from an existing N8N IMAP Trigger node.
Mailbox Specifies the mailbox folder to retrieve the status from. Can be selected from a list or provided as a full path string.

Output

JSON

  • status - The status information of the specified mailbox, including message counts and other mailbox metadata.

Dependencies

  • IMAP server credentials (either node-specific or from N8N IMAP Trigger node)

Troubleshooting

  • Connection failures due to incorrect IMAP credentials or server settings. Verify credentials and server details.
  • Errors related to unknown operations or resources if the specified mailbox or operation is invalid. Ensure the mailbox path and operation are correctly set.
  • Operation failures may return error messages in the output JSON if 'Continue On Fail' is enabled, allowing workflow to handle errors gracefully.

Discussion