[Kde-pim] Ideas for solution to Bug 63780 :

laurent Montel montel at kde.org
Wed Mar 21 10:38:20 GMT 2012


Hi,
I already look at it 2 months ago, and idea it to improve kaddressbook (I 
already created patch for it) to add new status "How to read email from 
specific address"
and after update messageviewer from this status from email when we got info 
from address. (it's still missing from my patch)

Regards


Le mercredi 21 mars 2012 13:45:52 Jayesh Badwaik a écrit :
> 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)

Why ? why store status in each item ?

> 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/
-- 
Laurent Montel | laurent.montel at kdab.com | KDE/Qt Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
_______________________________________________
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