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) »
  • Processing of inbound emails
Pages: [1]

Author Topic: Processing of inbound emails  (Read 256 times)

DaveFF

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 5
  • Developer at Future First
    • Future First
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.34
  • MySQL version: 5.5
  • PHP version: 5.3
Processing of inbound emails
March 03, 2015, 08:02:50 am
Dear all,

We have some local changes to CRM_Utils_Mail_Incoming and I wondered if they may be useful to the community at large.

  • In formatMailPart, we avoid raising a fatal error when a mail part is empty, by explicitly checking for it and returning say \n.
  • We also make the error non-fatal after all by changing the fatal to a debug_log_message. This is because we at some point had one or more bad messages in our inbox that were killing processing with "No clue about the ezcMailDeliveryStatus".
  • In getContactID, when we create a new contact on receiving an email from an unknown address, we note this in the contact's source field by setting it to 'Civi inbound email'.
  • We also apply a tag 'To be processed' to these contacts.
  • When checking whether a contact already exists for an email address, getContactID specifically checks only for Individuals. We remove this stipulation, so that no new contact is created if an email address already belongs to an Organization either.

Any thoughts would be welcome.
Thanks,
David
Do Not Contact Until extension: https://civicrm.org/extensions/do-not-contact-until
Organisation Name De-duplicator extension: https://civicrm.org/extensions/organisation-name-de-duplicator

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Processing of inbound emails

This forum was archived on 2017-11-26.