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

Thomas McGuire mcguire at kde.org
Sat Nov 14 18:38:50 GMT 2009


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



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

    That's the same as in the HTML case, right?
    Then you can do:
    case Html:
    case MultipartHtml:
      bla
    
    To save some code duplication.



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

    Just because we're in processTextPlainSubtype() doesn't mean the entire mail is a plain text mail, unfortunatley.
    
    Just imagine the following mail structure:
    
    |-multipart/alternative
    | |-text/html
    | \-text/plain
    |-text/plain
    
    This structure happens, for example, when someone writes a HTML mail and the mailing list adds a plain text footer to it.
    
    The footer is processed last, so the colorbar would indicate a plain text message here, even though it is a HTML one.


- Thomas


On 2009-11-11 20:19:41, James Bendig wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/2017/
> -----------------------------------------------------------
> 
> (Updated 2009-11-11 20:19:41)
> 
> 
> 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/kmreaderwin.h 1042445 
>   /trunk/KDE/kdepim/kmail/kmreaderwin.cpp 1042445 
>   /trunk/KDE/kdepim/kmail/objecttreeparser.cpp 1042445 
>   /trunk/KDE/kdepim/kmail/htmlstatusbar.cpp 1042445 
>   /trunk/KDE/kdepim/kmail/htmlstatusbar.h 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