From f013b3380028aef3a169de385af47b3e9c2624e7 Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Wed, 29 Jun 2022 15:23:53 +0100 Subject: [PATCH] allow bounce threshold to be 0 for bounces that you want to ignore like vacation auto reply --- CRM/Mailing/Event/BAO/Bounce.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Mailing/Event/BAO/Bounce.php b/CRM/Mailing/Event/BAO/Bounce.php index ba521a47a7..1b6d588ea6 100644 --- a/CRM/Mailing/Event/BAO/Bounce.php +++ b/CRM/Mailing/Event/BAO/Bounce.php @@ -261,7 +261,7 @@ class CRM_Mailing_Event_BAO_Bounce extends CRM_Mailing_Event_DAO_Bounce { $dao = CRM_Core_DAO::executeQuery($query); while ($dao->fetch()) { - if ($dao->bounces >= $dao->threshold) { + if ($dao->threshold && $dao->bounces >= $dao->threshold) { $email = new CRM_Core_BAO_Email(); $email->id = $email_id; $email->on_hold = TRUE; -- 2.25.1