From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 789C5429E3A for ; Fri, 16 Aug 2013 13:41:29 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k71jsdJUjTlt for ; Fri, 16 Aug 2013 13:41:23 -0700 (PDT) X-Greylist: delayed 1017 seconds by postgrey-1.32 at olra; Fri, 16 Aug 2013 13:41:23 PDT Received: from imarko.xen.prgmr.com (imarko.xen.prgmr.com [71.19.158.228]) by olra.theworths.org (Postfix) with ESMTP id 4EB2A431E82 for ; Fri, 16 Aug 2013 13:41:23 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=zsu.kismala.com) by imarko.xen.prgmr.com with esmtp (Exim 4.80.1) (envelope-from ) id 1VAQZL-0003b8-Ub for notmuch@notmuchmail.org; Fri, 16 Aug 2013 13:24:24 -0700 From: Istvan Marko To: notmuch@notmuchmail.org Subject: [PATCH] emacs: add buttons for all multipart/related parts Date: Fri, 16 Aug 2013 13:24:23 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Aug 2013 20:41:29 -0000 When text/html parts include images as multipart/related and the text/plain alternative is used these images can be completely hidden with no easy way to access them or even find out that they are there. Make notmuch-show-insert-part-multipart/related add buttons for all parts, the first one visible the rest hidden. --- emacs/notmuch-show.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 82b70ba..20844f0 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -621,6 +621,10 @@ message at DEPTH in the current thread." ;; Render the primary part. (notmuch-show-insert-bodypart msg (car inner-parts) depth) + ;; Add hidden buttons for the rest + (mapc (lambda (inner-part) + (notmuch-show-insert-bodypart msg inner-part depth t)) + (cdr inner-parts)) (when notmuch-show-indent-multipart (indent-rigidly start (point) 1))) -- 1.8.1.4 -- Istvan