Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 25 / 77b7bad5f5b6c8ae28c45631026b5fa3fd52fa
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 E923A431FAE\r
6         for <notmuch@notmuchmail.org>; Mon, 22 Sep 2014 02:39:48 -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 yngT4UwdKOQv for <notmuch@notmuchmail.org>;\r
16         Mon, 22 Sep 2014 02:39:42 -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 8C50F431FC3\r
19         for <notmuch@notmuchmail.org>; Mon, 22 Sep 2014 02:39:29 -0700 (PDT)\r
20 Received: from localhost (unknown [192.168.200.7])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id 3C5793CFEA9;\r
22         Mon, 22 Sep 2014 11:39:26 +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)\r
27         with ESMTP id 4FBJj1k1da1M; Mon, 22 Sep 2014 11:39:22 +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 6A7B05CCE62;\r
30         Mon, 22 Sep 2014 11:39:22 +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 1XW05U-0001w0-Il; Mon, 22 Sep 2014 11:39:16 +0200\r
34 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
35 To: notmuch@notmuchmail.org\r
36 Subject: [PATCH 0/5] notmuch search --output=addresses\r
37 Date: Mon, 22 Sep 2014 11:37:54 +0200\r
38 Message-Id: <1411378679-7307-1-git-send-email-sojkam1@fel.cvut.cz>\r
39 X-Mailer: git-send-email 2.1.0\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: Mon, 22 Sep 2014 09:39:49 -0000\r
53 \r
54 Hello all,\r
55 \r
56 this patch series adds support for --output=addresses and similar\r
57 arguments in notmuch search. It is a reworked and extended version of\r
58 id:1410021689-15901-1-git-send-email-jani@nikula.org.\r
59 \r
60 Compared to Jani's patches, I do not use keyword-flag command line\r
61 parser for the --output option, because this would not be useful for\r
62 most but one combination of keywords. Instead, this one combination is\r
63 explicitely mentioned as another keyword.\r
64 \r
65 The flag command-line parser is introduced later, with (IMHO) better\r
66 syntax: --flags=one,two,... This feature is used to control address\r
67 deduplication via the --unique option.\r
68 \r
69 Other extensions are added documentation, tests and shell completions.\r
70 \r
71 The whole test suite passes with these patches.\r
72 \r
73 The functionality presented here will be useful for improving Emacs\r
74 address completion (id:1411150602-21892-1-git-send-email-sojkam1@fel.cvut.cz).\r
75 \r
76 Another nice use case is sending patched with git:\r
77 \r
78   git send-email --cc-cmd='nmsenders id:xxxx' ...\r
79 \r
80 where nmsenders script contains:\r
81 \r
82   notmuch search --output=sender $(notmuch search --output=threads $1)\r
83 \r
84 \r
85 \r
86 Michal Sojka (5):\r
87   cli: Refactor option passing in the search command\r
88   cli: Extend the search command for --output=addresses and similar\r
89   cli: Add support for parsing command line "flag" options\r
90   cli: Add configurable address deduplication for --output=addresses\r
91   cli: Add tests for 'search --output=addresses' and similar\r
92 \r
93  command-line-arguments.c           |  40 +++++\r
94  command-line-arguments.h           |   1 +\r
95  completion/notmuch-completion.bash |   8 +-\r
96  completion/notmuch-completion.zsh  |   4 +-\r
97  doc/man1/notmuch-search.rst        |  55 ++++++-\r
98  notmuch-search.c                   | 311 +++++++++++++++++++++++++++++--------\r
99  test/Makefile.local                |   2 +-\r
100  test/T090-search-output.sh         |  59 +++++++\r
101  test/T095-search-unique.sh         |  63 ++++++++\r
102  test/T410-argument-parsing.sh      |   3 +-\r
103  test/arg-test.c                    |   8 +\r
104  11 files changed, 482 insertions(+), 72 deletions(-)\r
105  create mode 100755 test/T095-search-unique.sh\r
106 \r
107 -- \r
108 2.1.0\r
109 \r