Showing initial request in template

Hi everyone,

I’ve got a template that notifies certain techs when a ticket is created that might pertain to their area. In the template I try to quote from the initial request with this little snippet:

{$Ticket->Transactions->First->Content()}

This works fine except for one of our staff members who attaches her vcard to all of her emails. This bit of perl is printing her vcard in the email instead of the original text of her message. Any idea how I can have this template ignore the vcard?

-Tim

Tim Wilson, Director of Technology
Buffalo-Hanover-Montrose Schools
214 1st Ave NE Buffalo, MN 55313
ph: 763.682.8740 fax: 763.682.8743 http://www.buffalo.k12.mn.us

If you have the scrip condition be On Create, or an equivalent, you can
just use $Transaction->Content(). We haven’t had any problems with that
here.

Jacob Helwig
PC Technician
Busch’s Help Desk
Desk: x35221
Direct: 734-214-8221-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Tim
Wilson
Sent: Wednesday, September 19, 2007 3:42 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Showing initial request in template

Hi everyone,

I’ve got a template that notifies certain techs when a ticket is created
that might pertain to their area. In the template I try to quote from
the initial request with this little snippet:

{$Ticket->Transactions->First->Content()}

This works fine except for one of our staff members who attaches her
vcard to all of her emails. This bit of perl is printing her vcard in
the email instead of the original text of her message. Any idea how I
can have this template ignore the vcard?

-Tim

Tim Wilson, Director of Technology
Buffalo-Hanover-Montrose Schools
214 1st Ave NE Buffalo, MN 55313
ph: 763.682.8740 fax: 763.682.8743 http://www.buffalo.k12.mn.us

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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

If you have the scrip condition be On Create, or an equivalent, you can
just use $Transaction- >Content(). We haven’t had any problems with that
here.

Jacob,

I left out some context for the sake of brevity. The scrip in question gets triggered on a custom field change, not on create. That’s why I need to look at the first bit of content.

-Tim

Tim Wilson, Director of Technology
Buffalo-Hanover-Montrose Schools
214 1st Ave NE Buffalo, MN 55313
ph: 763.682.8740 fax: 763.682.8743 http://www.buffalo.k12.mn.us