[PATCH v1 0/3] Improve the display of matching/non-matching authors.
authorDavid Edmondson <dme@dme.org>
Fri, 24 Oct 2014 08:48:05 +0000 (09:48 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:05:34 +0000 (10:05 -0800)
26/d5f17c5de16cc8b6de516dfa50bf8c752bf472 [new file with mode: 0644]

diff --git a/26/d5f17c5de16cc8b6de516dfa50bf8c752bf472 b/26/d5f17c5de16cc8b6de516dfa50bf8c752bf472
new file mode 100644 (file)
index 0000000..a254eff
--- /dev/null
@@ -0,0 +1,98 @@
+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 2562C429E26\r
+       for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 01:48:22 -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 I13ZMjvzxfwl for <notmuch@notmuchmail.org>;\r
+       Fri, 24 Oct 2014 01:48:14 -0700 (PDT)\r
+Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com\r
+       [209.85.212.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 0B462431FBD\r
+       for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 01:48:13 -0700 (PDT)\r
+Received: by mail-wi0-f178.google.com with SMTP id q5so694209wiv.5\r
+       for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 01:48:12 -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=aL14++hJuZijPhojq8dXhfNkhpBRfDewiYhYipTcNkQ=;\r
+       b=Dr2orzaZtj4fJhi21t1M2fKMH37PThpZ4OtCRPGeOHtvH3zkZC5PqZWXanapyGBp2r\r
+       rIfPo+Vg24vL4aOqkct21NN7HnAlqtWOBAAFtaJiOlYzWoqOJIbSwFkyKTXm2tsorv1m\r
+       sX3kZfRRoW+ASrJesd1jGEOK2Zjh7zrmzz+5lGlu2riAV5BzzeR+8VMDLrVFerTk/UrH\r
+       UDeYGdJf3vRIkNyoWBn1tC6OSM265oBuEy7iOcmlmgngv9V2mUwBCseQjTAHgE2w87hG\r
+       5fo1hVnqjdiydSqZL3VIVO53Tq1Y7VjqLz+KBo39gW2mU5jiiNA/+/+2zzpccgCQZub3\r
+       rYGQ==\r
+X-Gm-Message-State:\r
+ ALoCoQkzs0JrRXih5XU32XlsbBKOM30TzgylWaCcmCu012LPvtDyNLU4A3HG6mNyfPgFVbpY2pUg\r
+X-Received: by 10.180.76.41 with SMTP id h9mr2657571wiw.40.1414140491041;\r
+       Fri, 24 Oct 2014 01:48:11 -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 ee3sm1250679wic.4.2014.10.24.01.48.10\r
+       for <notmuch@notmuchmail.org>\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+       Fri, 24 Oct 2014 01:48:10 -0700 (PDT)\r
+Received: from localhost (30000@localhost [local]);\r
+       by localhost (OpenSMTPD) with ESMTPA id 4d794312;\r
+       for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 08:48:08 +0000 (UTC)\r
+User-Agent: OpenSMTPD enqueuer (Demoostik)\r
+From: David Edmondson <dme@dme.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v1 0/3] Improve the display of matching/non-matching authors.\r
+Date: Fri, 24 Oct 2014 09:48:05 +0100\r
+Message-Id: <1414140488-29978-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 08:48:22 -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
+\r
+David Edmondson (3):\r
+  search: Seperately 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
+ lib/notmuch.h                | 34 +++++++++++++++++++++++\r
+ lib/thread.cc                | 60 ++++++++++++++++++++++++++++-------------\r
+ notmuch-search.c             |  6 +++++\r
+ test/T160-json.sh            |  4 +++\r
+ test/T170-sexp.sh            |  4 +--\r
+ test/T470-missing-headers.sh |  4 +++\r
+ 7 files changed, 127 insertions(+), 49 deletions(-)\r
+\r
+-- \r
+2.1.1\r
+\r