Skip to content

Commit

Permalink
Merge pull request #11226 from seamuslee001/CRM-21378
Browse files Browse the repository at this point in the history
CRM-21378 Ensure that email abuse reports are treated as bounce type …
  • Loading branch information
eileenmcnaughton authored Nov 22, 2017
2 parents 13501cd + 288a5aa commit 3214aa7
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 37 deletions.
1 change: 1 addition & 0 deletions CRM/Upgrade/Incremental/sql/4.7.28.mysql.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ UPDATE `civicrm_state_province` SET `name` = 'Pazardzhik' WHERE `name` = 'Pazard
-- CRM-20772 Price set calculation precision when sales tax enabled
ALTER TABLE `civicrm_membership_type` CHANGE `minimum_fee` `minimum_fee` DECIMAL(18,9) NULL DEFAULT '0.00' COMMENT 'Minimum fee for this membership (0 for free/complimentary memberships).';
ALTER TABLE `civicrm_price_field_value` CHANGE `amount` `amount` DECIMAL(18,9) NOT NULL COMMENT 'Price field option amount';

6 changes: 5 additions & 1 deletion CRM/Upgrade/Incremental/sql/4.7.29.mysql.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
-- CRM-21407 ISO compliance for German counties
UPDATE `civicrm_state_province` SET `name` = 'Baden-Württemberg' WHERE `name` = 'Baden-Wuerttemberg' AND `country_id` = 1082;
UPDATE `civicrm_state_province` SET `abbreviation` = 'BE' WHERE `name` = 'Berlin' AND `abbreviation` = 'BR' AND `country_id` = 1082;
UPDATE `civicrm_state_province` SET `name` = 'Thüringen' WHERE `name` = 'Thueringen' AND `country_id` = 1082;
UPDATE `civicrm_state_province` SET `name` = 'Thüringen' WHERE `name` = 'Thueringen' AND `country_id` = 1082;

-- CRM-21378 Ensure that email abuse reports are treated as spam
SELECT @bounceTypeID := max(id) FROM civicrm_mailing_bounce_type WHERE name = 'Spam';
INSERT INTO civicrm_mailing_bounce_pattern (bounce_type_id, pattern) VALUES (@bounceTypeID, 'abuse report');
70 changes: 35 additions & 35 deletions sql/civicrm_generated.mysql

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion xml/templates/civicrm_data.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,8 @@ INSERT INTO civicrm_mailing_bounce_pattern
(@bounceTypeID, 'has a policy that( [^ ]*)? prohibited the mail that you sent'),
(@bounceTypeID, 'is likely unsolicited mail'),
(@bounceTypeID, 'Local Policy Violation'),
(@bounceTypeID, 'ni bilo mogo..?e dostaviti zaradi varnostnega pravilnika');
(@bounceTypeID, 'ni bilo mogo..?e dostaviti zaradi varnostnega pravilnika'),
(@bounceTypeID, 'abuse report');

INSERT INTO civicrm_mailing_bounce_type
(name, description, hold_threshold)
Expand Down

0 comments on commit 3214aa7

Please sign in to comment.