CRM-15934: more loop patterns
authorJaka Kranjc <lynxlynxlynx@sourcemage.org>
Sat, 7 Feb 2015 10:04:42 +0000 (11:04 +0100)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 23 Feb 2015 10:29:32 +0000 (15:59 +0530)
for responses like:
mail forwarding loop for
Mail-Loop
Too many recursive forwards

CRM/Upgrade/Incremental/sql/4.6.alpha6.mysql.tpl
xml/templates/civicrm_data.tpl

index 447926a93a513f9abb7ada9eaf16bd27fa61db4f..3bc047265da56f8d53d343c5af3fd937d04af967 100644 (file)
@@ -27,3 +27,7 @@ INSERT INTO civicrm_mailing_bounce_pattern (bounce_type_id, pattern)
       (@bounceTypeID, 'User banned');
 
 UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'not accepting (mail|messages)' WHERE `id` = 37;
+
+SELECT @bounceTypeID := max(id) FROM civicrm_mailing_bounce_type WHERE name = 'Loop';
+UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = '(mail( forwarding)?|routing).loop' WHERE `id` = 81;
+UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'too many (hops|recursive forwards)' WHERE `id` = 86;
index 5449b7a602be0752acb5450f06ba30ea66578740..9ffed67729825335f895c617feed067d7fca1ab7 100644 (file)
@@ -1281,12 +1281,12 @@ SELECT @bounceTypeID := max(id) FROM civicrm_mailing_bounce_type WHERE name = 'L
 INSERT INTO civicrm_mailing_bounce_pattern
         (bounce_type_id, pattern)
         VALUES
-    (@bounceTypeID, '(mail|routing) loop'),
+    (@bounceTypeID, '(mail( forwarding)?|routing).loop'),
     (@bounceTypeID, 'excessive recursion'),
     (@bounceTypeID, 'loop detected'),
     (@bounceTypeID, 'maximum hop count exceeded'),
     (@bounceTypeID, 'message was forwarded more than the maximum allowed times'),
-    (@bounceTypeID, 'too many hops');
+    (@bounceTypeID, 'too many (hops|recursive forwards)');
 
 INSERT INTO civicrm_mailing_bounce_type
         (name, description, hold_threshold)