Re: Filesystem functionality used by notmuch
[notmuch-archives.git] / fd / 2daac722933c413b8a0196733184b3f0c0a0a8
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 9BE6D429E26\r
6         for <notmuch@notmuchmail.org>; Thu, 30 Oct 2014 16:59:52 -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 tIkl28v2cwka for <notmuch@notmuchmail.org>;\r
16         Thu, 30 Oct 2014 16:59:44 -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 AFD05431FC2\r
19         for <notmuch@notmuchmail.org>; Thu, 30 Oct 2014 16:59:44 -0700 (PDT)\r
20 Received: from localhost (unknown [192.168.200.7])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id 10F4D5CCFFD\r
22         for <notmuch@notmuchmail.org>; Fri, 31 Oct 2014 00:59:44 +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 1gJ7QYMSdFgv for <notmuch@notmuchmail.org>;\r
27         Fri, 31 Oct 2014 00:59:40 +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 3C3DA5CCFF4\r
30         for <notmuch@notmuchmail.org>; Fri, 31 Oct 2014 00:59:40 +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 1Xjzcs-0005bD-Oi; Fri, 31 Oct 2014 00:59:34 +0100\r
34 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
35 To: notmuch@notmuchmail.org\r
36 Subject: [PATCH v5 0/7] notmuch search --output=sender/recipients\r
37 Date: Fri, 31 Oct 2014 00:59:26 +0100\r
38 Message-Id: <1414713573-21461-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
42 Precedence: list\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: Thu, 30 Oct 2014 23:59:52 -0000\r
53 \r
54 Hi all,\r
55 \r
56 this is v5 of the search --output=address series. It obsoletes v4\r
57 (id:1414421455-3037-1-git-send-email-sojkam1@fel.cvut.cz).\r
58 \r
59 I addresses comments from Mark and Tomi. Based on the comments to v4\r
60 and earlier versions, patches 1-4 should be ready for merging. Patch 5\r
61 is a non-controversial part of the controversial --filter-by patch and\r
62 could be probably merged after review.\r
63 \r
64 Patch 6 needs at least a review and patch 7 needs more discussion.\r
65 \r
66 Changes from v4:\r
67 \r
68 - patch changed to commit in commit messages\r
69 - opt->format changed to format\r
70 - Added comments to process_* functions\r
71 - duplicite changed to duplicate\r
72 - check_duplicate changed to is_duplicate\r
73 - Deduplication was split into two commits: basic deduplication\r
74   without a command line option and configurable deduplication with\r
75   --fiter-by.\r
76 \r
77 Changes from v3:\r
78 \r
79 - `o' renamed to `opt'.\r
80 - Conversion of --output from keyword to keyword-flags is now a\r
81   separate patch.\r
82 - Structured output formats print name and address separately.\r
83 - Added test for --format=json.\r
84 - Changed --filter-by default to nameaddr. In v2, the default was\r
85   addrfold, in v3 the default was no filtering at all. I believe that\r
86   Mark's suggestion to make nameaddr the default is good trade off.\r
87 - Added new --output=count\r
88 - Minor style fixes\r
89 - Few typos fixed\r
90 - There is no way to output unfiltered (duplicite) addresses.\r
91   Hopefully, the introduction of --output=count is sufficient\r
92   replacement for this "feature".\r
93 \r
94 Cheers,\r
95 -Michal\r
96 \r
97 \r
98 Jani Nikula (1):\r
99   cli: Add support for parsing keyword-flag arguments\r
100 \r
101 Michal Sojka (6):\r
102   cli: search: Refactor passing of command line options\r
103   cli: search: Convert --output to keyword-flag argument\r
104   cli: search: Add --output={sender,recipients}\r
105   cli: search: Do not output duplicate addresses\r
106   cli: search: Add --output=count\r
107   cli: search: Add --filter-by option to configure address filtering\r
108 \r
109  command-line-arguments.c           |   6 +-\r
110  command-line-arguments.h           |   1 +\r
111  completion/notmuch-completion.bash |   8 +-\r
112  completion/notmuch-completion.zsh  |   4 +-\r
113  doc/man1/notmuch-search.rst        |  66 ++++++-\r
114  notmuch-search.c                   | 388 +++++++++++++++++++++++++++++--------\r
115  test/T090-search-output.sh         | 137 +++++++++++++\r
116  test/T095-search-filter-by.sh      |  64 ++++++\r
117  test/T410-argument-parsing.sh      |   3 +-\r
118  test/arg-test.c                    |   9 +\r
119  10 files changed, 604 insertions(+), 82 deletions(-)\r
120  create mode 100755 test/T095-search-filter-by.sh\r
121 \r
122 -- \r
123 2.1.1\r
124 \r