Does Pipedream's New Email in Shared Folder Event have a bug that prevents it from emitting events?

This topic was automatically generated from Slack. You can find the original thread here.

Pipedream’s New Email in Shared Folder Event I believe has a bug (sample source/trigger: dc_6Ruqqvb)

  1. Note in the logs the lastDate being updated (screenshot). This implies an event should be emitted.
  2. However, note in events that no event was emitted at 10:21AM (when this trigger ran)
    That said - looking at the code… it looks fine to me? I can’t really see an area where we are not emitting an item, unless something is erroring out in this.$emit but not showing up?

Weirdly, when I redploy, the issue goes away for a bit, and then re-materializes later

found it - id: item.conversationId

any email in a thread has the same conversationId.

This is why item.id is used in the receive mail api

Got it , thank you so much for your effort

I’ve added your issue to the prioritized list. Our component dev will take a look at it very soon :pray:

Posted thread to Discourse: Is there a bug in Pipedream's New Email in Shared Folder Event not emitting events despite updates in the logs?

Hey - went to test this and I’m actually still seeing events being dropped here and not processing. Seems like there might be another issue.

See below on the timestamp update and no events were emitted.

Furthermore, I noticed only one event is emitted with the test suite, despite deploy asking for 25 (and this account having well over 25 emails). My sense is that there probably is still a bug with the dedup key

Could you share steps to reproduce? How are you getting the email to the shared folder?

  1. Deploy trigger to a shared inbox trigger
    a. Ensure the user.id is of a shared inbox that the logged in user has access to and not of the logged in user
  2. Select “inbox” as the shared folder
  3. Deploy source
  4. Observe only 1 test event emitted
  5. After deployed, send an email to the shared inbox
  6. Observe no event emitted

For Step 4 - while it’s a bug only 1 event is emitted, the fact that 1 event is emitted implies that the configuration of the trigger is correct I think and there’s something else going on

In addition, when one redeploys with the exact same configuration, the email sent in step 5 is outputted as a test event - this implies that the inbox/email is showing up

If helpful, here is a source I reproduced with, not sure if you all have more logs on your end:

Timestamp update is here, but then no event is emitted

oh I think I know what it is

In new email, the ID is hashed b/c >64 characters. Maybe pipedream cache doesn’t work over 64 characters? and/or the microsoft one is the same for first for 64 characters

https://github.com/PipedreamHQ/pipedream/blob/master/components/microsoft_outlook/[…]urces/new-email-in-shared-folder/new-email-in-shared-folder.mjs

shared folder is just raw ID, no hash

[18884] Update new-email-in-shared-folder.mjs by alexpareto · Pull Request #19077 · PipedreamHQ/pipedream · GitHub think this should fix it

or something similar

To make sure the fix works, I’ll need to reproduce the issue first. Right now I have not yet be able to reproduce it

Interesting, you’re getting new events in a shared folder?

I wonder if it’s related to my account being a business account vs a personal account? Not sure.

I checked two subsequent emails and the IDs are very similar - the only difference is this one character. So if there is some kind of 64 char limit, it would break things in this particular account.

But perhaps different microsoft accounts have different ID strategies? how different are the IDs you are using?