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) »
  • Discussion (deprecated) »
  • Professional CiviCRM Services (Moderator: Dave Greenberg) »
  • Help debugging autofiling email activities
Pages: [1]

Author Topic: Help debugging autofiling email activities  (Read 4368 times)

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Help debugging autofiling email activities
October 12, 2012, 04:38:59 pm
The EmailProcessor used to happily do its thing and auto-magically file the Inbound emails...

Then, following an upgrade it stopped.

Gone nuts, given up, need help.

I've been given a 'modest amount' to offer someone to get it working again.

Dunno what that is, but this is a tiny charity with b-all. So think hours not days.

Anyone up for it?

Asking for quotes is asking for sucked teeth and lectures on the length of string but if you fancy saying what you'll do it for that would be great.


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: Help debugging autofiling email activities
October 12, 2012, 06:06:01 pm

do u have more details or links to forum posts of the potential issue?

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

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Help debugging autofiling email activities
October 13, 2012, 11:31:01 am
myles, what version did you upgrade to and from? In later versions, you must change the cron job itself and then activate the "Scheduled Job" via the web interface.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: Help debugging autofiling email activities
October 14, 2012, 11:51:18 am
Thanks for your responses.

1) yes I understand the new combined cron and it is working fine - but thanks, it's the sort of suggestion that could save my sanity.

2) Previous posts

 http://forum.civicrm.org/index.php/topic,25026.msg106316.html#msg106316

http://forum.civicrm.org/index.php/topic,26171.msg110716.html#msg110716

Note that the last one didn't throw as much light as I had hoped but it did clear for a little while - but all old emails that I copied in by mistake. So there is a good chance that there is something in the inbox that is blocking everything up.

I've not been able to get a remote debugger working to step through the code against that mailbox.

Xdebug is on the server and the port has been opened (not the standard one)

3) Failed since upgrade to 4.1.1

Now on 4.2.2 and Drupal 7 (latest)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Help debugging autofiling email activities
October 14, 2012, 11:54:42 am
Do you get any error if you run it manually?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: Help debugging autofiling email activities
October 15, 2012, 06:29:32 am
By manually do you mean from admin> system setting > scheduled jobs > execute now (or whatever the right menu items are?)

Nothing useful - it just tells me that it ran with an error...

0
Summary
Finished execution of Process Inbound Emails with result: Failure, Error message: Process Activities failed
Details

Parameters parsed (and passed to API method):
a:1:{s:7:"version";i:3;}

Full message:
Finished execution of Process Inbound Emails with result: Failure, Error message: Process Activities failed

From an address bar in the browser...

http://domain/sites/all/modules/civicrm/bin/EmailProcessor.php?name=username&pass=password&key=site_key&emailtoactivity=1

I was going to day that with an admin username, password and the site key filled in, again nothing much useful... even with debugging turned on in both Drupal and CiviCRM, but just ot check I tried again and got a page not found from Drupal - agh..

Any other way of triggering it, and come to that, what am I doing wrong with the browser version? I've tried putting in ' single quotes just in case with the same result.


myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: Help debugging autofiling email activities
October 15, 2012, 06:40:16 am
Well, I've just tried another odd little test -

I moved all the messages fro the civicrm mailbox that is for auto filing and sent myself a test message.

then executed the job.

Success.

I guess I can move the queue of emails along a batch at time until I can find the culprit -

I'm not sure if this will yield anything useful for the community, but I shall report.

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: Help debugging autofiling email activities
October 15, 2012, 08:22:52 am
I've found some rogue mails - or rather mail delivery notices that the email processor can't process and a couple of other suspects.

Would the headers be useful to the team in improving the processor?

If so where would you like this posted - on JIRA?

Our problem is now officially sorted in that we have a working installation and can probably spot problem emails if it happens again.

Thanks for helping me to rally for another go.

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: Help debugging autofiling email activities
October 15, 2012, 08:55:41 am

myles:

since you have a test case etc, any chance you can take a closer look and figure out how we can trap this error better and give the user a more meaningful error message and/or move the "different" email to the ignored folder

would be great if you can spend some time digging into this. would help some other folks down the road

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

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: Help debugging autofiling email activities
October 15, 2012, 09:55:26 am
THis may be beyond my capability.

After several months I have only got as far as finding the obvious method of isolating the problem emails.

Working out what the code isn't doing with them, and what it should be doing with it is another order -

My first step would I guess be to step through the code whilst it plays with the emails.

That means either debugging on a remote server - which I have been unable to get working to date

or

setting up a mail server on my laptop.

I'll explore the later.
« Last Edit: October 15, 2012, 09:58:24 am by myles »

mjpforsberg

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.40
Re: Help debugging autofiling email activities
January 10, 2013, 08:55:47 am
Hi,

I can report having the same problem after upgrading to 4.2.6 (although I cannot guarantee that it was not present before when we were running 4.1.6).

At least in our case, this is caused specifically by getting autoreplies from an unknown address (as in no e-mail address visible).

We are using a Gmail apps account and this is particularly inconvenient because these mails (which are not spam messages) cannot be filtered out in Gmail either since they lack a sender. It is easily fixed manually by deleting these messages in Gmail, but is a recurring problem.


In Gmail, it would mean these messages would look something like this:

from: via mail-ee0-f70.google.com

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Professional CiviCRM Services (Moderator: Dave Greenberg) »
  • Help debugging autofiling email activities

This forum was archived on 2017-11-26.