[rt-users] RT HTML Cleaner v2
Guillaume Perréal
perreal at lyon.cemagref.fr
Mon Feb 16 15:05:12 EST 2004
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 :
> 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.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>rt-users mailing list
>rt-users at lists.bestpractical.com
>http://lists.bestpractical.com/mailman/listinfo/rt-users
>
>Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20040216/d0d9a6ed/attachment.htm>
More information about the rt-users
mailing list