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) »
  • Odd civimail reply to problem
Pages: [1]

Author Topic: Odd civimail reply to problem  (Read 3522 times)

pdowling

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 4
Odd civimail reply to problem
December 16, 2009, 06:25:58 pm
Hmm, not sure what to call this one.

So I send a mass email.  It goes through.  Someone who receives it replies.  I've got it set so replies are "verped" and CiviMailProcessor will track their reply and forward it back to me.  So when they click reply the reply goes to "replychanneladdress.verpstring@myorg.org" (I'm using gmail so this works fine). CiviMailProcessor picks it up and sends it to my original from address.  So far all is well.  I now have their reply in my from email address inbox.

The problem is in my inbox when I reply back to this email reply the address is wrong.  So if the person who replied was "Joe Smith <jsmith@yahoo.com>", instead when I click reply back to them it is instead going to "Joe Smith <myfrom@myorg.org>" so I'm actually sending to myself now!

I know I'm not explaining this well, but not sure how else to explain.  Hoping this is an error someone else has had and recognizes.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Odd civimail reply to problem
December 18, 2009, 07:12:35 am
By default, CiviMail’s forward event should maintain the from name and address; I guess in your case the problem is that by the time the event gets fired, the original from address is already replaced by your (intermediate?) one.

Can you confirm that the reply gets passed through the ‘wrong’ address before it arrives at CiviMail’s forward event?
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.

pdowling

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 4
Re: Odd civimail reply to problem
December 18, 2009, 04:39:49 pm
Thanks for the reply.

So to clarify, if I go into the email account where the replys go (which I've called "tellus@myorg.org"), and I go to the Civimailprocessed folder, and view the whole email + headers I see an email that says it is from (just for argument) "Sally Smith <them@yahoo.com>".

However, when I go to the "send" account (which let's say for argument is called "originator@myorg.org") I see that same email in my inbox there, but there the email says it is from "Sally Smith <originator@myorg.org>".  So somewhere when the civimailprocess script is running and forwarding the email to "originator@myorg.org" it is changing "Sally Smith's" email address to my originator address.

So your question was:

Quote
Can you confirm that the reply gets passed through the ‘wrong’ address before it arrives at CiviMail’s forward event?

I'm afraid I don't know what the forward event is.  Is that when civimailprocessor takes the reply from the replychannel mailbox and forwards it on to my originator address?  If so, then the email is in fact 'correct' at the time that is happening.  It is only 'incorrect' when it ultimately comes to my originator inbox.

Thanks!

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Odd civimail reply to problem
December 21, 2009, 07:48:21 am
I’m sorry, I mixed up ‘reply event’ and ‘forwarding a reply event email’ (which the reply event does).

Basically, if you look at CiviMailProcessor.php, you’ll see that it calls crm_mailer_event_reply() when it finds a reply event. Can you check whether the email that arrives in CiviMailProcessor.php (the last one with the ‘right’ From: header) has a Reply-To: header set?

Also, does your profile is right that you’re using CiviCRM 2.1?
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.

pdowling

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 4
Re: Odd civimail reply to problem
December 21, 2009, 05:19:59 pm
Quote
Can you check whether the email that arrives in CiviMailProcessor.php (the last one with the ‘right’ From: header) has a Reply-To: header set?

I'm assuming you mean the mail as it currently appears in the Inbox/Civimail/processed folder.  I check two.  Neither appears to have a Reply-To: header set.

The first one has a normal from address "user1@theirdomain.com", as well as a Return-Path header of the same.
The second one has a normal from address "user2@theirdomain.com, with a Return-Path header of "prvs=5945b89d8=user2@theirdomain.com"

I don't recognize the prvs= thing, but guessing that is valid.

Sorry about my profile.  I am on 3.0 and updated accordingly.


Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Odd civimail reply to problem
December 22, 2009, 01:30:42 am
Quote from: pdowling on December 21, 2009, 05:19:59 pm
Quote
Can you check whether the email that arrives in CiviMailProcessor.php (the last one with the ‘right’ From: header) has a Reply-To: header set?

I'm assuming you mean the mail as it currently appears in the Inbox/Civimail/processed folder.  I check two.  Neither appears to have a Reply-To: header set.

Ok, I think I tracked it down. I filed CRM-5567 and we’ll try to fix it in CiviCRM 3.0.4.
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.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Odd civimail reply to problem
January 15, 2010, 05:21:14 am
Ok, I think I fixed it. Can you please try applying r25905 to your install, or overwriting your CRM/Mailing/Event/BAO/Reply.php with the one from our repository?
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) »
  • Odd civimail reply to problem

This forum was archived on 2017-11-26.