[Rt-devel] [PATCH] Allow to override 'envelope from' from templates

Timo Teräs timo.teras at iki.fi
Wed Jul 6 11:12:32 EDT 2011


On 07/06/2011 05:30 PM, Kevin Falcone wrote:
> On Wed, Jul 06, 2011 at 05:07:48PM +0300, Timo Teräs wrote:
>> On 07/06/2011 05:03 PM, Kevin Falcone wrote:
>>> On Wed, Jul 06, 2011 at 04:47:10PM +0300, Timo Teräs wrote:
>>>> Add X-RT-Envelope-From header that will override the envelope
>>>> from if using sendmailpipe mail sending.
>>>
>>> Does $OverrideOutgoingMailFrom not provide enough rope for your use
>>> case?  It lets you change envelope from on a per-queue basis
>>
>> No. I need to override it on Template basis. I have two separate Scrips
>> that can execute on same event and use these two separate Templates.
>> Thus one event can generate two mails with separate envelope from.
> 
> Ok, can you send it as a patch against master to rt-bugs after you
> fold the header parsing into the if block which is the only place you
> use that variable?  I'll see that it gets assigned to get looked at
> for the 4.2 series.

Ok, will do. Though $args is redefined in that if block, so it's not
convenient to access the headers there... Maybe I should rename the
$args in the if block while at it.

- Timo



More information about the rt-devel mailing list