From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id eOy9CoELgmRcSgEASxT56A (envelope-from ) for ; Thu, 08 Jun 2023 19:10:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aCaZCoELgmQPZwEAauVa8A (envelope-from ) for ; Thu, 08 Jun 2023 19:10:25 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 00C861C25A for ; Thu, 8 Jun 2023 19:10:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7J9H-0000VM-Ib; Thu, 08 Jun 2023 13:10:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7J98-0000UB-Ae for guix-patches@gnu.org; Thu, 08 Jun 2023 13:10:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7J98-0005H9-1a for guix-patches@gnu.org; Thu, 08 Jun 2023 13:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7J97-0008F1-Ta for guix-patches@gnu.org; Thu, 08 Jun 2023 13:10:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63802] [mumi PATCH 2/3] client: Add git-send-email-headers subcommand. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 08 Jun 2023 17:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63802 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: 63802@debbugs.gnu.org Received: via spool by 63802-submit@debbugs.gnu.org id=B63802.168624419531663 (code B ref 63802); Thu, 08 Jun 2023 17:10:01 +0000 Received: (at 63802) by debbugs.gnu.org; 8 Jun 2023 17:09:55 +0000 Received: from localhost ([127.0.0.1]:57423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7J91-0008Ec-6d for submit@debbugs.gnu.org; Thu, 08 Jun 2023 13:09:55 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:39730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7J8w-0008EJ-HQ for 63802@debbugs.gnu.org; Thu, 08 Jun 2023 13:09:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=zyIlx+md5u5ldLPhZSoCJwlDifVTQlqtroGyEZn7y/I=; b=SbkynHek87+PFUYdZ/+b6+e3yY aWHDQYFyYXYv70iIVjMdyytQCUFXiycXl9k7c3N66EZEgYREgDxmasZnOBoaJuVrgx4T8QZ7gY3lE PvOFksJtsSQdZGrYDHinY8PcmyTlZtFVdlrsv250yp1bOnniTPDAFEYvP/UiVJFkY348DABTRaCnc GIayPl5LziQIWpY8Mnn8qwTlfXZdZrA/vmG86CkedCdIzxZnwflUzah7dqiXAin6hyj6uXgnTx0Up 7+Pgz7941vrvUq8+w0MU9dhUMXjUD7V+P2g/JnmdtuO8uPbafkzSnBnzJUANB6QDVdDVa20Jrq/EU C02Wy9RQ==; Received: from [192.168.2.1] (port=60304 helo=localhost) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1q7J8q-000UZA-1V; Thu, 08 Jun 2023 18:09:45 +0100 From: Arun Isaac In-Reply-To: <87ttvmd4hc.fsf@gmail.com> References: <20230530121447.26236-1-arunisaac@systemreboot.net> <20230530121447.26236-2-arunisaac@systemreboot.net> <87ttvmd4hc.fsf@gmail.com> Date: Thu, 08 Jun 2023 18:09:40 +0100 Message-ID: <877csd6fu3.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686244225; a=rsa-sha256; cv=none; b=sJyeQPoC/6m+aSFyeqE7Yhob8J/Z/WbX7TkdwDUXHWXWfZ/9lLkxnPwD3MKOCqVzho7PEX eOxtU0IvdJ7Ub03D2VvgKtUbVumO19lFSx9kYNrtl7Ftwk9LlZZYmLLkS6RTuXRcdTB6ke wngJEY/GIkOVo05d7Oj/pmyMKtyvOQd+XqShXGfMjXmDqdYHZtKinwB6ZISGZcJgQNf+Yz VSbLTk9SZx03rQr8paskd7zs70Gc7t46xn+gAEW18u7rH4/iLo8qN9OjP8uhF4bskVToZb 5Lj3h1QAkkLoWItqHOj51X1fier70jQbtZ/r7bACI8LhOHPc43d3gGcKkme/Qw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=SbkynHek; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686244225; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=zyIlx+md5u5ldLPhZSoCJwlDifVTQlqtroGyEZn7y/I=; b=O51psCCYR2ZP3/PVCfnpVogAoCMCynRhHp0nkAkLB81ujQp0RPwSB/CFa+SegvtsOrKhq9 O5cKZxsGkynzo325BBUJWgILwCLBSQ4MG4dd0O0D8PHSaxbWGyShiR/72cGd30zBih58lm NJzXMPqb2r2B2jIoszcNEt3LJxdK+AlYQFJsv2R5153JXkUOKcTpbX1Aq+3xNKFEIZu+gy heTHt+U4G/IntdoBtoA5nPBgYTIU5L1WWwPFwkURX3b1PWXUoOWoiqNIK1aU7FYoL7YEWc 8r1UqvkvDr6iimUyinwqhFNNj6O23scA3Not8uxO/fKQSEs2hMg9b1XTFhoTnA== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=SbkynHek; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.60 X-Spam-Score: -2.60 X-Migadu-Queue-Id: 00C861C25A X-TUID: JSLrlL6zzqNy > I find the or/if/and/or mix here a bit dense to parse. I think it'd be > a cleaner and easier to follow to process external-x-debbugs-cc and > x-debbug-cc into a list of values (potentially '()), merge then, > deduplicate them, and finally string-join them back before displaying > the combined value. Good point! I avoided splitting and joining due to the complexity of handling the escaping of commas in names. But, I have done it now, and it does make the code a lot clearer. Patches follow subsequently.