Re: [PATCH v4 02/16] Move crypto.c into libutil
[notmuch-archives.git] / d1 / 716a5bcb99290ed004f988fa5afc3438bcf432
1 Return-Path: <tomi.ollila@iki.fi>\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 64A31429E3B\r
6         for <notmuch@notmuchmail.org>; Tue,  4 Nov 2014 12:19:09 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 1.103\r
10 X-Spam-Level: *\r
11 X-Spam-Status: No, score=1.103 tagged_above=-999 required=5\r
12         tests=[DATE_IN_PAST_06_12=1.103] 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 vku6xIQ8kwOW for <notmuch@notmuchmail.org>;\r
16         Tue,  4 Nov 2014 12:19:01 -0800 (PST)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id 2A891431FCF\r
19         for <notmuch@notmuchmail.org>; Tue,  4 Nov 2014 12:19:01 -0800 (PST)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id BA860100033;\r
22         Tue,  4 Nov 2014 11:40:04 +0200 (EET)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: David Bremner <david@tethera.net>, Michal Sojka <sojkam1@fel.cvut.cz>,\r
25         notmuch@notmuchmail.org\r
26 Subject: Re: [PATCH v2 06/10] cli: Introduce "notmuch address" command\r
27 In-Reply-To: <87d293mp9c.fsf@maritornes.cs.unb.ca>\r
28 References: <1415058622-21162-1-git-send-email-sojkam1@fel.cvut.cz>\r
29         <1415058622-21162-7-git-send-email-sojkam1@fel.cvut.cz>\r
30         <87d293mp9c.fsf@maritornes.cs.unb.ca>\r
31 User-Agent: Notmuch/0.18.2+169~g5bcdd1c (http://notmuchmail.org) Emacs/24.3.1\r
32         (x86_64-unknown-linux-gnu)\r
33 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
34         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
35         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
36 Date: Tue, 04 Nov 2014 11:40:04 +0200\r
37 Message-ID: <m261ev483v.fsf@guru.guru-group.fi>\r
38 MIME-Version: 1.0\r
39 Content-Type: text/plain\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: Tue, 04 Nov 2014 20:19:09 -0000\r
53 \r
54 On Tue, Nov 04 2014, David Bremner <david@tethera.net> wrote:\r
55 \r
56 > Michal Sojka <sojkam1@fel.cvut.cz> writes:\r
57 >\r
58 >> +{\r
59 >> +    local cur prev words cword split\r
60 >> +    _init_completion -s || return\r
61 >> +\r
62 >> +    $split &&\r
63 >> +    case "${prev}" in\r
64 >> +    --format)\r
65 >> +        COMPREPLY=( $( compgen -W "json sexp text text0" -- "${cur}" ) )\r
66 >> +        return\r
67 >> +        ;;\r
68 >> +    --output)\r
69 >> +        COMPREPLY=( $( compgen -W "sender recipients" -- "${cur}" ) )\r
70 >> +        return\r
71 >> +        ;;\r
72 >> +    --sort)\r
73 >> +        COMPREPLY=( $( compgen -W "newest-first oldest-first" -- "${cur}" ) )\r
74 >> +        return\r
75 >> +        ;;\r
76 >> +    --exclude)\r
77 >> +        COMPREPLY=( $( compgen -W "true false flag all" -- "${cur}" ) )\r
78 >> +        return\r
79 >> +        ;;\r
80 >> +    esac\r
81 >> +\r
82 >> +    ! $split &&\r
83 >> +    case "${cur}" in\r
84 >> +    -*)\r
85 >> +        local options="--format= --output= --sort= --exclude="\r
86 >> +        compopt -o nospace\r
87 >> +        COMPREPLY=( $(compgen -W "$options" -- ${cur}) )\r
88 >> +        ;;\r
89 >> +    *)\r
90 >> +        _notmuch_search_terms\r
91 >> +        ;;\r
92 >> +    esac\r
93 >> +}\r
94 >> +\r
95 >\r
96 > I am reminded that we have no tests for shell completion stuff, which\r
97 > seems pretty fragile.\r
98 \r
99 That is what users are for -- i.e. the completion testing monkies ! ;D\r
100 >\r
101 >> +\r
102 >> +    ``--format=``\ (**json**\ \|\ **sexp**\ \|\ **text**\ \|\ **text0**)\r
103 >> +        Presents the results in either JSON, S-Expressions, newline\r
104 >> +        character separated plain-text (default), or null character\r
105 >> +        separated plain-text (compatible with **xargs(1)** -0 option\r
106 >> +        where available).\r
107 >> +\r
108 >> +    ``--format-version=N``\r
109 >> +        Use the specified structured output format version. This is\r
110 >> +        intended for programs that invoke **notmuch(1)** internally. If\r
111 >> +        omitted, the latest supported version will be used.\r
112 >> +\r
113 >\r
114 >\r
115 > I wonder if at some point we should have a notmuch-output-formats.7 page.\r
116 >\r
117 >\r
118 >> +    ``--exclude=(true|false|all|flag)``\r
119 >> +        A message is called "excluded" if it matches at least one tag in\r
120 >> +        search.tag\_exclude that does not appear explicitly in the\r
121 >> +        search terms. This option specifies whether to omit excluded\r
122 >> +        messages in the search process.\r
123 >\r
124 > Similarly for excludes.  I'm ok with the duplication for now, and I can\r
125 > see an argument for not making the user chase references.\r
126 >\r
127 > _______________________________________________\r
128 > notmuch mailing list\r
129 > notmuch@notmuchmail.org\r
130 > http://notmuchmail.org/mailman/listinfo/notmuch\r