[Kde-pim] Ideas for solution to Bug 63780 :
Jayesh Badwaik
kde at jayeshbadwaik.org
Wed Mar 21 08:15:52 GMT 2012
Hi,
I am interested in resolving the feature request given here [0]. The bug title
is "Auto-render HTML for certain email addresses". The idea is that for
certain messages (especially from the trusted source), it is helpful to have
an automatic rendering of HTML messages.
In that respect, I have come up with the following solution:
1. Add an enum attribute to the MessageList::Core::MessageItem (say
HTMLRender) (possibly bool)
2. Add a MailCommon::FilterActionEnableHTMLRender class (derived from
MailCommon::Filter Action) which implements changing the HTMLRender atttribute
to proper value
3a. (This is the step I am not sure about)
In the KMReaderMainWin class, the bool variable ahtml should be intialized by
access the HTMLRender enum from that specific MessageItem instance instead of
getting a static variable.
3b. Or may be, the static variable stays as it is, but is turned into an int
which has three options:
a. Force Disable HTML for all Mail
b. Enable HTML for mail with HTMLRender=yes and Disable for Others
c. Enable HTML for all Mail
and then inside the code, somewhere, depending on the value of ahtml, we
override the HTML value with one decided from HTMLRender enum.
--
Jayesh Badwaik
[0]: https://bugs.kde.org/show_bug.cgi?id=63780
_______________________________________________
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