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 38B896DE0EC6 for ; Sat, 16 Nov 2019 08:53:41 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.391 X-Spam-Level: X-Spam-Status: No, score=-0.391 tagged_above=-999 required=5 tests=[AWL=-0.190, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] 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 gGniYMTDO5ng for ; Sat, 16 Nov 2019 08:53:40 -0800 (PST) Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by arlo.cworth.org (Postfix) with ESMTPS id E69386DE0B72 for ; Sat, 16 Nov 2019 08:53:39 -0800 (PST) Received: by mail-lf1-f66.google.com with SMTP id l14so3743331lfh.10 for ; Sat, 16 Nov 2019 08:53:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=7OSru/ANOiLewsekkEYRYOYr7SbOBTSM1ndT7EMxnN0=; b=LW4nVYJa3T1tPEPd60NlbV455bRcpYsC1a42YNqblnpfyBD6Z6oE7BkbGjRJoww8Qm dMPAvIptpeXc8ZMauZmKtOYIY8Ms496XetoXIuTZDdWbAmsXdqzPpu6GfcCgriJ4qHrL Lhj1/5DXsrrTDYj+2nOKjplZlc7Qj5ibd3G0JHeZQktS4Zcde+CHCrwcAh77vhRAScJk L2xxfc0XsgqjkLsBADfqtkk2ynFM6VEhbNkfAlxBe2tpHnu0aW5eRsBYwycsEwPhuDrA 0XTvPAivaEhAne/HyQSC7RUqNKIlFn/mLtq4P8UsKhzwaOTSDaDjAVoG7ro+cyAkib1B GULA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=7OSru/ANOiLewsekkEYRYOYr7SbOBTSM1ndT7EMxnN0=; b=COGMTGEbPIuBKWQAWu1BCLmptVTQWSJxYB0qkxT82TArcA5jrd01QOZkyxaeOW1k8k bgbjKMjbVRP2pDOdfGDyJb83j1jDyUoD0pHO5V+4T3DiOwFl6FJvN2UaAVHe68DUFBik 6VUUmarcmQRlgzEtl2jAe1wKvOa9z5xgJCGE1rSypslRUi1BKbL+op/BmBBnCwEuOvom xeWzfng8RU6lQ8y2gCCz9BGzcgv+YyBlUXNh2Djr/uyf9ZQVaCdhkFQzwqfOmJ3yCMVE rwqu/Qj2kMEKS/iCwc1dGEHvMwEG7aBll/R7wQoRebjW9RTCIP8RfTnj7gMVIQBlHfxb 4T+w== X-Gm-Message-State: APjAAAWpaaoPN/wIbFvb3BVfBvLokv+jQpr/pG4QDdK7XXChyrDZkmT9 HlO3RDXMLQPPbc0V8DWOe44gxBVbdu0= X-Google-Smtp-Source: APXvYqwQ3AbMMN9YWKUJYSg4GECkZjoagnzfMgc/mPX05IKkLxCLyoYsERaNItkimYA3ZUB4Qb8mjA== X-Received: by 2002:a19:6a16:: with SMTP id u22mr11511301lfu.94.1573923217257; Sat, 16 Nov 2019 08:53:37 -0800 (PST) Received: from Johans-mbp-wifi.parin.ddns.net (h88-129-82-160.cust.a3fiber.se. [88.129.82.160]) by smtp.gmail.com with ESMTPSA id e10sm5704748ljp.23.2019.11.16.08.53.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Nov 2019 08:53:36 -0800 (PST) From: Johan Parin X-Google-Original-From: Johan Parin To: notmuch@notmuchmail.org Subject: Re: [PATCH] Display extra headers for emacs-mua - db config option References: <20191116162723.18343-1-johan.parin@gmail.com> Date: Sat, 16 Nov 2019 17:53:35 +0100 In-Reply-To: <20191116162723.18343-1-johan.parin@gmail.com> (Johan Parin's message of "Sat, 16 Nov 2019 17:27:23 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Sat, 16 Nov 2019 16:53:41 -0000 This is another version of my attempt to get configurability on extra headers to be displayed in the emacs MUA. It is a modification of a previous patch where the extra headers returned by notmuch-show were hard coded. In this version, the extra headers is configured by a database config option `show.extra_headers'. As I see it the advantage with this approach is: - It gives full flexibility to choose any extra header to be displayed. The required steps are two (1) configure `show.extra_headers' in the db and (2) set `notmuch-message-headers' as desired. - There is absolutely no performance concern. The change is also very simple, low impact. There is no API change (if that is considered a maintenance cost). If a decision would later be taken to have format_headers_sprinter return all headers, then users having adopted the configuration option would still have the same functionality, albeit with an unused db config entry. I think this patch is complete, I also added an update to the config man page. I guess this patch does not require updating the schemata (?) /Johan