Allow open and save on main body parts
The message structure viewer currently does not allow to save and open attachments, if they are at the top level. This is the case for HTML-only emails. This fixes it by checking if the top level is an attachment and then displays the normal context menu.
To reproduce this issue:
- Open a HTML-only email in kmail
- Press CTRL-ALT-D to open the message structure viewer
- Right click on the HTML part of the email
Before this patch no context menu should popup. After this patch you can open, save and view the HTML part of the email.