
Thanks!
Don't be offensed but i don't understand why you "reinvent the wheel"
by not using HTML::Format. There are yet a lot of CPAN modules
incorporated into OTRS in Kernel/cpan-lib. Perhaps there is something
in this module that is not fitted to OTRS?
2007/9/13, Martin Edenhofer
Hi Sébastien,
Sébastien Prud'homme schrieb:
A lot of our users are using email in HTML format. Unfortunately the OTRS html2txt feature doesn't transform HTML entities.
My question: with not use the HTML::Transform perl module to do it (or HTML::FormatText::WithLinks)?
I've done a small modification on my OTRS test system and it works fine. I've just added a single line of perl code to do this in Kernel/System/EmailParser.pm and removed all the things that were done by the OTRS perl code:
$Self->{MessageBody} = HTML::FormatText->format_string($Self->{MessageBody}, leftmargin => 0, rightmargin => $Self->{ConfigObject}->Get('Ticket::Frontend::TextAreaEmail'));
Yes, like Simon says. I saw there is an bug entry from you:
http://bugs.otrs.org/show_bug.cgi?id=1186
I have checked this and was able to reproduce it.
More info in the bug report! :-)
Many thanks for your help!
-Martin
((otrs)) :: OTRS GmbH :: Europaring 4 :: D - 94315 Straubing Fon: +49 (0) 9421 56818 0 :: Fax: +49 (0) 9421 56818 18 http://www.otrs.com/ :: Communication with success! _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev