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 2BB946DE024A for ; Thu, 1 Jun 2017 02:28:08 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.952 X-Spam-Level: X-Spam-Status: No, score=0.952 tagged_above=-999 required=5 tests=[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 sUQ2p1r_pL62 for ; Thu, 1 Jun 2017 02:28:06 -0700 (PDT) X-Greylist: delayed 8401 seconds by postgrey-1.36 at arlo; Thu, 01 Jun 2017 02:28:06 PDT Received: from 10.mo173.mail-out.ovh.net (10.mo173.mail-out.ovh.net [46.105.74.148]) by arlo.cworth.org (Postfix) with ESMTPS id 14AD26DE0243 for ; Thu, 1 Jun 2017 02:28:06 -0700 (PDT) Received: from player778.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo173.mail-out.ovh.net (Postfix) with ESMTP id 031B551A04 for ; Thu, 1 Jun 2017 08:59:23 +0200 (CEST) Received: from localhost (lec67-5-82-244-34-175.fbx.proxad.net [82.244.34.175]) (Authenticated sender: contact@javascript-ninja.fr) by player778.ha.ovh.net (Postfix) with ESMTPSA id 7735818007A for ; Thu, 1 Jun 2017 08:59:23 +0200 (CEST) Date: Thu, 1 Jun 2017 08:59:17 +0200 From: Edgar Hipp To: notmuch@notmuchmail.org Subject: Show email adress in output of `notmuch search --format json` Message-ID: <20170601065917.tb7enmxklevslevt@fr-fadpc15.europe.altair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170306 (1.8.0) X-Ovh-Tracer-Id: 13495880712245233173 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeljedrgeekgdduudekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecufedttdenuc 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: Thu, 01 Jun 2017 09:28:08 -0000 Hello ! I'm building a tool that combines fzf (a fuzzy finder) and notmuch to find email more interactively. For that, it would be great if the --format=json would return not just the author name, but also the author email. I run : ``` notmuch search --format=json '*' | tail -1 ``` And get following output : ``` {"thread": "0000000000000b72", "timestamp": 1397639242, "date_relative": "2014-04-16", "matched": 1, "total": 1, "authors": "-a l'attention de contact-", "subject": "[SPAM] Lettre d'information", "query": ["id:SKT8635X-JCWL-FS8M-IDH7-WTK8XFCLCQ@idealcoursier.com", null], "tags": ["inbox"]}] ``` I would like to get the real email adress too : ``` {"thread": "0000000000000b72", "timestamp": 1397639242, "date_relative": "2014-04-16", "matched": 1, "total": 1, "authoremail": "contact@idealcoursier.com", "authors": "-a l'attention de contact-", "subject": "[SPAM] Lettre d'information", "query": ["id:SKT8635X-JCWL-FS8M-IDH7-WTK8XFCLCQ@idealcoursier.com", null], "tags": ["inbox"]}] ``` More generally, it would be great to have a configuration option to specify which fields you want, like how `git log --format=` works. What do you think ? Best, Edgar