Re: [rt-users] Using RT::Template with MIMEObj to create a new ticket using -Create()

2013-09-16 Thread Landon Stewart
On 14 September 2013 13:19, Ruslan Zakirov r...@bestpractical.com wrote: I don't understand your problem here. You have an incident and want to create an investigation with a scrip using a template. Templates are used here so you don't have to change code every time you to change a word or

Re: [rt-users] Using RT::Template with MIMEObj to create a new ticket using -Create()

2013-09-14 Thread Ruslan Zakirov
On Fri, Sep 13, 2013 at 9:16 PM, Landon Stewart lstew...@iweb.com wrote: This was originally posted to the RTIR list but I'm x-posting it here because it's not specific to RTIR and I'm still having difficulties. I've been unable to figure out how to call an action module from another action

Re: [rt-users] Using RT::Template with MIMEObj to create a new ticket using -Create()

2013-09-14 Thread Landon Stewart
On 14 September 2013 00:19, Ruslan Zakirov r...@bestpractical.com wrote: You should go other way around. After calling $template-Parse you call $template-MIMEObj and get MIME::Entity representing result of the template. You then can update this entity with attachments, more headers and so on.

Re: [rt-users] Using RT::Template with MIMEObj to create a new ticket using -Create()

2013-09-14 Thread Ruslan Zakirov
On Sat, Sep 14, 2013 at 11:58 PM, Landon Stewart lstew...@iweb.com wrote: On 14 September 2013 00:19, Ruslan Zakirov r...@bestpractical.com wrote: You should go other way around. After calling $template-Parse you call $template-MIMEObj and get MIME::Entity representing result of the

[rt-users] Using RT::Template with MIMEObj to create a new ticket using -Create()

2013-09-13 Thread Landon Stewart
This was originally posted to the RTIR list but I'm x-posting it here because it's not specific to RTIR and I'm still having difficulties. I've been unable to figure out how to call an action module from another action module but instead I've been working on an action module that basically: -