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) »
  • Process differently the bounce mailbox and the mail2activity mailbox
Pages: [1]

Author Topic: Process differently the bounce mailbox and the mail2activity mailbox  (Read 1052 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Process differently the bounce mailbox and the mail2activity mailbox
February 22, 2010, 08:52:02 am
Hi,

I want to have one mailbox for the bounces and one for the mail to activity.

If I understood properly, that's the same code bin/EmailProcessor.php with an extra param emailtoactivity to differenciate the two modes.

However, they do process in both cases all the mailboxes defined in civicrm right ? In other words, it isn't possible to say that mailboxA@ is only for the bounces, and mailboxB@ is only for the activities.

Correct ?

Could I add a parameter to set what mailbox you're processing (if not set, process all the mailboxes as today)

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

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Process differently the bounce mailbox and the mail2activity mailbox
February 24, 2010, 06:04:48 am
If you take a look at bin/CiviMailProcessor.php’s line 219 (and further), it seems to me my idea at that time is that you can provide a list of mailbox names for it to process – so at least the CiviMail processor can be limited to process a given set of email accounts.

I think my idea initially was to process only the default account (i.e., the one with is_default = 1) if none is present, but I vaguely remember talking with Deepak that this was changed to handle all by default.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Process differently the bounce mailbox and the mail2activity mailbox
February 24, 2010, 06:23:04 am
Quote from: Piotr Szotkowski on February 24, 2010, 06:04:48 am
If you take a look at bin/CiviMailProcessor.php’s line 219 (and further), it seems to me my idea at that time is that you can provide a list of mailbox names for it to process – so at least the CiviMail processor can be limited to process a given set of email accounts.

I think my idea initially was to process only the default account (i.e., the one with is_default = 1) if none is present, but I vaguely remember talking with Deepak that this was changed to handle all by default.

Wouldn't it be more logical to have one bounce mailbox (aka default one?), plus one (or several) for the mail2activities features ?

The bounced one shouldn't process anything but bounces, and the others shouldn't process anything but activities.

The reply-to address should/could be a 3rd type.


Following our discussion in brussels, I've tried offlineimap, seems to allow to fetch one folder "shared civi" without having to put my password in the account config and only on a readonly offlineimaprc.  Blog post soonish on that one.


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

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Process differently the bounce mailbox and the mail2activity mailbox
February 24, 2010, 07:56:32 am
Quote from: xavier on February 24, 2010, 06:23:04 am
Wouldn't it be more logical to have one bounce mailbox (aka default one?), plus one (or several) for the mail2activities features ?

IMHO it would, hence CiviMailProcessor’s defaulting to one (the is_default one) initially. Not sure whether it got changed or I mis-remember things.

Quote
The bounced one shouldn't process anything but bounces, and the others shouldn't process anything but activities.

The reply-to address should/could be a 3rd type.

Makes sense from my point of view (although I can also fully understand people wanting to have one mailbox for all of these and use the + extension to take care of the details, so we should ideally also handle that case as well).

Quote
Following our discussion in brussels, I've tried offlineimap, seems to allow to fetch one folder "shared civi" without having to put my password in the account config and only on a readonly offlineimaprc.  Blog post soonish on that one.

Oh, great. :) We might eventually end up with a sensibly-simple ‘best practices’ solution.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Process differently the bounce mailbox and the mail2activity mailbox

This forum was archived on 2017-11-26.