[Kde-pim] enhance 'plain text' mode in kmail
Thomas McGuire
mcguire at kde.org
Tue Dec 9 20:39:23 GMT 2008
Hi,
On Tuesday 09 December 2008 14:01:35 Nick Shaforostoff wrote:
> I'm requesting your attention to the bug
> http://bugs.kde.org/show_bug.cgi?id=44880
> in which I propose to use qt simple html rendering engine (+ warn user
> on link clicks) in plain text mode
> when message contains no plain text part.
I agree in principle that HTML-only messages should be rendered in plain text.
However, I don't think we can use a QTextEdit for that, since we use HTML for
the header stuff.
What we can do is to put the HTML in a QTextDocument and then use
toPlainText() to get the plain text. The correct place for this seems to be
ObjectTreeParser::processTextHtmlSubtype(). What I also want to have is an
easy way to switch to/from HTML/plain mode for multipart/alternative messages
or in this case for plain HTML messages. Maybe by clicking on the HTML status
bar (which also should indicate if the message is multipart/alternative, and
should display a don't ask again message box when first switching to HTML
mode).
Feel free to implement this :)
Regards,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20081209/a5451398/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list