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

Transcript Redundancy in CiviCase/Core CiviCRM Inbound Email to Activity processing

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.1
    • Fix Version/s: Unscheduled
    • Component/s: CiviCase, Core CiviCRM
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      Using the Inbound Email to Activity feature extensively with Case Management. A problem has arisen with the replies from clients including the previous transcripts, which clutters the case history considerably, sometimes to the point of causing human error.

      This led me to investigate inclusion of "Reply above this line" in the email body to prevent this, which lead me to @function formatMailText($part, &$attachments)

      { ... }

      of file ../civicrm/CRM/Utils/Mail/incoming.php .

      Which led me to hook_civicrm_emailProcessor.

      So, I believe I can use
      hook_civicrm_emailProcessor( $type, &$params, $mail, &$result, $action = null ) to search for the strpos of something like "reply above this line" in the body of an email, and truncate the body down to the substring preceding the position of "reply above...," if found. A link with a real example would be helpful, but I'll probably figure it out.

      That said, I believe it would be a reasonable improvement to allow an administrator to define a string of their choice for making such truncation of processed email bodies entirely contained by CiviCase or CiviCRM, or even the hosting CMS.

      As it is, I'll probably spin up a simple Drupal module to contain my usage of the hook_civicrm_emailProcessor hook for the stated purpose, but I doubt my efforts will yield a module worthy of the community at large.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bartclarkson Bart Clarkson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: