<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" 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=utf-8"><meta name=Generator content="Microsoft Word 15 (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:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-GB link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>>> As a standalone perl script the same code works fine on both servers, <o:p></o:p></p><p class=MsoNormal>>> just when ran thru IC (in a [perl] block in a page, as a UserTag or in <o:p></o:p></p><p class=MsoNormal>>> the test_code admin page) it hangs on the MIME::Lite->new() creation of <o:p></o:p></p><p class=MsoNormal>>> the object.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>>I suspect that this might be a Safe issue. The first thing I would <o:p></o:p></p><p class=MsoNormal>>check is the SafeUntrap directive in interchange.cfg, make sure there <o:p></o:p></p><p class=MsoNormal>>isn't anything you've untrapped in the old catalog that isn't listed in <o:p></o:p></p><p class=MsoNormal>>the new one.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>>Also try calling the email tag from outside of the [perl] block, just <o:p></o:p></p><p class=MsoNormal>>with ITL. If this works then it's very likely going to be Safe.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>>Other than that it could just be changes in perl, Safe issues are hard <o:p></o:p></p><p class=MsoNormal>>to track down and things sometimes go awry in newer versions of perl. <o:p></o:p></p><p class=MsoNormal>>There are others here who are likely better at dealing with Safe issues <o:p></o:p></p><p class=MsoNormal>>than I am, my preferred method is to rewrite code where necessary so <o:p></o:p></p><p class=MsoNormal>>it's outside of [perl] and [calc] blocks and get on with my day.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>>Peter<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>There was a load of untrapped modules in the old catalog, I have added them to the new catalog and it still hangs in the same place.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have also tried a plain page, with just the [email] tag in, so not wrapping it with [perl] or [calc], and again it hangs in the same place until apache times out.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I may have to write my own version of the [email] tag using a different module than MIME::Lite, even the developer of MIME::Lite recommends that. “MIME::Lite is not recommended by its current maintainer. There are a number of alternatives, like Email::MIME or MIME::Entity and Email::Sender, which you should probably use instead. MIME::Lite continues to accrue weird bug reports, and it is not receiving a large amount of refactoring due to the availability of better alternatives. Please consider using something else.” – taken from his CPAN page.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>But I cannot believe that no-one else uses the IC [email] tag anymore?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Can anyone confirm it working on their catalo, and which versions of perl/IC/MIME::Lite they have?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Phil. </p></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 13px;"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
<td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avg.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body></html>