[Kde-pim] Review Request: KMail: Clicking the HTML status bar switches display mode

Thomas McGuire mcguire at kde.org
Wed Nov 11 13:41:00 GMT 2009


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2017/#review3025
-----------------------------------------------------------


Thanks for the update.

I find it a bit confusing that it says "No HTML message part", even though the message does have an HTML part.
I also think that the string is too long, with my layout, I can not see it fully.

Maybe just display the information that it is a mail which has both a plain text part and a HTML part in the tooltip and let the sidebar simpy display "HTML message" and "plain message"?

The main point that needs improvement is that place where it detects the type of the message, see the inline comment below.

Again, I'm very sorry for the late review, I was ill in the last days and couldn't be motivated to do anything.


/trunk/KDE/kdepim/kmail/kmreaderwin.cpp
<http://reviewboard.kde.org/r/2017/#comment2472>

    I'm afraid this is not that easy.
    What if the message has attachments? Then the top-level mimetype is multipart/mixed. What if the HTML has embedded images? What if the message is signed or encrypted?
    
    They way this was done previously was that ObjectTreeParser set the mode of the color bar directly, for example in processTextHtmlSubtype(), the ObjectTreeParser has the best knowledge about the message structure.
    
    (ObjectTreeParser is a friend of KMReaderWin and accesses mColorBar directly...)


- Thomas


On 2009-10-30 19:09:31, James Bendig wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/2017/
> -----------------------------------------------------------
> 
> (Updated 2009-10-30 19:09:31)
> 
> 
> Review request for KDE PIM.
> 
> 
> Summary
> -------
> 
> Clicking the HTML status bar in a message switches the display mode between HTML and plain text. It's implemented as an action so a user can configure a shortcut as well. Unlike as stated in the JJ, "Clicking the HTML status bar should switch display mode," the message does not have to have both HTML and plain text. Seems useful to be able to toggle back from HTML to plain text after clicking the "... activate formatted HTML display for this message by clicking here." URL.
> 
> 
> Diffs
> -----
> 
>   /trunk/KDE/kdepim/kmail/htmlstatusbar.h 1042445 
>   /trunk/KDE/kdepim/kmail/htmlstatusbar.cpp 1042445 
>   /trunk/KDE/kdepim/kmail/kmreaderwin.h 1042445 
>   /trunk/KDE/kdepim/kmail/kmreaderwin.cpp 1042445 
> 
> Diff: http://reviewboard.kde.org/r/2017/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> James
> 
>

_______________________________________________
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