Closed (fixed)
Project:
Reroute Email
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2011 at 19:15 UTC
Updated:
10 Nov 2011 at 05:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
cyberwolf commentedAttaching a patch for the D6 branch.
Comment #2
zilverdistel commentedsubscribing
Comment #3
zilverdistel commentedI'd use "... when the mail is being rerouted."
I'm not sure why this has to be changed? Won't this prevent passing through the e-mails to addresses in the pass-through list?
Comment #4
cyberwolf commentedI changed the description as you suggested.
The current code inside the conditional if (in_array($to, $addresslist)) is actually useless, as $message['to'] already equals $to. As a bit earlier you find this code:
So there is no reason to set it again. That's why I removed that part.
Comment #5
zilverdistel commentedComment #6
adamgerthel commentedWhat does this alter exactly? The best thing would be the ability to turn on / off the reroute message via a checkbox @ admin/config/development/reroute_email
Would love that in D7 as well.
Comment #7
cyberwolf commentedIt does exactly that! Additionally, it adds some extra e-mail headers so you are still able to identify where the mail was actually intended to go:
Comment #8
adamgerthel commentedNice! The only thing missing is that it gets committed and added to the D7 branch as well
Comment #9
rfayI support this approach.
Comment #10
rfayStraight reroll of #4 so it applies.
Comment #12
rfayCommitted to 6.x-1.x: 08807b9
I have to confess to making some verbiage changes, and I put the master checkbox at the top of the form.
Comment #13
rfayHere it is for D7, with the tests fixed up (and an added test for the new headers and lack of body injection).
Comment #14
rfayCommitted to 7.x-1.x: 35efbcb