[Rt-devel] Scrip problem

Ruslan U. Zakirov cubic at acronis.ru
Thu Jun 17 03:54:30 EDT 2004


Matti Lattu wrote:
> RT fans,
> 
> I want to create couple of simple scrips using the built-in RT scrip 
> rules. Currently my RT notifies requestors on resolve (condition: On 
> Resolve, Action: Notify Requestors, Stage: TransactionCreate) which 
> works without problems. This scrip is global.
> 
> However, when I'm trying to notify requestors when they submit the 
> request I meet problems. The scrip settings are:
> - Condition: On Create
> - Action: Notify Requestors
> - Stage: TransactionCreate & TransactionBatch (see below)
> - Template setting refers to my own template.
> - No custom conditions or codes.
> 
> With TransactionCreate value the RT log creates following entries:
You need TransactionCreate.
If you want know more then read:
http://wiki.bestpractical.com/index.cgi?ScripExecOrder

Now TransactionBatch stage is mostly useless.
> 
> [Thu Jun 17 07:21:17 2004] [debug]: Converting 'ISO-8859-1' to 'utf-8' 
> for text/plain - Testi #3 ????????????
> (/usr/local/rt3/lib/RT/I18N.pm:200)
> [Thu Jun 17 07:21:17 2004] [info]: 
> <rt-3.0.11-564-2426.2.15596302586114 at helsinki.fi> #564/2426 - Scrip 3  
> (/usr/local/rt3/lib/RT/Action/SendEmail.pm:92)
> [Thu Jun 17 07:21:17 2004] [debug]: Converting 'utf-8' to 'iso-8859-1' 
> for text/plain - 
> =?ISO-8859-1?B?W2VkdS5oZWxzaW5raS5maSAjNTY0XSBUZXN0aSAjMyD25OXWxMU=?=
> (/usr/local/rt3/lib/RT/I18N.pm:200)
> [Thu Jun 17 07:21:17 2004] [info]: 
> <rt-3.0.11-564-2426.2.15596302586114 at helsinki.fi>
> No recipients found. Not sending.
http://wiki.bestpractical.com/index.cgi?FAQ
http://wiki.bestpractical.com/index.cgi?NoRecipFound


> (/usr/local/rt3/lib/RT/Action/SendEmail.pm:257)
> [Thu Jun 17 07:21:17 2004] [error]: error:    unexpected end of header
http://wiki.bestpractical.com/index.cgi?Template


> 
> (/usr/local/rt3/lib/RT/Template_Overlay.pm:341)
> [Thu Jun 17 07:21:17 2004] [info]: RT::Scrip=HASH(0x9897064): Couldn't 
> prepare Notify Requestors (/usr/local/rt3/lib/RT/Scrip_Overlay.pm:346)
> [Thu Jun 17 07:21:17 2004] [info]: Ticket 564 created in queue 
> 'ktt-yleinen' by mplattu at suomi24.fi 
> (/usr/local/rt3/lib/RT/Ticket_Overlay.pm:640)
> 
> Another scrips would notify request owners on status/owner change. Here 
> I met similair problems.
> 
> Any suggestions? RT version is 3.0.11 with Apache 1.3.x, FastCGI, MySQL 
> 4.0.x, Perl 5.8.3.


More information about the Rt-devel mailing list