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 process reply-to for activity
Pages: [1]

Author Topic: CiviMail process reply-to for activity  (Read 432 times)

josh.amato

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.3.4
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.0.95-community
  • PHP version: 5.2.9
CiviMail process reply-to for activity
December 13, 2013, 07:17:08 pm
We are in the process of using IMAP for processing emails into activities. The hurdle we need to get over is having civi process the reply-to address to grab the actual email, instead of the email used to send. An example of this is when an issue advocacy group sends it's list an email telling them to send X an email, and then directs them to a form to do so.

Has anyone done this before? Or can someone point me to the right location so I can see if I can get it to process it?

Thanks!

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 process reply-to for activity
December 13, 2013, 07:27:33 pm

the relevant code is at: CRM/Utils/Mail/EmailProcessor.php

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

josh.amato

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.3.4
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.0.95-community
  • PHP version: 5.2.9
Re: CiviMail process reply-to for activity
December 16, 2013, 01:05:27 am
Thanks, lobo.

I've been looking over this code but I'm not understanding perfectly how it's all working. It appears, though, that it's using the API to add an activity and the API does not support Reply-To?

The other item I'm a little confused about. When email is processed and turned into an Activity, the person it was sent To is added as "With Contact" while the person that sent it is added as "Added by" and "Assigned to."

I'll explain a little how I'm using it so I will (hopefully) make more sense and if there is a different/better way I would love to know.

1) A constituent sends an email to an elected official.
2) The elected official drags the email to the proper IMAP folder and Civi adds the email as an activity.
3) The new activity should be associated with the constituent.
4) Added by should show the individual the email was sent to, i.e. the elected official

The activity is not assigned to anyone in particular as it is just recording their email at this time, but that can be changed later.

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 process reply-to for activity
December 16, 2013, 06:37:54 am

seems like u'll need to customize and modify emailprocessor to meet your needs

ideally, if you can do it in a configurable way that would be great and allow us to merge your improvements to a future version

please do share your changes and improvements so others can benefit

thanx

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail process reply-to for activity

This forum was archived on 2017-11-26.