Skip to content

IMAP no working properly #16853

Description

@Sz-ecom

Bug Description

Hi team,

I'm experiencing an issue with the Email trigger (EMAP) in 8N.

I already have a working workflow that uses the same trigger, so I know the general setup works. However, for one specific Gmail account I've connected, the behavior is different: when new emails arrive, they are marked as read, but the automation does not get triggered or executed.

To clarify:

  • IMAP is set up with a Gmail account.
  • Emails are received and marked as read.
  • The automation never starts.

I have another similar workflow that works fine, so this issue seems to be specific to this one Gmail connection.

Is this a known issue, or could there be something specific about this Gmail account causing the problem?

Thanks in advance for your support!

To Reproduce

  • Set up two-factor authentication (2FA) on a Gmail account.
  • Create an app password from the Google Account settings (under Security > App passwords).
  • Open n8n and go to Credentials.
  • Create new IMAP credentials with the following details:
    • User: your Gmail address
    • Password: the app password generated from Google
    • Host: imap.gmail.com
    • Port: 993
    • Enable SSL/TLS
  • In a new workflow, add an Email Trigger (IMAP) node.
  • Select the IMAP credentials you just created.
  • Configure the trigger:
    • Mailbox Name: INBOX
    • Action: Mark as Read
    • Format: Simple
  • Add a basic action node to test execution (e.g. Extract the sender email).
  • Save and activate the workflow.
  • Send an email to the connected Gmail account.

Image

Image

Expected behavior

When an email is received by the connected Gmail account, the Email Trigger (IMAP) node should detect the message and trigger the workflow. The workflow should then execute the connected automation steps as configured.

Actual Result

The email is marked as read in Gmail, but the workflow is not triggered and no automation is executed.

Operating System

Ubuntu 22.04.5

n8n Version

Version 1.100.1

Node.js Version

v18.20.6

Database

SQLite (default)

Execution mode

main (default)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions