[PATCH 5/5] emacs: make show set --exclude=flag
authorMark Walters <markwalters1009@gmail.com>
Thu, 15 Mar 2012 18:42:05 +0000 (18:42 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:32 +0000 (09:45 -0800)
ff/6593fa4de8a11084814adff22c173a9046dee5 [new file with mode: 0644]

diff --git a/ff/6593fa4de8a11084814adff22c173a9046dee5 b/ff/6593fa4de8a11084814adff22c173a9046dee5
new file mode 100644 (file)
index 0000000..10930f7
--- /dev/null
@@ -0,0 +1,94 @@
+Return-Path: <markwalters1009@gmail.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 10C39431E64\r
+       for <notmuch@notmuchmail.org>; Thu, 15 Mar 2012 11:42:42 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+       RCVD_IN_DNSWL_LOW=-0.7] 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 zYWy9hzCpprX for <notmuch@notmuchmail.org>;\r
+       Thu, 15 Mar 2012 11:42:41 -0700 (PDT)\r
+Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
+       [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id A606C429E35\r
+       for <notmuch@notmuchmail.org>; Thu, 15 Mar 2012 11:42:26 -0700 (PDT)\r
+Received: by mail-we0-f181.google.com with SMTP id m13so3528469wer.26\r
+       for <notmuch@notmuchmail.org>; Thu, 15 Mar 2012 11:42:26 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
+       bh=LB6yTV8BSzYPH/pQlFIb8n78YiXkbCdRmetlHa021oc=;\r
+       b=DIAptrWezKZtOlFeaCggQpxFeQmeRnCRs8IeWHGaG5JSbG9kfcsArm67b4aL7eBrg6\r
+       GBfs1GHWIkexvXCjnQxxGewvER87u04rEHC36C8FmEiUV8fMm6Rwl/GeQj8Ra+BodW9v\r
+       08+RZZ7DppzD12L4zW3sr32jCl6hUUg4pDrpH+B6DIitsVkPMXfFrBHUg8s+GmD0pxsM\r
+       bjmSofFrPV9KIE4rS4RagRVk0zv9m+VjQYoY2lQiPhf4bUf7RFr1fc+t+wWudlDjjR6J\r
+       bp/Ogf/ldKug3S5FyBwHEnfkSzpD10aGYWBKK9k5DzkIO889wsMY0y4PuhE1EEuNs3tW\r
+       Qemw==\r
+Received: by 10.180.102.129 with SMTP id fo1mr18106913wib.6.1331836946307;\r
+       Thu, 15 Mar 2012 11:42:26 -0700 (PDT)\r
+Received: from localhost (94-192-233-223.zone6.bethere.co.uk.\r
+ [94.192.233.223])     by mx.google.com with ESMTPS id\r
+ df3sm7082322wib.1.2012.03.15.11.42.24 (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Thu, 15 Mar 2012 11:42:25 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 5/5] emacs: make show set --exclude=flag\r
+Date: Thu, 15 Mar 2012 18:42:05 +0000\r
+Message-Id: <1331836925-31437-6-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1331836925-31437-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1331836925-31437-1-git-send-email-markwalters1009@gmail.com>\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: Thu, 15 Mar 2012 18:42:43 -0000\r
+\r
+Show has to set --exclude=flag to deal with cases where it is asked\r
+to show a single excluded message. It uses JSON so it can easily pass\r
+the exclude information to the user.\r
+---\r
+ emacs/notmuch-show.el |    6 ++++--\r
+ 1 files changed, 4 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index 4a60631..8ab2485 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -1099,13 +1099,15 @@ function is used."\r
+                      (append (list "\'") basic-args\r
+                              (list "and (" notmuch-show-query-context ")\'"))\r
+                    (append (list "\'") basic-args (list "\'")))))\r
+-      (notmuch-show-insert-forest (notmuch-query-get-threads args))\r
++      (notmuch-show-insert-forest (notmuch-query-get-threads\r
++                                   (append (list "--exclude=flag") args)))\r
+       ;; If the query context reduced the results to nothing, run\r
+       ;; the basic query.\r
+       (when (and (eq (buffer-size) 0)\r
+                  notmuch-show-query-context)\r
+         (notmuch-show-insert-forest\r
+-         (notmuch-query-get-threads basic-args))))\r
++         (notmuch-query-get-threads\r
++          (append (list "--exclude=flag") basic-args)))))\r
+ \r
+       (jit-lock-register #'notmuch-show-buttonise-links)\r
+ \r
+-- \r
+1.7.9.1\r
+\r