We have a strange problem - On Create Notify Owner and AdminCcs scrip (scrip 8) is not working for us all the time - email from the same sender - as far as I can see in the logs this is the error:
[16701] [Fri Jul 19 06:58:28 2019] [debug]: About to prepare scrips for transaction #466369 (/usr/share/request-tracker4/lib/RT/Transaction.pm:187)
[16701] [Fri Jul 19 06:58:28 2019] [error]: error: couldn’t parse head; error near:
Dobro jutro, (/usr/share/request-tracker4/lib/RT/Template.pm:458)
[16701] [Fri Jul 19 06:58:28 2019] [debug]: Skipping Scrip #8 because it didn’t Prepare (/usr/share/request-tracker4/lib/RT/Scrips.pm:361)
Another ticket from from the same sender and scrip 8 is working:
[13831] [Thu Jul 18 10:35:11 2019] [debug]: About to commit scrips for transaction #466218 (/usr/share/request-tracker4/lib/RT/Transaction.pm:210)
[13831] [Thu Jul 18 10:35:11 2019] [debug]: Committing scrip #8 on txn #466218 of ticket #42459 (/usr/share/request-tracker4/lib/RT/Scrips.pm:306)
[13831] [Thu Jul 18 10:35:11 2019] [debug]: Calling SetRecipientDigests for transaction RT::Transaction=HASH(0xbd5a02b8), id 466218 (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:623)
[13831] [Thu Jul 18 10:35:11 2019] [debug]: Working on mailfield To; recipients are (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:639)
So basically admins did get a notification the from email sent to our RT on Thu Jul 18 10:35:11 2019 but did not get a notification send today Fri Jul 19 06:58:28 2019…
RT version is 4.2.8 - any help fixing this would be appreciated…
For clarification - On Create Notify Owner and AdminCcs is built in RT 4.2.8 and hasnt been changed by us so is the Template that it triggers Transaction in HTML:
{$Transaction->CreatedAsString}: Request <a href="{RT->Config->Get(“WebURL”)}Ticket/Display.html?id={$Ticket->id}">{$Ticket->id} was acted upon by {$Transaction->CreatorObj->Name}.
Its hard to tell without the content of the transaction being wrapping in a code block, the forum is rendering the HTML code. But this looks like the default content for that template:
RT-Attach-Message: yes
Content-Type: text/html
<b>{$Transaction->CreatedAsString}: Request <a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">{$Ticket->id}</a> was acted upon by {$Transaction->CreatorObj->Name}.</b>
<br>
<table border="0">
<tr><td align="right"><b>Transaction:</b></td><td>{$Transaction->Description}</td></tr>
<tr><td align="right"><b>Queue:</b></td><td>{$Ticket->QueueObj->Name}</td></tr>
<tr><td align="right"><b>Subject:</b></td><td>{$Transaction->Subject || $Ticket->Subject || "(No subject given)"} </td></tr>
<tr><td align="right"><b>Owner:</b></td><td>{$Ticket->OwnerObj->Name}</td></tr>
<tr><td align="right"><b>Requestors:</b></td><td>{$Ticket->RequestorAddresses}</td></tr>
<tr><td align="right"><b>Status:</b></td><td>{$Ticket->Status}</td></tr>
<tr><td align="right"><b>Ticket URL:</b></td><td><a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}</a></td></tr>
</table>
<br/>
<br/>
{$Transaction->Content( Type => "text/html")}
'
},
# Shadow the global templates of the same name to suppress duplicate
# notifications until rules is ripped out.
{ Queue => "___Approvals",
Name => "Transaction in HTML",
Content => "",
},
{ Queue => "___Approvals",
Name => "Transaction",
Content => "",
},
{
Queue => '0',
Name => 'Admin Correspondence', # loc
Description => 'Plain text admin correspondence template', # loc
Content => 'RT-Attach-Message: yes
<URL: {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id} >
{$Transaction->Content()}
{$Transaction->Content(Type => ‘text/html’)} seems out of place in the header in your template.