Hello,
I am experiencing a recurring issue with emails processed through my application using the action "when a new mail arrives(v3)"
Issue Description:
- I receive two consecutive emails that are supposed to be identical.
- The first email has
hasAttachments: true, but when processed, the attachments array is empty.
- The second email also has
hasAttachments: true, but in this case, the attachments are correctly included and processed.
Problem this Causes:
This creates a significant issue for my application because I rely on these emails to generate specific documents. Due to this behavior:
- The application detects the first email and attempts to process it, but since there are no attachments, the necessary documents are not generated.
- The second email arrives with valid attachments, but since the first one was already processed, the system ends up duplicating the email entry while only one actually contains the required documents.
- This duplication disrupts workflows and requires manual intervention.
Questions:
- What could be causing the first email to indicate
hasAttachments: true but have an empty attachments array?
- Is there a known delay in attachment processing when fetching emails via API?
- Is there a recommended approach to ensure the application only processes emails once, while still handling missing attachments properly?
Any guidance on this issue would be greatly appreciated, as it is affecting critical application workflows.
Thank you in advance for your help.