New "notmuch address" command
[notmuch-archives.git] / f4 / 77d946a630bfc43b5e5be076c75493d4fb27a2
1 Return-Path: <gmn-notmuch@m.gmane.org>\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 39224431FD5\r
6         for <notmuch@notmuchmail.org>; Fri, 12 Dec 2014 01:16:35 -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: 0.165\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.165 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7, RCVD_NUMERIC_HELO=0.865]\r
13         autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id W-NS7ZmyXukM for <notmuch@notmuchmail.org>;\r
17         Fri, 12 Dec 2014 01:16:31 -0800 (PST)\r
18 Received: from plane.gmane.org (plane.gmane.org [80.91.229.3])\r
19         (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 0AB38431FBF\r
22         for <notmuch@notmuchmail.org>; Fri, 12 Dec 2014 01:16:31 -0800 (PST)\r
23 Received: from list by plane.gmane.org with local (Exim 4.69)\r
24         (envelope-from <gmn-notmuch@m.gmane.org>) id 1XzMKq-0007Ot-F8\r
25         for notmuch@notmuchmail.org; Fri, 12 Dec 2014 10:16:28 +0100\r
26 Received: from 151.62.31.98 ([151.62.31.98])\r
27         by main.gmane.org with esmtp (Gmexim 0.1 (Debian))\r
28         id 1AlnuQ-0007hv-00\r
29         for <notmuch@notmuchmail.org>; Fri, 12 Dec 2014 10:16:28 +0100\r
30 Received: from lele by 151.62.31.98 with local (Gmexim 0.1 (Debian))\r
31         id 1AlnuQ-0007hv-00\r
32         for <notmuch@notmuchmail.org>; Fri, 12 Dec 2014 10:16:28 +0100\r
33 X-Injected-Via-Gmane: http://gmane.org/\r
34 To: notmuch@notmuchmail.org\r
35 From: Lele Gaifax <lele@metapensiero.it>\r
36 Subject: New "notmuch address" command\r
37 Date: Fri, 12 Dec 2014 10:16:14 +0100\r
38 Organization: Nautilus Entertainments\r
39 Lines: 43\r
40 Message-ID: <878uid9qjl.fsf@nautilus.nautilus>\r
41 Mime-Version: 1.0\r
42 Content-Type: text/plain; charset=utf-8\r
43 Content-Transfer-Encoding: 8bit\r
44 X-Complaints-To: usenet@ger.gmane.org\r
45 X-Gmane-NNTP-Posting-Host: 151.62.31.98\r
46 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)\r
47 Cancel-Lock: sha1:tGcN9OIieLDWOsPfVu63FobcfQg=\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.13\r
50 Precedence: list\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Fri, 12 Dec 2014 09:16:35 -0000\r
61 \r
62 Hi all again,\r
63 \r
64 I'm happily using "notmuch-addrlookup"[1] as "notmuch-address-command", in\r
65 my Emacs configuration.\r
66 \r
67 As explained in my other message, yesterday I spent some time tweaking\r
68 that configuration and tried to replace it with the new "notmuch\r
69 address" introduced in version 0.19.\r
70 \r
71 An (almost) equivalent of "notmuch-addrlookup foo" could be "notmuch\r
72 address to:foo* OR from:foo*", but it has at least one indesiderable\r
73 difference: it seems considering the "CC" field, but always emits the\r
74 "TO" content (i.e., assuming I have a message I sent to "john@doe.com"\r
75 and CCed to "foo@bar.com", "notmuch address to:foo" emits\r
76 "john@doe.com", not "foo@bar.com") so the candidates it generates are\r
77 way too much.\r
78 \r
79 I don't know it that's done on purpose (I clearly miss the use case if\r
80 so).\r
81 \r
82 I wonder if it would be reasonable adding a "--complete" flag to the\r
83 "address" command that selects a more specific behaviour, so that\r
84 "notmuch address --complete foo":\r
85 \r
86 a) automatically performs a partial match (i.e. it adds the '*' suffix\r
87    on its own)\r
88 \r
89 b) searches the given text only in the related headers (hiding the\r
90    difference between "incoming" and "outgoing" messages, and not\r
91    considering the body at all)\r
92 \r
93 c) avoids the "bug"/"feature" explained above\r
94 \r
95 What do you think?\r
96 \r
97 Thank you,\r
98 ciao, lele.\r
99 \r
100 [1] https://github.com/aperezdc/notmuch-addrlookup-c\r
101 -- \r
102 nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri\r
103 real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.\r
104 lele@metapensiero.it  |                 -- Fortunato Depero, 1929.\r
105 \r