I have an IMAP email trigger - it is not a gmail account.
I receive emails just fine with every other email account, but emails from gmail addresses aren’t received - it’s as if nothing was received at all, but the email is in my inbox. This is only happening with emails sent from gmail accounts. I have tested with multiple gmail accounts. This is happening on the email trigger.
There is some logic in the code that fetches new emails that distinguishes between different formats (simple, raw, etc). It is possible that emails from a gmail source are in a different format, and therefore using different logic to determine whether they are new/unseen/unread. If you know your way around Typescript, you could probably isolate that code and do some testing outside of n8n.
Aside from that, check to be sure you don’t have a “mark as read” or “mark as spam” or some other kind of automatic-rule active on the (IMAP) account where the emails are received. I’ve forgotten to check that a time or two.