[PATCH v2 0/3] Improve the display of matching/non-matching authors.
authorDavid Edmondson <dme@dme.org>
Fri, 24 Oct 2014 17:44:00 +0000 (18:44 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:05:38 +0000 (10:05 -0800)
0a/739831e433357ae0a6fb2c4cb15af01b523664 [new file with mode: 0644]

diff --git a/0a/739831e433357ae0a6fb2c4cb15af01b523664 b/0a/739831e433357ae0a6fb2c4cb15af01b523664
new file mode 100644 (file)
index 0000000..70b7950
--- /dev/null
@@ -0,0 +1,103 @@
+Return-Path: <dme@dme.org>\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 78DBA431FD8\r
+       for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 10:44:14 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.699\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=0.001]\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 D3yqhBailyEW for <notmuch@notmuchmail.org>;\r
+       Fri, 24 Oct 2014 10:44:08 -0700 (PDT)\r
+Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com\r
+ [74.125.82.48])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 1C220431FBD   for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 10:44:07 -0700\r
+ (PDT)\r
+Received: by mail-wg0-f48.google.com with SMTP id k14so1600531wgh.7\r
+       for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 10:44:06 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:user-agent:from:to:subject:date:message-id;\r
+       bh=Y3082OgZeet+5MgUX+FAAWgPA20VnVqtqL7Sz32dt9Q=;\r
+       b=TxIfhm1yzI90ZYCFmwlV+7FEmaayr917leu6lGdw8Bq3Azjv8CgdlochvM4I8H2yws\r
+       AhfiIJBpyBT1zqA6fqhPCvmcYvMk1j9Lu6AGW24e/Ia6wkJH1AFsWG5kZ1zelTEVMVLX\r
+       LhB+ywuGhRI6guh1OFbWmzxQXYGekKN3e5QhFV2OR7eMhQR4bSQ14TLPomKuFBDpSKsB\r
+       lwuSLHm4BUYjcw5HbHIF6YbHrP82TjFadYZOVPbJpZUU35rCt3DB4+ZuBQJrhJg2re8G\r
+       YS5CvKPe9yY8CfvoICw8TvLz9/KZgQuo4uhPshfjOtZGIB12ls1VsYnfGE9UnfeYuZQZ\r
+       v7jQ==\r
+X-Gm-Message-State:\r
+ ALoCoQlPlEtCIAC1WiWw5/fJApHnmGwOXxZLnll4wN4lwyGYwAS+gvzca/OUZ1EdPVIYeO4HpROp\r
+X-Received: by 10.194.189.82 with SMTP id gg18mr4623208wjc.115.1414172646593; \r
+       Fri, 24 Oct 2014 10:44:06 -0700 (PDT)\r
+Received: from disaster-area.hh.sledj.net\r
+       ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
+       by mx.google.com with ESMTPSA id u8sm2718196wiz.14.2014.10.24.10.44.04\r
+       for <notmuch@notmuchmail.org>\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+       Fri, 24 Oct 2014 10:44:05 -0700 (PDT)\r
+Received: from localhost (30000@localhost [local]);\r
+       by localhost (OpenSMTPD) with ESMTPA id cf884ad2;\r
+       for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 17:44:03 +0000 (UTC)\r
+User-Agent: OpenSMTPD enqueuer (Demoostik)\r
+From: David Edmondson <dme@dme.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 0/3] Improve the display of matching/non-matching authors.\r
+Date: Fri, 24 Oct 2014 18:44:00 +0100\r
+Message-Id: <1414172643-28270-1-git-send-email-dme@dme.org>\r
+X-Mailer: git-send-email 2.1.1\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, 24 Oct 2014 17:44:14 -0000\r
+\r
+\r
+Improve the display of matching/non-matching authors.\r
+\r
+Distinguishing between matching and non-matching authors in the emacs\r
+interface is currently done by parsing the :authors attribute of a\r
+search result. If one of the authors uses the pipe symbol (|) in their\r
+'From' address this parsing incorrectly determines the matching and\r
+non-matching authors.\r
+\r
+Address this by adding explicit matching and non-matching authors\r
+attributes to the structured output formats.\r
+\r
+v2:\r
+- Return the matching/non-matching authors as a list.\r
+- More improvements to the code that renders the authors are possible\r
+  (to improve the chosen break between visible and invisible), but a\r
+  planned re-write of the `notmuch-search-result-format' code would\r
+  render that irrelevant.\r
+\r
+\r
+David Edmondson (3):\r
+  search: Separately report matching and non-matching authors.\r
+  emacs: Improved display of matching/non-matching authors.\r
+  test: Update tests for 'authors_matched' and authors_non_matched'.\r
+\r
+ emacs/notmuch.el             |  64 ++++++++++++++------------\r
+ notmuch-search.c             | 105 +++++++++++++++++++++++++++++++++++++++++++\r
+ test/T160-json.sh            |   9 ++++\r
+ test/T170-sexp.sh            |   4 +-\r
+ test/T470-missing-headers.sh |   8 ++++\r
+ 5 files changed, 159 insertions(+), 31 deletions(-)\r
+\r
+-- \r
+2.1.1\r
+\r