[PATCH v1 0/3] Improve the display of matching/non-matching authors.
[notmuch-archives.git] / 26 / d5f17c5de16cc8b6de516dfa50bf8c752bf472
1 Return-Path: <dme@dme.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 2562C429E26\r
6         for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 01:48:22 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=0.001]\r
13         autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id I13ZMjvzxfwl for <notmuch@notmuchmail.org>;\r
17         Fri, 24 Oct 2014 01:48:14 -0700 (PDT)\r
18 Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com\r
19         [209.85.212.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 0B462431FBD\r
22         for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 01:48:13 -0700 (PDT)\r
23 Received: by mail-wi0-f178.google.com with SMTP id q5so694209wiv.5\r
24         for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 01:48:12 -0700 (PDT)\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=1e100.net; s=20130820;\r
27         h=x-gm-message-state:user-agent:from:to:subject:date:message-id;\r
28         bh=aL14++hJuZijPhojq8dXhfNkhpBRfDewiYhYipTcNkQ=;\r
29         b=Dr2orzaZtj4fJhi21t1M2fKMH37PThpZ4OtCRPGeOHtvH3zkZC5PqZWXanapyGBp2r\r
30         rIfPo+Vg24vL4aOqkct21NN7HnAlqtWOBAAFtaJiOlYzWoqOJIbSwFkyKTXm2tsorv1m\r
31         sX3kZfRRoW+ASrJesd1jGEOK2Zjh7zrmzz+5lGlu2riAV5BzzeR+8VMDLrVFerTk/UrH\r
32         UDeYGdJf3vRIkNyoWBn1tC6OSM265oBuEy7iOcmlmgngv9V2mUwBCseQjTAHgE2w87hG\r
33         5fo1hVnqjdiydSqZL3VIVO53Tq1Y7VjqLz+KBo39gW2mU5jiiNA/+/+2zzpccgCQZub3\r
34         rYGQ==\r
35 X-Gm-Message-State:\r
36  ALoCoQkzs0JrRXih5XU32XlsbBKOM30TzgylWaCcmCu012LPvtDyNLU4A3HG6mNyfPgFVbpY2pUg\r
37 X-Received: by 10.180.76.41 with SMTP id h9mr2657571wiw.40.1414140491041;\r
38         Fri, 24 Oct 2014 01:48:11 -0700 (PDT)\r
39 Received: from disaster-area.hh.sledj.net\r
40         ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
41         by mx.google.com with ESMTPSA id ee3sm1250679wic.4.2014.10.24.01.48.10\r
42         for <notmuch@notmuchmail.org>\r
43         (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
44         Fri, 24 Oct 2014 01:48:10 -0700 (PDT)\r
45 Received: from localhost (30000@localhost [local]);\r
46         by localhost (OpenSMTPD) with ESMTPA id 4d794312;\r
47         for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 08:48:08 +0000 (UTC)\r
48 User-Agent: OpenSMTPD enqueuer (Demoostik)\r
49 From: David Edmondson <dme@dme.org>\r
50 To: notmuch@notmuchmail.org\r
51 Subject: [PATCH v1 0/3] Improve the display of matching/non-matching authors.\r
52 Date: Fri, 24 Oct 2014 09:48:05 +0100\r
53 Message-Id: <1414140488-29978-1-git-send-email-dme@dme.org>\r
54 X-Mailer: git-send-email 2.1.1\r
55 X-BeenThere: notmuch@notmuchmail.org\r
56 X-Mailman-Version: 2.1.13\r
57 Precedence: list\r
58 List-Id: "Use and development of the notmuch mail system."\r
59         <notmuch.notmuchmail.org>\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
63 List-Post: <mailto:notmuch@notmuchmail.org>\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
67 X-List-Received-Date: Fri, 24 Oct 2014 08:48:22 -0000\r
68 \r
69 \r
70 Improve the display of matching/non-matching authors.\r
71 \r
72 Distinguishing between matching and non-matching authors in the emacs\r
73 interface is currently done by parsing the :authors attribute of a\r
74 search result. If one of the authors uses the pipe symbol (|) in their\r
75 'From' address this parsing incorrectly determines the matching and\r
76 non-matching authors.\r
77 \r
78 Address this by adding explicit matching and non-matching authors\r
79 attributes to the structured output formats.\r
80 \r
81 \r
82 David Edmondson (3):\r
83   search: Seperately report matching and non-matching authors.\r
84   emacs: Improved display of matching/non-matching authors.\r
85   test: Update tests for :authors_matched and :authors_non_matched.\r
86 \r
87  emacs/notmuch.el             | 64 ++++++++++++++++++++++++--------------------\r
88  lib/notmuch.h                | 34 +++++++++++++++++++++++\r
89  lib/thread.cc                | 60 ++++++++++++++++++++++++++++-------------\r
90  notmuch-search.c             |  6 +++++\r
91  test/T160-json.sh            |  4 +++\r
92  test/T170-sexp.sh            |  4 +--\r
93  test/T470-missing-headers.sh |  4 +++\r
94  7 files changed, 127 insertions(+), 49 deletions(-)\r
95 \r
96 -- \r
97 2.1.1\r
98 \r