[rt-users] Template won't fire when scrip condition is true

Gene LeDuc gleduc at mail.sdsu.edu
Tue Apr 17 19:01:13 EDT 2007


I figured out the problem (a template attached to a scrip whose condition 
was true wasn't being run).  The problem was in the template; I had typed a 
"(" instead of a "{" in an if-else block.  RT wasn't catching that there 
was an unmatched curly brace and an unmatched open parenthesis in the 
template and neither was I.

Thanks to all who took the time to help me on this!

At 12:19 PM 4/17/2007, Gene  LeDuc wrote:
>I just tried hard-coding the headers into the template like so (minus the 
>"begin" and "end" lines):
>========= begin template
>To: myaddress at mydomain.whatever
>Subject: Is the template firing?
>
>{ $RT::Logger->debug("Template DNS:26 (Acknowlege): Entering template");
>#(more template code goes here)
>}
>========= end template
>
>Still no e-mail.  I'm convince that the template is not getting run.  But 
>RT is indicating that it should be.
>
>At 11:08 AM 4/17/2007, Stephen Turner wrote:
>>At Tuesday 4/17/2007 02:00 PM, Gene LeDuc wrote:
>>>Hi All,
>>>
>>>I've been scratching my head over this for 2 days and haven't been able 
>>>to solve it.  I have a scrip that is not firing the Notify Others action 
>>>when its user-defined condition is true.  The scrip fires, the condition 
>>>is true, but the execution chain simply ends without the template 
>>>getting launched.  There are no errors in the apache log and my debug 
>>>log shows that the scrip condition is true.  I have an almost identical 
>>>scrip (different code for conditional and template) in another queue 
>>>that is working fine, so I'm taking a step back and asking if anyone 
>>>here can see my mistakes.
>>
>>Gene,
>>
>>What does the Acknowledge template look like? You'll need recipients 
>>coded in the template to generate any email from this setup.
>>
>>Steve
>
>
>--
>Gene LeDuc, GSEC
>Security Analyst
>San Diego State University
>_______________________________________________
>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
>Community help: http://wiki.bestpractical.com
>Commercial support: sales at bestpractical.com
>
>
>Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a 
>copy at http://rtbook.bestpractical.com


-- 
Gene LeDuc, GSEC
Security Analyst
San Diego State University 




More information about the rt-users mailing list