From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 29D836DE0EA6 for ; Wed, 19 Feb 2020 06:03:14 -0800 (PST) Authentication-Results: arlo.cworth.org; dkim=pass (2048-bit key; unprotected) header.d=orangeseeds.org header.i=@orangeseeds.org header.b="kluR6Eha"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.112 X-Spam-Level: X-Spam-Status: No, score=-0.112 tagged_above=-999 required=5 tests=[AWL=0.089, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bz-9o4CfYliL for ; Wed, 19 Feb 2020 06:03:13 -0800 (PST) X-Greylist: delayed 456 seconds by postgrey-1.36 at arlo; Wed, 19 Feb 2020 06:03:12 PST Received: from marcos.anarc.at (marcos.anarc.at [206.248.172.91]) by arlo.cworth.org (Postfix) with ESMTPS id B7F346DE0BF6 for ; Wed, 19 Feb 2020 06:03:12 -0800 (PST) Received: by marcos.anarc.at (Postfix, from userid 1000) id D20B210E0B8; Wed, 19 Feb 2020 08:55:32 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orangeseeds.org; s=marcos; t=1582120532; bh=Iz+evAFGgSevCT++9OBrDLu7PwDhiFOI1HOUcRqYAiQ=; h=From:To:Subject:In-Reply-To:References:Date:From; b=kluR6Eha/KzJNTmPOB9p7i1Q4yByXfCDnNNFECABX237y9ZBV0pA0gwSAIIplBdUh GGNhq1XZM7AECdoufn3H3O8CRTyYt8Tmk1rL/m9EhoHBbUrgxJa4tKkzKpk4uOSsNM Pa/yFlOZhj6tlG+If0OAAtB3kinJ0U1tyyRHe8dRR9vrmnTsMWzOCG1weN728eyXQi Gh7kpNGp5i8PkPNPnz7Mxvubb4fuqQKLGBPfG1mFnOHifU/+UgNQyOg/A/1Q2pzESM MTTSYSs4coxtiU1BzM8MuElLLYui4vzBxdBxfOauxOlOlYmmYlvRBRegilFkWTQQ3R TSKyVDAV5Pgcw== Received: by curie.anarc.at (Postfix, from userid 1000) id 11049123BC2; Wed, 19 Feb 2020 08:55:32 -0500 (EST) From: =?utf-8?Q?Antoine_Beaupr=C3=A9?= To: David Bremner , notmuch@notmuchmail.org Subject: Re: [aperezdc/notmuch-addrlookup-c] Possibility to upstream (#23) In-Reply-To: <87d0abtls2.fsf@tethera.net> References: <87d0abtls2.fsf@tethera.net> Date: Wed, 19 Feb 2020 08:55:32 -0500 Message-ID: <87r1yqy94b.fsf@curie.anarc.at> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Wed, 19 Feb 2020 14:03:14 -0000 On 2020-02-18 21:21:01, David Bremner wrote: > anarcat writes: > > >> One improvement we could *already* do with notmuch-address would be to enforce searching for to/from headers, which doesn't seem to be the case right now. I have a [wrapper script](https://gitlab.com/anarcat/scripts/-/blob/master/notmuch-address) where I do basically this: >> >> exec notmuch address from:"$*" >> >> I would love to be able to do `to:"$*"` here, but that gives the unexpected result of the `From` addresses instead of `To` in that search... And `--output=recipients` does not fix that at all... > > If you have a way to reproduce this (e.g. that works with the notmuch > test corpus, or at least doesn't depend on your mail), please let us > know. I can't really understand the problem from the description here, > so it's not likely to get fixed. > > PS this is not sent via github, as it's not about notmuch-addrlookup It's quite simple really. If I do: notmuch address to:anarcat I get all the email addresses that wrote *to* anarcat. In other words, notmuch-address seems to look only at the From header to extract emails it shows the user, regardless of the query provided. For example, right after you sent that email, the first result was: David Bremner .. because you were the last email address that sent me an email. Not sure I can work that out in a test case, but at least it should explain a bit more how that problem occurs... A. -- A developed country is not a place where the poor have cars. It's where the rich use public transportation. - Gustavo Petro