Message/RFC822 CCs in templates?

Dear fellow RT users,

Speaking of CCs, Reply-To-All, and the unavoidable troubles they cause :wink:
I am still looking for a way to reference a messageā€™s CC: header
within templates. How can this be done?

For the time being I created a wrapping mail alias which adds the text
"[This message was additionally CCā€™ed to: $MATCH]" (by means of
procmail) in front of a messageā€™s body in case a CC header was found.
But, of course, this is a really dirty solution which might even break
some messages :frowning:

The problem is of course that the CC header does not show up in
outgoing messages. But I could live with this if I could reference the
CCs in templates.

Any help is much welcome.

ā€“ Andreas

Hi all,

I havenā€™t received any answer yet, so, please allow me to ask once
again:
Is there really no way to access message headers from within a
template? I just canā€™t believe I guess :confused:

Cheerio,
ā€“ AndreasOn Tue, 6 Nov 2007, Andreas Schamanek wrote:

I am still looking for a way to reference a messageā€™s CC: header
within templates. How can this be done?
(ā€¦)
The problem is of course that the CC header does not show up in
outgoing messages. But I could live with this if I could reference the
CCs in templates.

Any help is much welcome.

Andreas,

I'm not sure I have what your looking for, but if you are referring to 

overriding a header for a notification (like ā€œsubjectā€), then you do
that in your custom template. If you are referring to replacing a
particular header for a particular recipient, then I have no idea.
perhaps searching the wiki on that one. If you want to override the CC
recipient, there are a couple ways to do that with custom scrips and
adding CCā€™c to the ticket (again, search the wiki). Beyond that, I
really have no experience. Hope this helps.

Kenn
LBNLOn 11/9/2007 3:27 AM, Andreas Schamanek wrote:

Hi all,

I havenā€™t received any answer yet, so, please allow me to ask once
again:
Is there really no way to access message headers from within a
template? I just canā€™t believe I guess :confused:

Cheerio,
ā€“ Andreas

On Tue, 6 Nov 2007, Andreas Schamanek wrote:

I am still looking for a way to reference a messageā€™s CC: header
within templates. How can this be done?
(ā€¦)
The problem is of course that the CC header does not show up in
outgoing messages. But I could live with this if I could reference the
CCs in templates.

Any help is much welcome.


The rt-users Archives

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, weā€™ll take
up to 20 percent off the price. This sale wonā€™t last long, so get in touch today.
Email us at sales@bestpractical.com or call us at +1 617 812 0745.

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RTā€™s hidden secrets with RT Essentials from Oā€™Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Hi Kenn,
hi fellow RT users,

Thanks a lot for getting back. I do know how to change the Subject and
how to CC someone. Iā€™ve also searched the Wiki back and forth, and all
of this listā€™s archive[*].

Anyway, what I am looking for is some way to include the information
from header lines as they arrive in RT. Specifically, in templates I
want to include a line that says:

This message was sent to {CC: header from message}

(speaking of CCs from the original message, not RTā€™s Ccs). Or in case
of the senderā€™s address something like

Dear {From: header from message}

Cheerio,

ā€“ Andreas

[*] Admittedly, I have only mostly searched for a way to get the CC:
header line. Nevertheless, I think I did my part of the homework :confused: