From f0e821bbe9c558f6a1d79ba63d97b416c149e84a Mon Sep 17 00:00:00 2001 From: Jaka Kranjc Date: Sat, 7 Feb 2015 15:12:44 +0100 Subject: [PATCH] CRM-15934: added a trickier Invalid pattern lots of responses start with "Recipient address rejected" and then provide a concrete error on which we can categorize. A bunch of them only provide the email's domain instead of the error, eg.: Recipient address rejected: planet.si --- CRM/Upgrade/Incremental/sql/4.6.alpha6.mysql.tpl | 3 ++- xml/templates/civicrm_data.tpl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Upgrade/Incremental/sql/4.6.alpha6.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.6.alpha6.mysql.tpl index 8d685ac222..807c404094 100644 --- a/CRM/Upgrade/Incremental/sql/4.6.alpha6.mysql.tpl +++ b/CRM/Upgrade/Incremental/sql/4.6.alpha6.mysql.tpl @@ -60,7 +60,8 @@ INSERT INTO civicrm_mailing_bounce_pattern (bounce_type_id, pattern) (@bounceTypeID, 'no one at this address'), (@bounceTypeID, 'misconfigured forwarding address'), (@bounceTypeID, 'account is not allowed'), - (@bounceTypeID, 'Address .<[^>]*>. not known here'); + (@bounceTypeID, 'Address .<[^>]*>. not known here'), + (@bounceTypeID, 'Recipient address rejected: ([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}'); UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'address(es)?( you (entered|specified))? (could|was)( not|n.t)( be)? found' WHERE `id` = 44; UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'address(ee)? (unknown|invalid)' WHERE `id` = 45; diff --git a/xml/templates/civicrm_data.tpl b/xml/templates/civicrm_data.tpl index cc966a3fdb..7e1ffe1ede 100644 --- a/xml/templates/civicrm_data.tpl +++ b/xml/templates/civicrm_data.tpl @@ -1280,7 +1280,8 @@ INSERT INTO civicrm_mailing_bounce_pattern (@bounceTypeID, 'no one at this address'), (@bounceTypeID, 'misconfigured forwarding address'), (@bounceTypeID, 'account is not allowed'), - (@bounceTypeID, 'Address .<[^>]*>. not known here'); + (@bounceTypeID, 'Address .<[^>]*>. not known here'), + (@bounceTypeID, 'Recipient address rejected: ([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}'); INSERT INTO civicrm_mailing_bounce_type (name, description, hold_threshold) -- 2.25.1