Re: [PATCH v2 0/3] Allow emacs to toggle display of all parts including multipart
authorMark Walters <markwalters1009@gmail.com>
Mon, 3 Dec 2012 22:45:22 +0000 (22:45 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:51:24 +0000 (09:51 -0800)
56/ee6bc41f32e2259c3df60854c8a082364c2a35 [new file with mode: 0644]

diff --git a/56/ee6bc41f32e2259c3df60854c8a082364c2a35 b/56/ee6bc41f32e2259c3df60854c8a082364c2a35
new file mode 100644 (file)
index 0000000..a8ffa74
--- /dev/null
@@ -0,0 +1,126 @@
+Return-Path: <m.walters@qmul.ac.uk>\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 21279431FBC\r
+       for <notmuch@notmuchmail.org>; Mon,  3 Dec 2012 14:45:32 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.401\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.401 tagged_above=-999 required=5\r
+       tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
+       FREEMAIL_REPLY=2.499, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3]\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 d8fBa0nVKZdi for <notmuch@notmuchmail.org>;\r
+       Mon,  3 Dec 2012 14:45:31 -0800 (PST)\r
+Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 80A54431FAE\r
+       for <notmuch@notmuchmail.org>; Mon,  3 Dec 2012 14:45:31 -0800 (PST)\r
+Received: from smtp.qmul.ac.uk ([138.37.6.40])\r
+       by mail2.qmul.ac.uk with esmtp (Exim 4.71)\r
+       (envelope-from <m.walters@qmul.ac.uk>)\r
+       id 1TfelL-0000kO-Tc; Mon, 03 Dec 2012 22:45:20 +0000\r
+Received: from 93-97-24-31.zone5.bethere.co.uk ([93.97.24.31] helo=localhost)\r
+       by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69)\r
+       (envelope-from <m.walters@qmul.ac.uk>)\r
+       id 1TfelL-0004ky-Ki; Mon, 03 Dec 2012 22:45:19 +0000\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: Re: [PATCH v2 0/3] Allow emacs to toggle display of all parts\r
+       including multipart\r
+In-Reply-To: <1354496317-24564-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1354496317-24564-1-git-send-email-markwalters1009@gmail.com>\r
+User-Agent: Notmuch/0.14+81~g9730584 (http://notmuchmail.org) Emacs/23.4.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Mon, 03 Dec 2012 22:45:22 +0000\r
+Message-ID: <87zk1uvjp9.fsf@qmul.ac.uk>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Sender-Host-Address: 93.97.24.31\r
+X-QM-SPAM-Info: Sender has good ham record.  :)\r
+X-QM-Body-MD5: 47c21428a9b3ed77dfb2c7d06e543307 (of first 20000 bytes)\r
+X-SpamAssassin-Score: -1.1\r
+X-SpamAssassin-SpamBar: -\r
+X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
+       determine if it is\r
+       spam. We require at least 5.0 points to mark a message as spam.\r
+       This message scored -1.1 points.\r
+       Summary of the scoring: \r
+       * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\r
+       *      medium trust\r
+       *      [138.37.6.40 listed in list.dnswl.org]\r
+       * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
+       provider *      (markwalters1009[at]gmail.com)\r
+       *  1.0 FREEMAIL_REPLY From and body contain different freemails\r
+       *  0.2 AWL AWL: From: address is in the auto white-list\r
+X-QM-Scan-Virus: ClamAV says the message is clean\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: Mon, 03 Dec 2012 22:45:32 -0000\r
+\r
+\r
+Hi\r
+\r
+I now have a version which does this `right': using invisibility as with\r
+citations and signatures etc. It is working but I need to look through\r
+more carefully before posting.\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+On Mon, 03 Dec 2012, Mark Walters <markwalters1009@gmail.com> wrote:\r
+> This is rather more polished version of\r
+> id:1351152563-27277-1-git-send-email-markwalters1009@gmail.com.\r
+>\r
+> The first patch modifies the behaviour of show refresh buffer to keep\r
+> state more accurately where possible. It can never be perfect but it\r
+> makes a reasonable attempt. This is independent of patches 2 and 3.\r
+>\r
+> The second patch allows the user to toggle the visibility of any part\r
+> with 't' on the part button. It does this by storing a list of all\r
+> parts that the user has over-ruled.\r
+>\r
+> The final patch binds the toggle to the default action in cases where\r
+> the part has no filename. Is this a reasonable heuristic? And should\r
+> it be customisable? In all cases the defined actions (save, view,\r
+> other, and toggle) always do their action (ie they do not apply any\r
+> heuristics)\r
+>\r
+> Overall I am pleased with the way it works. The one caveat is that it\r
+> does redisplay the whole buffer when toggling the parts: it might be\r
+> nice to use invisibility but that is beyond my lisp. Moreover it could\r
+> be added at a later stage without changing the user experience.\r
+>\r
+>\r
+> Best wishes\r
+>\r
+> Mark\r
+>\r
+>\r
+> Mark Walters (3):\r
+>   emacs: show: make refresh fix point(ish)\r
+>   emacs: allow the user to toggle the visibility of\r
+>     multipart/alternative parts\r
+>   emacs: show make default part button toggle view when sensible\r
+>\r
+>  emacs/notmuch-show.el |   80 ++++++++++++++++++++++++++++++++++++++----------\r
+>  1 files changed, 63 insertions(+), 17 deletions(-)\r
+>\r
+> -- \r
+> 1.7.9.1\r