[PATCH v3 0/4] notmuch search --output=sender/recipients
[notmuch-archives.git] / ff / d1c0354e95c0e7d31b53f2736206e60d21a13a
1 Return-Path: <sojkam1@fel.cvut.cz>\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 1526E431E84\r
6         for <notmuch@notmuchmail.org>; Sun, 12 Oct 2014 14:41:59 -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: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id UyocNQJk1gnc for <notmuch@notmuchmail.org>;\r
16         Sun, 12 Oct 2014 14:41:51 -0700 (PDT)\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
18         by olra.theworths.org (Postfix) with ESMTP id 1FD6E431FAE\r
19         for <notmuch@notmuchmail.org>; Sun, 12 Oct 2014 14:41:51 -0700 (PDT)\r
20 Received: from localhost (unknown [192.168.200.7])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id E01695CCF24\r
22         for <notmuch@notmuchmail.org>; Sun, 12 Oct 2014 23:41:49 +0200 (CEST)\r
23 X-Virus-Scanned: IMAP STYX AMAVIS\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])\r
25         by localhost (styx.feld.cvut.cz [192.168.200.7]) (amavisd-new,\r
26         port 10044) with ESMTP id GtsAi_AdO1FV for <notmuch@notmuchmail.org>;\r
27         Sun, 12 Oct 2014 23:41:46 +0200 (CEST)\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
29         by max.feld.cvut.cz (Postfix) with ESMTP id 463725CCF21\r
30         for <notmuch@notmuchmail.org>; Sun, 12 Oct 2014 23:41:45 +0200 (CEST)\r
31 Received: from wsh by steelpick.2x.cz with local (Exim 4.84)\r
32         (envelope-from <sojkam1@fel.cvut.cz>)\r
33         id 1XdQtb-0002C6-2r; Sun, 12 Oct 2014 23:41:43 +0200\r
34 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
35 To: notmuch@notmuchmail.org\r
36 Subject: [PATCH v3 0/4] notmuch search --output=sender/recipients\r
37 Date: Sun, 12 Oct 2014 23:41:29 +0200\r
38 Message-Id: <1413150093-8383-1-git-send-email-sojkam1@fel.cvut.cz>\r
39 X-Mailer: git-send-email 2.1.1\r
40 In-Reply-To: <87zjd51phx.fsf@steelpick.2x.cz>\r
41 References: <87zjd51phx.fsf@steelpick.2x.cz>\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Sun, 12 Oct 2014 21:41:59 -0000\r
55 \r
56 Hi,\r
57 \r
58 this is a third version of my adaptation of Jani's patch series adding\r
59 --output=sender/recipients and related arguments to notmuch search.\r
60 \r
61 The 1st patch is the same as in v2 (Marked as OK in\r
62 id:m24mvht4c4.fsf@guru.guru-group.fi).\r
63 \r
64 The 2nd patch is not changed as well, but in v2 it was patch 3/4.\r
65 \r
66 The 3rd patch is rewritten to use the "keyword flags" introduced in\r
67 patch 2 (requested by Tomi). The code is basically the same as in\r
68 id:1410021689-15901-1-git-send-email-jani@nikula.org, but tests are\r
69 added and shell completion is updated.\r
70 \r
71 Finally, last patch adds --filter-by option that allows one to filter\r
72 out duplicate addresses. This option was called --unique in v2 and the\r
73 the semantic is slightly different now. This resulted in simpler code.\r
74 The documentation was also reworked and is hopefully more\r
75 understandable now.\r
76 \r
77 -Michal\r
78 \r
79 \r
80 Jani Nikula (1):\r
81   cli: Add support for parsing multiple keyword arguments\r
82 \r
83 Michal Sojka (3):\r
84   cli: Refactor option passing in the search command\r
85   cli: Extend the search command for --output={sender,recipients}\r
86   cli: Add an option to filter our duplicate addresses\r
87 \r
88  command-line-arguments.c           |   6 +-\r
89  command-line-arguments.h           |   1 +\r
90  completion/notmuch-completion.bash |   8 +-\r
91  completion/notmuch-completion.zsh  |   4 +-\r
92  doc/man1/notmuch-search.rst        |  54 ++++++-\r
93  notmuch-search.c                   | 309 +++++++++++++++++++++++++++++--------\r
94  test/T090-search-output.sh         |  64 ++++++++\r
95  test/T095-search-filter-by.sh      |  55 +++++++\r
96  test/T410-argument-parsing.sh      |   3 +-\r
97  test/arg-test.c                    |   9 ++\r
98  10 files changed, 440 insertions(+), 73 deletions(-)\r
99  create mode 100755 test/T095-search-filter-by.sh\r
100 \r
101 -- \r
102 2.1.1\r
103 \r