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) »
  • No clue about the CRM_Utils_Mail_Incoming
Pages: [1]

Author Topic: No clue about the CRM_Utils_Mail_Incoming  (Read 1024 times)

caga

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: joomla 1.7.3
  • MySQL version: 5.1.48
  • PHP version: 5.3.8
No clue about the CRM_Utils_Mail_Incoming
January 19, 2012, 03:09:06 am
Hello.
I'm trying to apply email2activity operation and get errors every time.
I've solved some errors, but  error
"No clue about the CRM_Utils_Mail_Incoming"
confused me.
Could, somebody, please, tell me what this error about?(I wasn't able to find error mention in google search)

Also it would be great to see tutorial which describes a way to run EmailProcessor.php and convert at least one email to activity. No matter how, just got some success operation instead of endless errors.


Mail account settings:

username and password - freebsd user login and password
Email Domain: gmail.com
Protocol: localdir
source: <local path>/tmp
used for email-to-activity

all details and civicrm error report are in attachment
« Last Edit: January 19, 2012, 04:20:48 am by caga »

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: No clue about the CRM_Utils_Mail_Incoming
June 10, 2013, 07:25:30 am
Hi,

I came across this error on a Civi 4.2.6 site. In this case I found that when the error occurred, CRM_Utils_Mail_Incoming::formatMailPart($part, &$attachments) was called with $part empty. I added a test for this and it allowed the mail to be processed. Here's the change I made:

Code: [Select]
--- CRM/Utils/Mail/Incoming.php.orig    2012-11-07 14:37:59.000000000 +0000
+++ CRM/Utils/Mail/Incoming.php 2013-06-10 15:23:20.000000000 +0100
@@ -70,6 +70,10 @@
       return self::formatMailMultipart($part, $attachments);
     }
 
+    if (empty($part)) {
+      return "\n";
+    }
+
     CRM_Core_Error::fatal(ts("No clue about the %1",
         array(1 => get_class($part))
       ));
Hope this helps someone.

Dave

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • No clue about the CRM_Utils_Mail_Incoming

This forum was archived on 2017-11-26.