CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail Processor - Contacts not opted-out after Bounce
Pages: [1]

Author Topic: CiviMail Processor - Contacts not opted-out after Bounce  (Read 1297 times)

jrosen

  • Guest
CiviMail Processor - Contacts not opted-out after Bounce
July 28, 2009, 12:49:08 pm
I am using the CiviMail Processor and have it all configured properly.  It found 546 bounces for my mailing and processed them (moved them to the processed IMAP folder) and updated the CiviMail Report accordingly. 

When I click on the "Bounces" link in the email report, it shows the Contact and Bounce info for the bounced emails.  Looking at a Contact record from the bounce report, the contact email is not marked as "On Hold" nor is the "NO BULK EMAILS (User Opt Out)" box checked.

As far as I can tell, the contact is still on the email list and is not automatically opted out when the mail bounces. 

This has resulted in my mail host temporarliy shutting down my Email a couple of times after sending a mass mailing because email admins at my subscriber's hosts are complaining due to re-occurring email bounces. 

Is there something I am missing in my configuration settings?  What field on the contact record should be marked for an automatic bounce opt-out?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviMail Processor - Contacts not opted-out after Bounce
July 29, 2009, 05:41:41 am
Looks like a bug, can you file an issue for this.

thanx,
Kurund
Found this reply helpful? Support CiviCRM

jrosen

  • Guest
Re: CiviMail Processor - Contacts not opted-out after Bounce
July 29, 2009, 10:14:35 am
Issue created: http://issues.civicrm.org/jira/browse/CRM-4814

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviMail Processor - Contacts not opted-out after Bounce
July 31, 2009, 10:41:33 am

can u look at the DB and let us know what the bounce type for those records are. If i had to guess we could not parse those emails and hence assigned them a bounce type of 0 (unknown)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviMail Processor - Contacts not opted-out after Bounce
July 31, 2009, 11:04:19 am

if it indeed is 0 or null, can u apply this patch, and see if it fixes the issue in a new mailing (just send it to one unknown address)

lobo

Code: [Select]
svn diff -r PREV CRM/Mailing/Event/BAO/Bounce.php
Index: CRM/Mailing/Event/BAO/Bounce.php
===================================================================
--- CRM/Mailing/Event/BAO/Bounce.php    (revision 22997)
+++ CRM/Mailing/Event/BAO/Bounce.php    (working copy)
@@ -62,6 +62,15 @@
         $transaction = new CRM_Core_Transaction( );
         $bounce =& new CRM_Mailing_Event_BAO_Bounce();
         $bounce->time_stamp = date('YmdHis');
+
+        // if we dont have a valid bounce type, we should set it
+        // to bounce_type_id 6 which is Invalid. this allows such email
+        // addresses to be put on hold immediately, CRM-4814
+        if ( empty( $params['bounce_type_id'] ) ) {
+            $params['bounce_type_id'] = 6;
+            $params['bounce_reason'] = ts( 'Unknown bounce type: Could not parse bounce email' );
+        }
+             
         $bounce->copyValues($params);
         $bounce->save();
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail Processor - Contacts not opted-out after Bounce

This forum was archived on 2017-11-26.