CRM-15934: more inactive patterns
authorJaka Kranjc <lynxlynxlynx@sourcemage.org>
Sat, 7 Feb 2015 09:52:53 +0000 (10:52 +0100)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 23 Feb 2015 10:29:32 +0000 (15:59 +0530)
for responses:
The email account that you tried to reach is disabled (gmail)
5.2.1 (not accepting messages)
550 User banned

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

index acb0f95bb567b7e3c0e25a6084e20a341eafbc88..447926a93a513f9abb7ada9eaf16bd27fa61db4f 100644 (file)
@@ -19,3 +19,11 @@ UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'disk(space)?|over the a
 UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = '(mail|in)(box|folder) ((for user \w+ )?is )?full' WHERE `id` = 92;
 UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'mailbox (has exceeded|is over) the limit' WHERE `id` = 93;
 UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'quota ?(usage|violation|exceeded)' WHERE `id` = 98;
+
+SELECT @bounceTypeID := max(id) FROM civicrm_mailing_bounce_type WHERE name = 'Inactive';
+INSERT INTO civicrm_mailing_bounce_pattern (bounce_type_id, pattern)
+    VALUES
+      (@bounceTypeID, 'account that you tried to reach is disabled'),
+      (@bounceTypeID, 'User banned');
+
+UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'not accepting (mail|messages)' WHERE `id` = 37;
index d149497d8efa95eb4ba73d8650765d83ee7fa969..5449b7a602be0752acb5450f06ba30ea66578740 100644 (file)
@@ -1217,10 +1217,12 @@ INSERT INTO civicrm_mailing_bounce_pattern
     (@bounceTypeID, 'mail( ?)address is administrative?ly disabled'),
     (@bounceTypeID, 'mailbox (temporarily disabled|currently suspended)'),
     (@bounceTypeID, 'no longer (accepting mail|on server|in use|with|employed|on staff|works for|using this account)'),
-    (@bounceTypeID, 'not accepting mail'),
+    (@bounceTypeID, 'not accepting (mail|messages)'),
     (@bounceTypeID, 'please use my new e-?mail address'),
     (@bounceTypeID, 'this address no longer accepts mail'),
-    (@bounceTypeID, 'user account suspended');
+    (@bounceTypeID, 'user account suspended'),
+    (@bounceTypeID, 'account that you tried to reach is disabled'),
+    (@bounceTypeID, 'User banned');
 
 INSERT INTO civicrm_mailing_bounce_type
         (name, description, hold_threshold)