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

Gene LeDuc gleduc at mail.sdsu.edu
Tue Apr 17 14:48:08 EDT 2007

The Acknowledge template builds the $OUT variable, and the first part of 
that happens kind of deeply in the template code.   When I finally get to 
it, it goes like this:
$OUT = "To: $uEmail
Subject: $subj

A request to register a DNS entry has been received by the IT Security 
Office with the following information:
blah blah blah";

In the past when I've had a problem with templates, RT has been pretty 
forthcoming with error messages.  I'm not seeing any and the log entry at 
the beginning of the code never gets logged, so my conclusion is that the 
template is never getting "run".

If the template was messed up somehow, is there a way to show that it's 
actually being run and silently failing (other than logging debug 
statements at the beginning)?

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.
>What does the Acknowledge template look like? You'll need recipients coded 
>in the template to generate any email from this setup.

Gene LeDuc, GSEC
Security Analyst
San Diego State University 

More information about the rt-users mailing list