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 »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • EmailProcessor.php run from cl processes only one email account
Pages: [1]

Author Topic: EmailProcessor.php run from cl processes only one email account  (Read 1737 times)

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
EmailProcessor.php run from cl processes only one email account
March 11, 2011, 02:43:45 am
I'm trying to set up the email processor.

It all works from the browser, now I'm trying to get it working on cron.

As a first step I am testing the command by entering it in the command line.

I'm on a CentOs server that was set up by DirectAdmin - the directories are correct for the installation though obviously the username and domain and password have been changed from the actual.

I have two email accounts set up: one for the returns and one for autofiling. The returns is set to 'use for bounce processing' the autofiling is set to Email-to-Activity. returns is the default, which I am unable to change - or at least I can't see how.

on the command line them:

First cd into the civicrm directory -

cd /home/myuser/domains/mydomain.org/public_html/sites/all/modules/civicrm

Next run the processor:

/usr/local/bin/php  bin/EmailProcessor.php -sdefault -umailprocess -pseol-lzprm42amv-psyc

The processor runs, logging into the first account (returns) and does its job.
That's it, the script ends without logging into the second account (autofiling)

When run from the browser it logs into both.

My understanding from the floss manual is that the 's' parameter is for site sdefault meaning the drupal default site

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: EmailProcessor.php run from cl processes only one email account
March 11, 2011, 02:58:22 am
Hi,

if you run with the param activities it fetches the autofilling.

It was done that way when you couldn't distinguish between emails that are for autofilling or bounce. Now that mailboxes have an extra param we can have one run indeed that processes all the emails.

Would you have the time to fix it ? Seems like the api v3 is swallowing all my civitime, won't have the time to look at it before a while.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: EmailProcessor.php run from cl processes only one email account
March 11, 2011, 03:13:58 am
Oh great, thanks Xavier - how do I set that? I've tried adding '-activities' but that's not it!

As to time: not right now I am working round the clock (that's almost true!), but possibly over the next month - i have some holiday coming up and I am sure my partner will be busy sometimes!. what is involved?


xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: EmailProcessor.php run from cl processes only one email account
March 11, 2011, 03:17:18 am
Nearly, activities (without the "-") should do the trick.

Not sure what's involved, check the bin/EmailProcessor, figure out how it works for the web call and mimic on the cli one

Probably a trivial one line change once figured out where.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: EmailProcessor.php run from cl processes only one email account
March 11, 2011, 03:22:10 am
Fantastic! That worked.

I could have a look around and see if I can figure anything out.... but as I said it won't be for some time - feel free to send me a reminder on mylesorme@gmail.com

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • EmailProcessor.php run from cl processes only one email account

This forum was archived on 2017-11-26.