Several applications access the same mailbox. My flow has to treat only some of the messages based on a value in the subject field of the email. The other messages must be left on the mailserver.
I set up an email port with an IMAP connection with the following parameters :
- Global Service (optional) Fwk_Util:testEMAIL
- Delete valid messages (IMAP only) Yes
- Delete invalid messages (IMAP only) No
Based on the contents of the subject I generate or not an exception in the Fwk_Util:testEMAIL flow in order to simulate valid/invalid message.
Unfortunately the integration server will delete in both cases the message.
Do you know how can I filter and delete the incoming messages?