Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-12424

Bounce processing is less accurate (related to CRM-11046)

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.8, 4.3.1
    • Fix Version/s: 4.3.2
    • Component/s: CiviMail
    • Labels:
      None

      Description

      Description:

      In CRM/Utils/Mail/EmailProcessor.php, just after CRM-11046 patch, $text is overwritten by a static string :

      if (empty($text))

      { // If bounce processing fails, just take the raw body. Cf. CRM-11046 $text = $mail->generateBody(); // if text is still empty, lets fudge a blank text so the api call below will succeed $text = ts('We could not extract the mail body from this bounce message.'); }

      Symptoms :

      Bounce processing is less accurate and display the static string too often.

      Solution :

      Another check should be place to check before the overwrite to check if $text is still empty.

      Patch :

      CRM/Utils/Mail/EmailProcessor.php

      296,297c296,299
      < // if text is still empty, lets fudge a blank text so the api call below will succeed
      < $text = ts('We could not extract the mail body from this bounce message.');

      > if (empty($text))

      { > // if text is still empty, lets fudge a blank text so the api call below will succeed > $text = ts('We could not extract the mail body from this bounce message.'); > }

      Alternate patch :

      295,297c295,298
      <
      < // if text is still empty, lets fudge a blank text so the api call below will succeed
      < $text = ts('We could not extract the mail body from this bounce message.');

      > }
      >
      > if (empty($text)) {
      > // if text is still empty, lets fudge a blank text so the api call below will succeed
      > $text = ts('We could not extract the mail body from this bounce message.');

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              julienld Julien Larocque-Dupont
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: