foreach ($bounceEntryIDArray as $bounceID) { eZBounce::removeAllBounceInformation($bounceID); } } $db->commit(); } } } } } } } } } } $MailArray = eZBounce::fetchByOffset($offset, $limit, false, "address"); if (count($MailArray) >= 1) { $bounceDataArray = array(); foreach ($MailArray as $key => $MailBounceData) { $mail = $MailBounceData["address"]; $sb_c = $db->ArrayQuery("SELECT count(*) as 'softbounces' FROM ez_bouncedata WHERE address='{$mail}' and bounce_type = 0"); $hb_c = $db->ArrayQuery("SELECT count(*) as 'hardbounces' FROM ez_bouncedata WHERE address='{$mail}' and bounce_type = 1"); $bounceDataArray[$key]["mail"] = $mail; $bounceDataArray[$key]["sb_count"] = $sb_c[0]["softbounces"]; $bounceDataArray[$key]["hb_count"] = $hb_c[0]["hardbounces"]; $bounceDataArray[$key]["bounces"] = eZBounce::fetchListByAddress($mail); $bounceDataArray[$key]["bounceIDarray"] = array(); foreach ($bounceDataArray[$key]["bounces"] as $key2 => $bounce) { $sendItemBounced = eZSendNewsletterItem::fetch($bounce->ID); array_push($bounceDataArray[$key]["bounceIDarray"], $bounce->ID); $subscriptionObject = eZSubscription::fetch($sendItemBounced->attribute('subscription_id'));