siddhi-io / siddhi-io-email

Extension that receives and publishes events via email
https://siddhi-io.github.io/siddhi-io-email/
Apache License 2.0
2 stars 31 forks source link

A concurrent issue in Email handling #68

Closed AnuGayan closed 2 years ago

AnuGayan commented 2 years ago

Hi All,

When testing on the siddhi-io-email sink, it is observed some email properties are mixed with the email address.

Steps to reproduce.

  1. Configure the Email sink in wso2si-4.0.0
  2. Deploy the siddhi application[3].
  3. Populate the database table 'EmailInfo' with some email addresses(receiver) and corresponding email bodies.
  4. Then re-deploy the email application again, you will be able to observe that there will be the body and address mix-up in the receiver's email inbox when corresponding to the database entries. ex -> If you have added 'recerver1' with the body 'A' in the database, you might get body 'X' in the same recerver1 even if the body 'X' is not added in the database.