[rt-users] scrip and template to email calendar invite

2012-01-18 Thread Brent Wiese
I've seen the question asked before when I search the archives, but I wasn't 
able to find an answer my brain could parse.

I need to build a scrip and template that will send an Outlook style calendar 
invite via email with a due date based on a custom field (datetime type).

After a good bit of research, I think I have all the lines I need to build the 
ics file attachment (although being able to do it inline vs an attachment would 
be gravy - maybe I just need to set the content type to Content-Type: 
text/calendar; charset=utf-8; method=REQUEST which is what I see when I look 
at an invite generated from my Outlook client?).

But from there I'm pretty much stuck.

My assumption is I would need to build a new template. What I can't figure out 
is the code that goes in the template so the text I'm adding isn't just parsed 
as the message content itself.

The scrip itself is less of a worry - in my particular case, it's going to fire 
when a ticket is moved into a particular queue only, so that part is pretty 
easy.

I've seen other responses of use the calendar feed or use a different email 
client but the reality is in my situation that's not an option. It needs to be 
via email and it needs to be Outlook compatible (the more native the better).

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

Re: [rt-users] scrip and template to email calendar invite

2012-01-18 Thread Kevin Falcone
On Wed, Jan 18, 2012 at 04:33:20PM -0700, Brent Wiese wrote:
My assumption is I would need to build a new template. What I can't figure 
 out is the code
that goes in the template so the text I'm adding isn't just parsed as the 
 message content
itself.
 

You may want to review the docs/customizing/templates.pod included
with RT, which also talks about how to set a custom header type.

You won't be able to build an attachment from your Template, so
hopefully an inline solution works.

-kevin


pgpEJuz42V0Ox.pgp
Description: PGP signature

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

Re: [rt-users] scrip and template to email calendar invite

2012-01-18 Thread Brent Wiese
Sorry, forgot to mention I'm running 4.0.4...

From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Brent Wiese
Sent: Wednesday, January 18, 2012 4:33 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] scrip and template to email calendar invite

I've seen the question asked before when I search the archives, but I wasn't 
able to find an answer my brain could parse.

I need to build a scrip and template that will send an Outlook style calendar 
invite via email with a due date based on a custom field (datetime type).

After a good bit of research, I think I have all the lines I need to build the 
ics file attachment (although being able to do it inline vs an attachment would 
be gravy - maybe I just need to set the content type to Content-Type: 
text/calendar; charset=utf-8; method=REQUEST which is what I see when I look 
at an invite generated from my Outlook client?).

But from there I'm pretty much stuck.

My assumption is I would need to build a new template. What I can't figure out 
is the code that goes in the template so the text I'm adding isn't just parsed 
as the message content itself.

The scrip itself is less of a worry - in my particular case, it's going to fire 
when a ticket is moved into a particular queue only, so that part is pretty 
easy.

I've seen other responses of use the calendar feed or use a different email 
client but the reality is in my situation that's not an option. It needs to be 
via email and it needs to be Outlook compatible (the more native the better).

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012