Skip to content

Commit effbe11

Browse files
author
mmoser
committed
Mailchimp: improve cli sync processor + add delete not existing emails option
1 parent c60ae65 commit effbe11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Newsletter/ProviderHandler/Mailchimp/CliSyncProcessor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ public function deleteNonExistingItems()
178178
continue;
179179
}
180180

181+
if($row['status'] === Mailchimp::STATUS_UNSUBSCRIBED || $row['status'] === Mailchimp::STATUS_CLEANED) {
182+
continue;
183+
}
184+
181185
$remoteId = $client->subscriberHash($row['email_address']);
182186

183187
$this->getLogger()->notice(

0 commit comments

Comments
 (0)