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 065BE431FC3
\r
6 for <notmuch@notmuchmail.org>; Mon, 27 Oct 2014 07:51:20 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 iKHkczHLTrTp for <notmuch@notmuchmail.org>;
\r
16 Mon, 27 Oct 2014 07:51:14 -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 8F883431FDC
\r
19 for <notmuch@notmuchmail.org>; Mon, 27 Oct 2014 07:51:14 -0700 (PDT)
\r
20 Received: from localhost (unknown [192.168.200.7])
\r
21 by max.feld.cvut.cz (Postfix) with ESMTP id 6FA035CCF92
\r
22 for <notmuch@notmuchmail.org>; Mon, 27 Oct 2014 15:51:12 +0100 (CET)
\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 8Ktvdcra6lOl for <notmuch@notmuchmail.org>;
\r
27 Mon, 27 Oct 2014 15:51:08 +0100 (CET)
\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 9A6055CCF98
\r
30 for <notmuch@notmuchmail.org>; Mon, 27 Oct 2014 15:51:07 +0100 (CET)
\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 1XildT-0000oQ-F2; Mon, 27 Oct 2014 15:51:07 +0100
\r
34 From: Michal Sojka <sojkam1@fel.cvut.cz>
\r
35 To: notmuch@notmuchmail.org
\r
36 Subject: [PATCH v4 0/6] notmuch search --output=sender/recipients
\r
37 Date: Mon, 27 Oct 2014 15:50:49 +0100
\r
38 Message-Id: <1414421455-3037-1-git-send-email-sojkam1@fel.cvut.cz>
\r
39 X-Mailer: git-send-email 2.1.1
\r
40 X-BeenThere: notmuch@notmuchmail.org
\r
41 X-Mailman-Version: 2.1.13
\r
43 List-Id: "Use and development of the notmuch mail system."
\r
44 <notmuch.notmuchmail.org>
\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
48 List-Post: <mailto:notmuch@notmuchmail.org>
\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
52 X-List-Received-Date: Mon, 27 Oct 2014 14:51:20 -0000
\r
56 this is v4 of the search --output=address series. It obsoletes v3 that
\r
57 starts at id:1413150093-8383-1-git-send-email-sojkam1@fel.cvut.cz.
\r
59 It addresses most comments made by Mark Walters and others. In
\r
60 addition to v3, it also implements new --output=count (also suggested
\r
61 by Mark). This required changes even in the initial patches of the
\r
62 series but the result is cleaner code.
\r
64 Detailed changes from v3:
\r
66 - `o' renamed to `opt'.
\r
67 - Conversion of --output from keyword to keyword-flags is now a
\r
69 - Structured output formats print name and address separately.
\r
70 - Added test for --format=json.
\r
71 - Changed --filter-by default to nameaddr. In v2, the default was
\r
72 addrfold, in v3 the default was no filtering at all. I believe that
\r
73 Mark's suggestion to make nameaddr the default is good trade off.
\r
74 - Added new --output=count
\r
77 - There is no way to output unfiltered (duplicite) addresses.
\r
78 Hopefully, the introduction of --output=count is sufficient
\r
79 replacement for this "feature".
\r
86 cli: Add support for parsing keyword-flag arguments
\r
89 cli: search: Refactor passing of command line options
\r
90 cli: search: Convert --output to keyword-flag argument
\r
91 cli: search: Add --output={sender,recipients}
\r
92 cli: search: Add configurable way to filter out duplicate addresses
\r
93 cli: search: Add --output=count
\r
95 command-line-arguments.c | 6 +-
\r
96 command-line-arguments.h | 1 +
\r
97 completion/notmuch-completion.bash | 8 +-
\r
98 completion/notmuch-completion.zsh | 4 +-
\r
99 doc/man1/notmuch-search.rst | 65 ++++++-
\r
100 notmuch-search.c | 385 +++++++++++++++++++++++++++++--------
\r
101 test/T090-search-output.sh | 137 +++++++++++++
\r
102 test/T095-search-filter-by.sh | 64 ++++++
\r
103 test/T410-argument-parsing.sh | 3 +-
\r
104 test/arg-test.c | 9 +
\r
105 10 files changed, 600 insertions(+), 82 deletions(-)
\r
106 create mode 100755 test/T095-search-filter-by.sh
\r