> For the complete documentation index, see [llms.txt](https://docs.n8n.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.emailimap.md).

# Email Trigger (IMAP)

Use the IMAP Email node to receive emails using an IMAP email server. This node is a trigger node.

{% hint style="info" %}
**Credential**

You can find authentication information for this node [here](/integrations/builtin/credentials/imap.md).
{% endhint %}

## Operations <a href="#operations" id="operations"></a>

* Receive an email

## Node parameters <a href="#node-parameters" id="node-parameters"></a>

Configure the node using the following parameters.

### Credential to connect with <a href="#credential-to-connect-with" id="credential-to-connect-with"></a>

Select or create an [IMAP credential](/integrations/builtin/credentials/imap.md) to connect to the server with.

### Mailbox Name <a href="#mailbox-name" id="mailbox-name"></a>

Enter the mailbox from which you want to receive emails.

### Action <a href="#action" id="action"></a>

Choose whether you want an email marked as read when n8n receives it. **None** will leave it marked unread. **Mark as Read** will mark it as read.

### Download Attachments <a href="#download-attachments" id="download-attachments"></a>

This toggle controls whether to download email attachments (turned on) or not (turned off). Only set this if necessary, since it increases processing.

### Format <a href="#format" id="format"></a>

Choose the format to return the message in from these options:

* **RAW**: This format returns the full email message data with body content in the raw field as a base64url encoded string. It doesn't use the payload field.
* **Resolved**: This format returns the full email with all data resolved and attachments saved as binary data.
* **Simple**: This format returns the full email. Don't use it if you want to gather inline attachments.

## Node options <a href="#node-options" id="node-options"></a>

You can further configure the node using these **Options**.

### Custom Email Rules <a href="#custom-email-rules" id="custom-email-rules"></a>

Enter custom email fetching rules to determine which emails the node fetches.

Refer to [node-imap's search function criteria](https://github.com/mscdex/node-imap) for more information.

### Force Reconnect Every Minutes <a href="#force-reconnect-every-minutes" id="force-reconnect-every-minutes"></a>

Set an interval in minutes to force reconnection.

## Templates and examples <a href="#templates-and-examples" id="templates-and-examples"></a>

[Browse Email Trigger (IMAP) node documentation integration templates](https://n8n.io/integrations/email-trigger-imap) or [search all templates](https://n8n.io/workflows/)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.emailimap.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
