$bounce = new CRM_Mailing_Event_BAO_Bounce();
$bounce->time_stamp = date('YmdHis');
+ $action = empty($params['id']) ? 'create' : 'edit';
+ CRM_Utils_Hook::pre($action, 'MailingEventBounce', CRM_Utils_Array::value('id', $params), $params);
+
// if we dont have a valid bounce type, we should set it
// to bounce_type_id 11 which is Syntax error. this allows such email
// addresses to be bounce a few more time before being put on hold
$bounce->copyValues($params);
$bounce->save();
+ CRM_Utils_Hook::post($action, 'MailingEventBounce', $bounce->id, $bounce);
+
if ($q->email_id) {
self::putEmailOnHold($q->email_id);
}