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