From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gIvENNQahGLDZAAAbAwnHQ (envelope-from ) for ; Tue, 17 May 2022 23:59:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qHm+M9QahGJr6gAAG6o9tA (envelope-from ) for ; Tue, 17 May 2022 23:59:48 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 580503BC5E for ; Tue, 17 May 2022 23:59:48 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id F262D5F748; Tue, 17 May 2022 21:49:50 +0000 (UTC) Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by mail.notmuchmail.org (Postfix) with ESMTPS id 17EA85F5E2 for ; Tue, 17 May 2022 21:49:49 +0000 (UTC) Received: from fencepost.gnu.org ([2001:470:142:3::e]:43416) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nr54d-00024b-3G; Tue, 17 May 2022 17:49:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=0NtQ7IGuWYh7zlSL+1zeKIVYjvNeEk5d0j9hmedqqIU=; b=gn3D6LKuA7lkP14TgazD GLrZeDERc8hzvLwF+kEon0CHNSrVAgfkADxhG5GaoiyzXsuLTq2+AG5hvk7UWHGusvKYWVveQandj LrsCEki1xT5ARnD5ZL/2PTWK2medYumhtQ0d2icz68lt3hHeuUQ9RwYH8iNp9kgpv7ceyLbagfB5s tre2AXO/QC3RyXU4Dcv0M9zeP+E0uMvcUAROtwi7pWC7iBh6P6ew72fdzlE9Ki0gkcFDjTnXut5hB 5wiCcRfW1khJoBSw7TT+tY2WHTdK/KxQ3RgGQG9mtlnBk9e68/IYO+iIPhHFBND7n+dPdvyWd0ec4 gyIfcrr+M9ggVA==; Received: from cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net ([92.233.85.247]:39384 helo=rivendell.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nr54c-0007Dc-G4; Tue, 17 May 2022 17:49:46 -0400 Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id 9063544e; Tue, 17 May 2022 21:49:43 +0000 (UTC) From: Jose A Ortega Ruiz To: Tomi Ollila , notmuch@notmuchmail.org Subject: Re: [PATCH v2 1/1] emacs: notmuch-show-header-line: allow format strings and functions In-Reply-To: References: <20220516022039.551596-1-jao@gnu.org> <20220516022039.551596-2-jao@gnu.org> X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Date: Tue, 17 May 2022 22:49:43 +0100 Message-ID: <87y1yz7rt4.fsf@gnus.jao.io> MIME-Version: 1.0 Message-ID-Hash: D6UD533EL5OIDUJCFJV4EXI7BWAEUIKA X-Message-ID-Hash: D6UD533EL5OIDUJCFJV4EXI7BWAEUIKA X-MailFrom: jao@gnu.org 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; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652824788; 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-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=pXZ4L1HMvRpr0TRK+BaSDMJh/Z+3OoQ/fdv/+yvDuZk=; b=rsZvtNKwuIxOfiQg7IBg+Xs6vbFJV6ddgSvewH+9+hW4tbLmoeM4Lu9cRxGcXBqLgO1VZ1 j4FoLPgNNGD8VELldkcmCKYNgnmXiKAiJ/7SaiU/wEL30EYYaSAAxtv9g2xJzWNOjqjqwn UpQKgVT0RHgw/tkDDC8EnjcOFHvFmgCs76Hy99XJAeburN0O/Qc0GKxMAvm31Vy4hsCYXf geCPYbdIgBGXAypquUdMTCx/XpSpVNUh0NNi3okdvpnziSLzg48H4qz+5WtEFev8yc+zbT Wo+dA6OqRqy8ATTflsai6F6H+u6KAblH5qI9kNa28ScCZUhgehWIT8vOMkoOdQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652824788; a=rsa-sha256; cv=none; b=VQ1GrxJ/4RCwaXsX+ajW2aPd/w77fYCEvPpHDtGV0DQ/gHAU6iglqiS0Mz0rr7lgUtHmWI yqlI08j7BD/jLnl5sebe+ZbFepJ34mGzU5jWpvqZUTDBhCzNdXnPOE77ponrXYX4m00Tly osVmLezMTOBaksHWO5kf01qexkOncVoNzqc6pHL91yxa/wb8VAAtmf+0IWIpVn8GR63Kpm IbyH1PalSfVQRlUmia25fnhRtoPFqHludSOO/m0Ke0hQOU0OBRFk6kEV5L7LZsN7GxpziC ZdneQfz/XQ3jfnL54qQZJzCOEhTVXAJIr+faAoIFy7+8RaYlTlDkRg61QfAqAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gnu.org header.s=fencepost-gnu-org header.b=gn3D6LKu; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gnu.org (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 6.62 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gnu.org header.s=fencepost-gnu-org header.b=gn3D6LKu; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gnu.org (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 580503BC5E X-Spam-Score: 6.62 X-Migadu-Scanner: scn1.migadu.com X-TUID: UkUt8/9jT/bp On Tue, May 17 2022, Tomi Ollila wrote: [...] > Otherwise it looks good to me (took a bit to match cond CLAUSES...) perhaps it'd be bit clearer if i factor it out in a separate function that just does the bit of setting the header line format? cheers, jao -- Not far from the invention of fire must rank the invention of doubt. -Thomas Henry Huxley, biologist (1825-1895)