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 3CCD66DE0318 for ; Fri, 2 Jun 2017 04:56:31 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.177 X-Spam-Level: X-Spam-Status: No, score=0.177 tagged_above=-999 required=5 tests=[AWL=-0.775, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_SOFTFAIL=0.972] 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 7eblr_Jc8Iym for ; Fri, 2 Jun 2017 04:56:29 -0700 (PDT) X-Greylist: delayed 8399 seconds by postgrey-1.36 at arlo; Fri, 02 Jun 2017 04:56:29 PDT Received: from 11.mo6.mail-out.ovh.net (11.mo6.mail-out.ovh.net [188.165.38.119]) by arlo.cworth.org (Postfix) with ESMTPS id 37F056DE01EA for ; Fri, 2 Jun 2017 04:56:29 -0700 (PDT) Received: from player787.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo6.mail-out.ovh.net (Postfix) with ESMTP id 570ABE048F for ; Fri, 2 Jun 2017 11:30:36 +0200 (CEST) Received: from localhost (LStLambert-657-1-97-93.w90-63.abo.wanadoo.fr [90.63.216.93]) (Authenticated sender: contact@javascript-ninja.fr) by player787.ha.ovh.net (Postfix) with ESMTPSA id 424AA6000BC; Fri, 2 Jun 2017 11:30:35 +0200 (CEST) Date: Fri, 2 Jun 2017 11:30:35 +0200 From: Edgar Hipp To: David Edmondson Cc: notmuch@notmuchmail.org Subject: Re: Show email adress in output of `notmuch search --format json` Message-ID: <20170602093035.eadumb3nakttw2tx@fr-fadpc15.europe.altair.com> References: <20170601065917.tb7enmxklevslevt@fr-fadpc15.europe.altair.com> <20170602083503.vjakloikbse24prv@fr-fadpc15.europe.altair.com> <20170602092806.iv6n76nmkg4z33nc@fr-fadpc15.europe.altair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170602092806.iv6n76nmkg4z33nc@fr-fadpc15.europe.altair.com> User-Agent: NeoMutt/20170306 (1.8.0) X-Ovh-Tracer-Id: 3475653015264773794 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeljedrhedugddukecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecu X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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, 02 Jun 2017 11:56:31 -0000 On Fri, Jun 02, 2017 at 11:28:06AM +0200, Edgar Hipp wrote: > On Fri, Jun 02, 2017 at 10:08:30AM +0100, David Edmondson wrote: > > On Friday, 2017-06-02 at 10:35:03 +0200, Edgar Hipp wrote: > > > > > What I'm doing is basically > > > > > > notmuch search --format=json '*' | processing_program | fzf > > > > > > Which makes it possible to search trough messages interactively : fzf is > > > a fuzzy finder(see the gif on the page https://github.com/junegunn/fzf) > > > > > > What I would expect is to have the same format as show but for multiple > > > messages, (in my case for search). > > > > > > That's why I would find it interesting to be able to customize the > > > fields shown in search. > > > > Understood. There is no general ability to customise the fields today. > > > > Would: > > > > notmuch show --body=false --format=json "*" | other_processing | fzf > > > > let you achieve your goal? (The processing would have to change, of > > course.) > > > > In general, I wonder whether “search” or “show” for “*” will give you > > the performance you want if fzf waits for all of the input before > > allowing the user to start matching. > > > > For example, with 0.5 million messages in a database: > > > > % time notmuch search --format=json "*" > /dev/null > > notmuch search --format=json "*" > /dev/null 108.14s user 35.55s system 75% cpu 3:10.18 total > > % > > > > (Not a particularly fast machine, but all of the relevant stuff is on > > SSD.) > > > > If I had to wait 108 seconds to start matching it would be > > unusable. “show” will probably be slower. > > > > dme. > > -- > > You know your green from your red. > > It seems that my notmuch show does'nt show multiple outputs : > > $ notmuch --version > notmuch 0.24.1 > > $ notmuch show --body=false --format=json "*" | wc -l > 1 > > $ notmuch search --format=json "*" | wc -l > 3481 > > Thanks in advance, > > Edgar fzf starts as soon as one line is in stdin. I use it a lot for log searching , and also in real time. When I use my search command, I will probably first filter the results very grossly (to have less than 1000 mails to fuzzy find).