mettle / sendportal-core

Core functionality for SendPortal
https://sendportal.io
MIT License
275 stars 118 forks source link

Skip subscribers on import if unsubscribed before #165

Open mpixelz opened 2 years ago

mpixelz commented 2 years ago

Hi, We have few offline data collection sales points, we get that data on weekly basis in CSV files and upload them into the sendportal to send campaigns. The issue we are facing is that sometimes there are customers who have unsubscribed from getting emails but if the same email is listed in our CSV files, these are updated automatically and they again start to receive these campaigns. We had this issue referred to us by those customers.

Is there any way to skip import of emails which are already in the system and are unsubscribed? Thanks.

sabas commented 1 year ago

Hi, the ImportSubscriberService class seems to check for existence only from id and email columns, but it doesn't seem to touch the unsubscribed field... Do you see that unsubscribed_at becomes again null?