From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4NPBOX2fK2ER1wAAgWs5BA (envelope-from ) for ; Sun, 29 Aug 2021 16:53:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id AFx9NX2fK2HteQAA1q6Kng (envelope-from ) for ; Sun, 29 Aug 2021 14:53:49 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9BCB3819C for ; Sun, 29 Aug 2021 16:53:49 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2B23B2005A; Sun, 29 Aug 2021 10:53:46 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 7014C20010 for ; Sun, 29 Aug 2021 10:53:43 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 50B4B5FD5C; Sun, 29 Aug 2021 10:53:43 -0400 (EDT) Received: (nullmailer pid 3894143 invoked by uid 1000); Sun, 29 Aug 2021 14:53:40 -0000 From: David Bremner To: Jose Antonio Ortega Ruiz , notmuch@notmuchmail.org Subject: Re: configurable summary line for notmuch search In-Reply-To: <87y28lb6jw.fsf@gnus.jao.io> References: <87eead1u6c.fsf@tethera.net> <87y28lb6jw.fsf@gnus.jao.io> Date: Sun, 29 Aug 2021 07:53:40 -0700 Message-ID: <87czpw7157.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: AL27ZCR2C4MJ7R74II3OIU7GOJIGOJST X-Message-ID-Hash: AL27ZCR2C4MJ7R74II3OIU7GOJIGOJST X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630248829; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=8ZtSs9rC4hbGsiM61jtqYO01uu8gGWDSIh308PJx3/s=; b=pnatiImGshGBIC50eiXHAtFweYVV3KTf1W1rAIWXt5aE9eTbz5DrrqglAK2E6QwK0iBur+ aS/e6RzYPlZ89S7ikutub2OeyPQWHbouReJl5ktEb05Ekq1q21G/fkbtg7YculygVKTZcb 2744TWWK3oo2K8SVPbQ0qLddGrXZZjIHtTC1trH8PEa8Wwi1eJlrGzvTC0ohC19zKBcqyU 2XE7Z3vR2jjiYRY5Nv+A0omDVt+LtWYnaw8sHru6m7XFqMoI7nHsNuBKYQ8GDyIULtkonl 4/5pvLNXaeeAjiJUz7ToyEMn4laqojd8xM2uioY3nxJ+dJzADSoXoEA9e16B4A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630248829; a=rsa-sha256; cv=none; b=QgXJ6HWOCefflt5Z6nK2VZ9HCxLs5OiLH5+KnsTLfNzH/y1rsaFDiHjkpp4DT/nk725xeX r3zl0L/2DBCioG6Tf389SBkUz7rnvbPN7HULenGekd/sTnunMfUjtl7Vuf2bQqMExplyFN C9ac+yl49nyTPNXh0syLstfQhDmCYMlt4B23wzEII6vWPlLZUcpNxm9rhhzKweAeoqpZws v8V9nGUaaiLnMjSpxI6AxtKxdIOYVFfGRNlFFE+7ODh/VhxQerH0/XVAf6tu6mhJvMYgX5 v/sK4h6zWj7/z5HIyY6OiBgEZb57GepI8a3eWODHjq5SLd6P63arJ+wUYIP0qQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.04 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 9BCB3819C X-Spam-Score: -2.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: rxToUdkR4rq1 Jose Antonio Ortega Ruiz writes: > On Sat, Aug 28 2021, David Bremner wrote: > >> I was idly thinking about how to provide custom summary formats for >> notmuch-search. I know this has been discussed a few times on IRC, but I >> can't remember the kind of things people were looking for. So if this a >> feature you're interested in, what specifically are you looking for? > > I actually have a patch in my queue that implements a form of this, in > two ways. By allowing the "field" to be a function that gets called with > the message property and returns a string, and by allowing the format > string to be a function that takes the value of the field and further > formats it. This is the relevant patch with simple examples in the > documentation: [snip] > what do you think? I was thinking of a facility available to command line users of notmuch-search. But if the main use case is in emacs, then it would almost certainly be easier to implement in elisp, assuming the information is available.