How to accurately check mails using New Email piece?

How does the New Email piece work, in detail?

I am, creating a flow for: when emails come into a less used Gmail inbox, an email is sent to a usually used email account with a simple alert to check the Gmail account.

Without putting in a delay at the beginning it’s checking every minute. The flow saw and alerted on every email over about a 20 minute test, but it missed one email. The email before that missed email was 3 minutes before, and the one after was 6 minutes after so it should have seen it.

1. Why was that email missed and how can I resolve that?

A check every minute is too often, and I was thinking of checking every 30 or 60 minutes but I would first like to resolve why the one email above was missed, then…

2. What happens when I set a 30 minute delay between checks and more than one email come in (does it only see the latest email)?

The ideal solution is to see every message in the Gmail inbox and alert on it, or to check every X minutes and say Y emails have come in the last X minutes.

As I don’t know how the New Email piece works in detail, I’d like some help with this.

Thank you.

Hello Bharat,

As far as you’re aware, was there something different about the email that was missed? A big attachment perhaps? Special codes or characters? Just trying to help you figure out why it didn’t trigger on that specific email.

Hello Mo,
There was no attachment and I cant see what is odd about the email.

I have the flow going and just checked recent alerts and there are 2 missing. See screen capture here: Image 2023-11-21 at 2.46.52 PM where the green arrows show successful alerts and red show missed alerts.

Here are screen recodings of the 2 missed emails: Screen Recording 2023-11-21... and Screen Recording 2023-11-21...

Any suggestions to resolve this would be appreciated.
Thank you.

Hi @MoShizzle

I forgot to mention that as you can see in the screen capture the order of the email sends vs when they actually came in gets mixed up in a few cases.

Have you any updates on fixing the missed alerts, and can you reply to point to about longer delays and how emails are checked?

Thank you.

Do the ‘failed’ emails show in your Activepieces run log?

@Dennis , thank you, I just checked the latest alerts and the latest email which did not get alerted does NOT appear in the logs.

@MoShizzle can you please update me on this and how to resolve it?

Hi @BharatKaravadra I think the reason because they are not in INBOX but in Research / Jeff Hays

Just to confirm what is the mailbox selected here?


@abuaboud , INBOX is the mailbox that’s been selected. It’s always been that.

Any suggestions?

The quickest solution that came to mind is to set up a forwarding rule in Gmail that categorizes everything from these mailboxes as primary (main inbox).

@abuaboud , Thank you for looking into this.

As above, I’ve selected INBOX as Mailbox, and it’s actually checkign ALL emails, so from Primary and the others in the top rectangle in the screen capture here: Inbox (13) - karavadra@gmai...

The only other general option for selection is literally [Gmail] as per here: Alert re_ Gmail - Activepie... which I have not tried. What is this and how is this different to INBOX?

And the other selection options are from the Labels (on the left of the screen capture above), but selecting any of these will limit the alerts further.

Let me know what the [Gmail] option is and what the better long term solution is?

I really have to get this working for all incoming emails without having to amend existing filters/categorisation.
Thank you.

@BharatKaravadra I think either we find workaround in Gmail or look into if it’s possible to check all boxes in the imap library.

@abuaboud can you be specific:

  1. What is the workaround in Gmail?
  2. How do we check all of Gmail?
    When you say ‘all boxes’, some of the emails I receive are labelled, and some are not, but they all go into the one Inbox as there is only one inbox. There are also categroies at the top: Primary, Social and Updates, but again it’s all in one inbox.

Can you please be specific on how to configure or fix this piece to check all the emails?

Hello @BharatKaravadra,

Sorry for the delay on this! We’ve released a new update to the IMAP piece that adds an option called “All” for mailboxes dropdown that you can use to read emails from all boxes. (This is only available for Gmail users).

That should solve this use case.

Let us know if there’s any other issues!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.