[ic] Email tag / MIME:Lite
Stefan Hornburg (Racke)
racke at linuxia.de
Tue Oct 6 10:50:03 UTC 2020
On 10/6/20 12:13 PM, Phil Smith wrote:
>>> As a standalone perl script the same code works fine on both servers,
>
>>> just when ran thru IC (in a [perl] block in a page, as a UserTag or in
>
>>> the test_code admin page) it hangs on the MIME::Lite->new() creation of
>
>>> the object.
>
>
>
>>I suspect that this might be a Safe issue. The first thing I would
>
>>check is the SafeUntrap directive in interchange.cfg, make sure there
>
>>isn't anything you've untrapped in the old catalog that isn't listed in
>
>>the new one.
>
>
>
>>Also try calling the email tag from outside of the [perl] block, just
>
>>with ITL. If this works then it's very likely going to be Safe.
>
>
>
>>Other than that it could just be changes in perl, Safe issues are hard
>
>>to track down and things sometimes go awry in newer versions of perl.
>
>>There are others here who are likely better at dealing with Safe issues
>
>>than I am, my preferred method is to rewrite code where necessary so
>
>>it's outside of [perl] and [calc] blocks and get on with my day.
>
>
>
>>Peter
>
>
>
> 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.
>
>
>
> 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.
>
>
>
> 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.
>
>
>
> But I cannot believe that no-one else uses the IC [email] tag anymore?
>
>
>
> Can anyone confirm it working on their catalo, and which versions of perl/IC/MIME::Lite they have?
I never encountered your problem with [email], regardless of MIME::Lite version, but I run my catalogs
always in global mode:
AllowGlobal myshop
PerlAlwaysGlobal myshop
Currently I'm using Email::Sender from within a global usertag.
Regards
Racke
>
>
>
>
>
> Thanks
>
>
>
> Phil.
>
>
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
> Virus-free. www.avg.com
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users at interchangecommerce.org
> https://www.interchangecommerce.org/mailman/listinfo/interchange-users
>
--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://www.interchangecommerce.org/pipermail/interchange-users/attachments/20201006/fe463779/attachment.sig>
More information about the interchange-users
mailing list