From: Lele Gaifax Date: Fri, 12 Dec 2014 09:16:14 +0000 (+0100) Subject: New "notmuch address" command X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fb0dc1e21c6f4cef86dfc305fe1bbe457cbaab18;p=notmuch-archives.git New "notmuch address" command --- diff --git a/f4/77d946a630bfc43b5e5be076c75493d4fb27a2 b/f4/77d946a630bfc43b5e5be076c75493d4fb27a2 new file mode 100644 index 000000000..af94eeea8 --- /dev/null +++ b/f4/77d946a630bfc43b5e5be076c75493d4fb27a2 @@ -0,0 +1,105 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 39224431FD5 + for ; Fri, 12 Dec 2014 01:16:35 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.165 +X-Spam-Level: +X-Spam-Status: No, score=0.165 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7, RCVD_NUMERIC_HELO=0.865] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id W-NS7ZmyXukM for ; + Fri, 12 Dec 2014 01:16:31 -0800 (PST) +Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) + (using TLSv1 with cipher AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 0AB38431FBF + for ; Fri, 12 Dec 2014 01:16:31 -0800 (PST) +Received: from list by plane.gmane.org with local (Exim 4.69) + (envelope-from ) id 1XzMKq-0007Ot-F8 + for notmuch@notmuchmail.org; Fri, 12 Dec 2014 10:16:28 +0100 +Received: from 151.62.31.98 ([151.62.31.98]) + by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) + id 1AlnuQ-0007hv-00 + for ; Fri, 12 Dec 2014 10:16:28 +0100 +Received: from lele by 151.62.31.98 with local (Gmexim 0.1 (Debian)) + id 1AlnuQ-0007hv-00 + for ; Fri, 12 Dec 2014 10:16:28 +0100 +X-Injected-Via-Gmane: http://gmane.org/ +To: notmuch@notmuchmail.org +From: Lele Gaifax +Subject: New "notmuch address" command +Date: Fri, 12 Dec 2014 10:16:14 +0100 +Organization: Nautilus Entertainments +Lines: 43 +Message-ID: <878uid9qjl.fsf@nautilus.nautilus> +Mime-Version: 1.0 +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: 8bit +X-Complaints-To: usenet@ger.gmane.org +X-Gmane-NNTP-Posting-Host: 151.62.31.98 +User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) +Cancel-Lock: sha1:tGcN9OIieLDWOsPfVu63FobcfQg= +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Fri, 12 Dec 2014 09:16:35 -0000 + +Hi all again, + +I'm happily using "notmuch-addrlookup"[1] as "notmuch-address-command", in +my Emacs configuration. + +As explained in my other message, yesterday I spent some time tweaking +that configuration and tried to replace it with the new "notmuch +address" introduced in version 0.19. + +An (almost) equivalent of "notmuch-addrlookup foo" could be "notmuch +address to:foo* OR from:foo*", but it has at least one indesiderable +difference: it seems considering the "CC" field, but always emits the +"TO" content (i.e., assuming I have a message I sent to "john@doe.com" +and CCed to "foo@bar.com", "notmuch address to:foo" emits +"john@doe.com", not "foo@bar.com") so the candidates it generates are +way too much. + +I don't know it that's done on purpose (I clearly miss the use case if +so). + +I wonder if it would be reasonable adding a "--complete" flag to the +"address" command that selects a more specific behaviour, so that +"notmuch address --complete foo": + +a) automatically performs a partial match (i.e. it adds the '*' suffix + on its own) + +b) searches the given text only in the related headers (hiding the + difference between "incoming" and "outgoing" messages, and not + considering the body at all) + +c) avoids the "bug"/"feature" explained above + +What do you think? + +Thank you, +ciao, lele. + +[1] https://github.com/aperezdc/notmuch-addrlookup-c +-- +nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri +real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. +lele@metapensiero.it | -- Fortunato Depero, 1929. +