<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Tahoma","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Tahoma","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Tahoma","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'>Hi<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'>We are using rt4.2.1<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'>In the past weeks, we received considerable complaints from our staff that their comments and corresponds are not delivered to the requestors (i.e. on correspond notify requestors).<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'>As we had upgraded from 3.8 to 4.2.1, we thought this might be caused by the upgrade…..<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'>But Checking different things I found the below in the logs:<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'>[3778] [Sat Nov 30 09:24:26 2013] [warning]: Use of uninitialized value $_ in concatenation (.) or string at /usr/local/lib/perl5/site_perl/5.14.2/HTML/FormatText/With<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'>Links/AndTables.pm line 211. (/usr/local/lib/perl5/site_perl/5.14.2/HTML/FormatText/WithLinks/AndTables.pm:211)<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'>[3778] [Sat Nov 30 09:24:26 2013] [error]: Scrip Prepare 6 died. - Can't call method "content" on an undefined value at /usr/local/lib/perl5/site_perl/5.14.2/HTML/Form<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'>atText/WithLinks/AndTables.pm line 217.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'>Stack:<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/usr/local/lib/perl5/site_perl/5.14.2/HTML/FormatText/WithLinks/AndTables.pm:217]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/usr/local/lib/perl5/site_perl/5.14.2/HTML/FormatText/WithLinks/AndTables.pm:101]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/usr/local/lib/perl5/site_perl/5.14.2/HTML/FormatText/WithLinks/AndTables.pm:83]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:1777]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/opt/rt4/sbin/../lib/RT/Template.pm:666]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/opt/rt4/sbin/../lib/RT/Template.pm:421]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:139]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/opt/rt4/sbin/../lib/RT/Action/Notify.pm:69]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/opt/rt4/sbin/../lib/RT/ScripAction.pm:222]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/opt/rt4/sbin/../lib/RT/Scrip.pm:561]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/opt/rt4/sbin/../lib/RT/Scrips.pm:358]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/opt/rt4/sbin/../lib/RT/Transaction.pm:189]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/opt/rt4/sbin/../lib/RT/Record.pm:1626]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/opt/rt4/sbin/../lib/RT/Ticket.pm:1611]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/opt/rt4/sbin/../lib/RT/Ticket.pm:1507]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/opt/rt4/local/plugins/RT-Extension-CommandByMail/lib/RT/Interface/Email/Filter/TakeAction.pm:374]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:1531]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'> [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:1345]<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'>Working more, I found that, when HTML::FormatText::WithLinks::AndTables could not parse the message and returned error, the scrips stop working<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'>In this special case, the problem could be generated very easy. Consider having 2 empty html tables which one of them enclosed in the other:<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'><table><o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'><tr><o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'><td><o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'><table><o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'></table><o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'></td><o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'></tr><o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'></table><o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'>If the message contains such structure, HTML::FormatText::WithLinks::AndTables would fail.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'>Sample code to test:<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 color="#1f497d" face=Tahoma><span style='font-size:11.0pt;color:#1F497D'>use HTML::FormatText::WithLinks::AndTables;<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 color="#1f497d" face=Tahoma><span style='font-size:11.0pt;color:#1F497D'>if (!(defined($ARGV[0]))) {print print "please enter htmlfile"\n";exit;}<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 color="#1f497d" face=Tahoma><span style='font-size:11.0pt;color:#1F497D'>$html=`cat $ARGV[0]`;<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 color="#1f497d" face=Tahoma><span style='font-size:11.0pt;color:#1F497D'>my $text = HTML::FormatText::WithLinks::AndTables->convert($html);<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 color="#1f497d" face=Tahoma><span style='font-size:11.0pt;color:#1F497D'>print $text;<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 color="#1f497d" face=Tahoma><span style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 color="#1f497d" face=Tahoma><span style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 color="#1f497d" face=Tahoma><span style='font-size:11.0pt;color:#1F497D'>something regarding this bug is here: <a href="https://rt.cpan.org/Public/Bug/Display.html?id=87457">https://rt.cpan.org/Public/Bug/Display.html?id=87457</a> but I’ve not applied it.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 color="#1f497d" face=Tahoma><span style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 color="#1f497d" face=Tahoma><span style='font-size:11.0pt;color:#1F497D'>First, does anybody else faced with such problem? i.e. incorrect/incompatible html mail from a customer and/or staff which causes scrips fail to run scrips? I could not figure it out if this exists in 3.8. or not.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 color="#1f497d" face=Tahoma><span style='font-size:11.0pt;color:#1F497D'>Second, is that rational behavior for RT? I believe even if such module failed, at lease scrips should continue working. (maybe it should be submitted to rt-bugs)<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 color="#1f497d" face=Tahoma><span style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 color="#1f497d" face=Tahoma><span style='font-size:11.0pt;color:#1F497D'>-payam<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:11.0pt'><o:p> </o:p></span></font></p></div></body></html>