RT HTML Cleaner v2

I’ve slightly reworked my patch which clean and disply html parts on WebUI.

Our support team find this useful.

Installation:
$> perl -e ‘install HTML::Scrubber’ -MCPAN
$> cd /path/to/rt3/

test:
$> cat /path/to/rt3.html_display.patch | patch -p1 --dry-run

Hunk #1 succeeded at 66 with fuzz 2.
Is ok it’s just due versions changes.

install:
$> cat /path/to/rt3.html_display.patch | patch -p1

revert:
$> cat /path/to/rt3.html_display.patch | patch -p1 -R

	Good luck. Ruslan.

ps. Feedback is wellcome.

rt3.html_display.patch (1.45 KB)

Personnaly, I rewrote some Attachment and Transaction subs (with _Local)
that uses HTML::TreeBuilder and HTML::FormatText to converts HTML to
plain/text, which in turn can be display in WebUI and used as
transaction content in mail templates. Although we lose some format, the
output is generaly more useful than nothing, what is unpatched RT
returns in theses cases. BTW this also handles text/enriched parts (an
obscure though RFC’ed format mainly produced by Eudora, Qualcomm’s mailer).

Best regards,

Guillaume Perréal.

Responsable informatique,
Cemagref, groupement de Lyon,
France.

Tél: (+33) 4.72.20.87.87.
Fax: (+33) 4.78.47.78.75.
Site: http://www.lyon.cemagref.fr/

Ruslan U. Zakirov a écrit :

Personnaly, I rewrote some Attachment and Transaction subs (with _Local)
that uses HTML::TreeBuilder and HTML::FormatText to converts HTML to
plain/text, which in turn can be display in WebUI and used as
transaction content in mail templates. Although we lose some format, the
output is generaly more useful than nothing, what is unpatched RT
returns in theses cases. BTW this also handles text/enriched parts (an
obscure though RFC’ed format mainly produced by Eudora, Qualcomm’s mailer).

Do you have a patch for this, Guillaume?

Daniel Foster
Technical Director
34SP.com