From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YLt7E132hGLpeQAAbAwnHQ (envelope-from ) for ; Wed, 18 May 2022 15:36:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kN10E132hGLKhQEA9RJhRA (envelope-from ) for ; Wed, 18 May 2022 15:36:29 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 EEF9911DDB for ; Wed, 18 May 2022 15:36:28 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 50AB55F76B; Wed, 18 May 2022 13:36:26 +0000 (UTC) X-Greylist: delayed 61564 seconds by postgrey-1.36 at yantan; Wed, 18 May 2022 13:36:22 UTC Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by mail.notmuchmail.org (Postfix) with ESMTPS id EBE1D5F75B for ; Wed, 18 May 2022 13:36:22 +0000 (UTC) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 781B51B0025B; Wed, 18 May 2022 16:36:22 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1652880982; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4FtWqGOpB+EeRTFwh0Cs+/MK3voXHW6HtRUc1IMLlTc=; b=Gn9wyTS51pCJcctsv/jVf8aTmpT1W3tL2Ywfv2zuCjhF8buR4+cak9bvm/kQvB1b+X1Wg3 lEuBB3Fbt8+fJvRuk4X8RaJ8VMzLbEJhCsblQUyM3iyv7wK/5ybSIBvu/V8bOGNc56X7wm SxFZTk5e/118gbi7NDtNi62OR1rfOVmnJGAll/vjmNePZyWxzKnpuBS0187HJMSJn5LlLt vhoJcx9lbcxushzunk+HYnEhs1NrFDNawonlgxIQVc3VYYxTgdgYBx4UEQtNGEKWjnx5w8 stN6BfPxg69xS8TOGVGEtQPdrPOGwx4E1URa4iyQublcfHpbvqlSowvX/ZTtNQ== From: Tomi Ollila To: Jose A Ortega Ruiz , notmuch@notmuchmail.org Subject: Re: [PATCH v2 1/1] emacs: notmuch-show-header-line: allow format strings and functions In-Reply-To: <87y1yz7rt4.fsf@gnus.jao.io> References: <20220516022039.551596-1-jao@gnu.org> <20220516022039.551596-2-jao@gnu.org> <87y1yz7rt4.fsf@gnus.jao.io> User-Agent: Notmuch/0.36+7~g75125c5 (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1652880982; a=rsa-sha256; cv=none; b=EhGau+YENu0bFYNb6+zuF6oHjVJK9h2BTxjTIVNdw91J4XVsNKF48x5NacqMEyuvMPP3ha ZBT1EBGn8vklOit+UJBd3DAyZPNQqUIoaMgt2Tz72BR24mkuWV7ioYMNymgCEXVU8Eid8M fXlWZf+CLi+4UDc0oDsypCQofX682mFR5M31LZT/r0Y+wDkjOVXCxtDyUPa7tpU41hem/h /4FC/sROGxPp/as7529pjolhsd9yLx3LxwhTY0mRp+muhiehFwMrgpPOl60VYfI9d1a4+z ZAVUwnA4aWt0MI6z2iZk9a2zLZG7FcnLbj7YI6e2w86NyczhzXm/bScWguXkvw== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1652880982; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4FtWqGOpB+EeRTFwh0Cs+/MK3voXHW6HtRUc1IMLlTc=; b=S489il5eD4NXbZn+2JXT7a1vKcKMXhgzrF+hMVqrwL2VPfoWUKE/bF0cTqofx1fBtMhxVO GHZEOsX0dzow2sMLmT2ANpF+jSIZXCqbgu9AQENDmHZ4GEhJJ28RdQIGDbAyDojjIdV+9j /yHVlETJyZ8TMnVWBWOhOMRzH2eXMTs0rPxc83pNeSxtgHVPbTRbRPHedtKnBDB48ZpSfX nfEhTIOqP4YUG/rOQTCBQVMeZ0B1kN4Cclq1IdWLPW7Vvpq8sRUdiNme3QpdaStzYyLMDc xBi/VGLgRw1WShTBDgECARPFwnTd1GEfUYnSq7+WmoSu33aX7qn9yhPAGEJ4MQ== Message-ID-Hash: CNWJNMKMPIQJHEEWXMU3XSMDZCK5LTAK X-Message-ID-Hash: CNWJNMKMPIQJHEEWXMU3XSMDZCK5LTAK X-MailFrom: tomi.ollila@iki.fi 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652880989; 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=tkQI/wUfaBFhYmUhdSmscjo7q+Fcj1VACKj79Zbo+Uk=; b=cK1PzlF0E9f/sGNi1NDGt51E4cUZ+vNv7jkapZ6Bv/0me9bnETIDymhWEk8m/SipJcJgjD FU9lG0fDHqE4iPf2x5HKKkCN5HG5lDQ7kLtpNSCxMVnYqQyy6xCFvnxtv3k+ZlESI5IZJ0 M7wI8c+f915yGjh9SF91J+IH5AElCSLyiuqvJEciOhNPVAeB7gdzqaWztB4RGBGwCLcCAX XTF7KAIrg5k2EnNzOmFFtbiH8yw+438jwtzfUD0mFe1K7GWHs8KgUqTZ1/KobxqJam6cag AicaZVCd0ImzD6DR3X0ywMUh+CNB5qcB98xB/DJ79cH6RfFzOMmGGd6X3K/PWQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1652880989; a=rsa-sha256; cv=fail; b=NyUb8SPfu51lZSA0Gix19QCAxYLh7c+tk6fHcG1JSLY7E0I0KImT144S1sWDu6untoXH8p SoqwPDe4FPOI/owmS7DMgCXj4Qip/n8JZhJhS1Xh28sJ6Zm+8On0tIjUGTWN0/BOBcJOyH 3WfA7GhL+AsKcEz/t+P2oTVIEThhJkvZXjso5JZoeaYgCVWsqcz6RdTMoc7ZSV9iJQ2Wp3 Ao4sO4UmtBGM6Glcg2lzm39J6ygIqLGGvGfCoVjQtXMSLZUlhuZOexytx+shFJLlea2NfX jz96B9b8qT7bVysCrQDIxKZXtl1Ji84Kk88LV6sOk/uDVl6AZjvWfo3Afcf7bg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=Gn9wyTS5; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 1.94 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=Gn9wyTS5; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: EEF9911DDB X-Spam-Score: 1.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: cljDTDK0Ygam On Tue, May 17 2022, Jose A. Ortega Ruiz wrote: > 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? I thought something similar last night.... > > cheers, > jao > -- > Not far from the invention of fire must rank the invention of doubt. > -Thomas Henry Huxley, biologist (1825-1895)