From 9ab93f257bb9d9a62ab8c13bc654fd10f0df4f27 Mon Sep 17 00:00:00 2001 From: pschwabauer Date: Fri, 16 Feb 2024 11:29:21 +0100 Subject: Allow open on all HTML parts Currently, it is not possible to open a mail with HTML as main body part. This fixes it by checking if the content type is of `HTML` and allow it to be opened. This resolves issue #89. Signed-off-by: pschwabauer --- kmail/kmmimeparttree.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kmail/kmmimeparttree.cpp b/kmail/kmmimeparttree.cpp index 91d8592f..56910cb2 100644 --- a/kmail/kmmimeparttree.cpp +++ b/kmail/kmmimeparttree.cpp @@ -131,7 +131,8 @@ void KMMimePartTree::itemRightClicked( TQListViewItem* item, else { TQPopupMenu* popup = new TQPopupMenu; if ( mCurrentContextMenuItem->node()->nodeId() > 2 && - mCurrentContextMenuItem->node()->typeString() != "Multipart" ) { + mCurrentContextMenuItem->node()->typeString() != "Multipart" || + mCurrentContextMenuItem->node()->subTypeString() == "HTML" ) { popup->insertItem( SmallIcon("document-open"), i18n("to open", "Open"), this, TQ_SLOT(slotOpen()) ); popup->insertItem( i18n("Open With..."), this, TQ_SLOT(slotOpenWith()) ); popup->insertItem( i18n("to view something", "View"), this, TQ_SLOT(slotView()) ); -- cgit v1.2.3