Permalink
Browse files

Feature to receive deletebounce for debugging rule (#202)

* Feature to receive deletebounce for debugging rule

* Change setting name

* Fix
  • Loading branch information...
jd440 authored and michield committed Dec 6, 2017
1 parent a953553 commit e612a467f10a6858b0059d41ccaed113ec90c74c
@@ -529,6 +529,9 @@
if (!defined('ALLOW_DELETEBOUNCE')) {
define('ALLOW_DELETEBOUNCE', 1);
}
if (!defined('REPORT_DELETED_BOUNCES')) {
define('REPORT_DELETED_BOUNCES', 0);
}
if (!defined('MESSAGE_SENDSTATUS_INACTIVETHRESHOLD')) {
define('MESSAGE_SENDSTATUS_INACTIVETHRESHOLD', 120);
}
@@ -678,6 +678,9 @@ function processMessages($link, $max = 3000)
break;
case 'deletebounce':
deleteBounce($row['bounce']);
if (REPORT_DELETED_BOUNCES == 1) {
$advanced_report .= 'Deleted bounce ' . $userdata['email'] . ' --> Bounce deleted by bounce rule ' . $rule['id'] . PHP_EOL;
}
break;
}
@@ -122,6 +122,9 @@
// how many bounces in a row need to have occurred for a user to be marked unconfirmed
$bounce_unsubscribe_threshold = 5;
// Set to 0 to received by mail bounce deletions in the advanced bounce processing report
define('REPORT_DELETED_BOUNCES', 0);
/*
=========================================================================

0 comments on commit e612a46

Please sign in to comment.