[dev] IMP and html2text filter called from lib/MIME/Viewer/plain.php
Chris Stromsoe
cbs at cts.ucla.edu
Fri Nov 16 23:07:11 UTC 2007
I'm noticing horrible load times for messages large plain text attachments
that have long lines. I'm displaying them in-line. The plain viewer
calls html2text with parselevel set to TEXT_HTML_MICRO. The regular
expression to convert the text links to is chewing CPU (> 100s display
time for a 30 line 400k attachment).
Is there any downside to changing TEXT_HTML_MICRO to TEXT_HTML_NOHTML in
imp/lib/MIME/Viewer/plain.php ? Mostly I'm concerned about side-affects
other than not turning URLs into links in plain-text attachments, which is
acceptable.
Thanks.
-Chris
More information about the dev
mailing list