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 ms9.migadu.com with LMTPS id iOD8NdouWWRNWgEASxT56A (envelope-from ) for ; Mon, 08 May 2023 19:18:19 +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 EkUkNdouWWS4hQEAG6o9tA (envelope-from ) for ; Mon, 08 May 2023 19:18:18 +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 4B22B3BEA7 for ; Mon, 8 May 2023 19:18:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pw4Uy-0005h0-Ue; Mon, 08 May 2023 13:18:08 -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 1pw4Uu-0005gg-BA for bug-guix@gnu.org; Mon, 08 May 2023 13:18:07 -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 1pw4Uu-00025T-2m for bug-guix@gnu.org; Mon, 08 May 2023 13:18:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pw4Us-0006WZ-DU; Mon, 08 May 2023 13:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63378: A single X-Debbugs-CC header must be used Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: arunisaac@systemreboot.net, rekado@elephly.net, bug-guix@gnu.org Resent-Date: Mon, 08 May 2023 17:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63378 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 63378@debbugs.gnu.org Cc: arunisaac@systemreboot.net, Ricardo Wurmus X-Debbugs-Original-To: bug-guix X-Debbugs-Original-Xcc: arunisaac@systemreboot.net, Ricardo Wurmus Received: via spool by submit@debbugs.gnu.org id=B.168356627925067 (code B ref -1); Mon, 08 May 2023 17:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 May 2023 17:17:59 +0000 Received: from localhost ([127.0.0.1]:41481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pw4Uo-0006WE-Ma for submit@debbugs.gnu.org; Mon, 08 May 2023 13:17:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:48356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pw4Ud-0006Vw-4r for submit@debbugs.gnu.org; Mon, 08 May 2023 13:17:57 -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 1pw4Ub-0005ct-VV for bug-guix@gnu.org; Mon, 08 May 2023 13:17:46 -0400 Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pw4Ua-00021n-D9 for bug-guix@gnu.org; Mon, 08 May 2023 13:17:45 -0400 Received: by mail-qt1-x832.google.com with SMTP id d75a77b69052e-3ef33f12995so26226021cf.3 for ; Mon, 08 May 2023 10:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683566262; x=1686158262; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=UZkOFuKJUP7cFOfOzCOZCCEPRr33DG02C5cTT3JDo3E=; b=DSTbChoF7vomcu2Qe7gubMCy2sXSZJIFcZiW/NHtsWd+n3+wWfvQUetoS4exsU5Ow4 uKXht4OwnoZD2je1Yg+5qXNiKPvVLh8qO4bD8qzOmbvRTCVaXq6egbRGl5H8obUNyUTM 7/LkV4QVREnaWtK66zYbaFSqg+m9Yssc9LsIzPV3qg49FoO/m0zH1MtU5fJdufFAOR6P 3UyIEhdk3CyCEiw+aAtMJMDOjJTKr7C6nHv1MJKFT6wd62jPTIXc3CGEUdnCJ5VovWRt 9+Iwg9HaND0+INy2qatyBHR/zEBbD3YtuhIhxqNYwR1G2HKPd9eeynhCGAmGuCXzZNoz 6tig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683566262; x=1686158262; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=UZkOFuKJUP7cFOfOzCOZCCEPRr33DG02C5cTT3JDo3E=; b=YHme3S+kbgwr5M84NE/HAxSREoXQKGZVJuc5vRcmHDA/JSILIMXrKCep4KHkm1XkB6 ZsgZkNr+dlHXHuP0c4cxgRj3tSUSTAKIvMLS4+xVz29Jo9sUmGF0lBkQWqxkQLb5kPFc ScrAkGg14/t5zLwS6vlSaXQ6KFc5tJOKDaYesos9E9zXgaubb3AzVyQmjNZf6zYvcgyB FQg+vZHlDBvKbcACrEiWrP/ZZrLyF8Rj1uO2ma4fkd6kPybX+g4JMarbMVrqGk+Vq9hJ Y3d6eG4BDzH+AD2UqDmd6o2hPZvtz10e/vOtvqKobz0MDCOA9kcw72Gp2qfCALBwnvCu jcpg== X-Gm-Message-State: AC+VfDwQZQzVTeHIlw/vgNJE7e3isoLQLe3gf2QhsdS0KrYsdxwWv06t j9rfjLX05VwsymXJcRroWjGdC9Uu5JH/PQ== X-Google-Smtp-Source: ACHHUZ61t0idyF8a8Oa9RvL/qCp1pYHxMr+viFkYubUPnfk8RRteuzvsXXqPh9vnSwnAluarU3Ghuw== X-Received: by 2002:a05:622a:1046:b0:3ef:5743:ac3d with SMTP id f6-20020a05622a104600b003ef5743ac3dmr18371571qte.5.1683566261836; Mon, 08 May 2023 10:17:41 -0700 (PDT) Received: from hurd (dsl-10-131-119.b2b2c.ca. [72.10.131.119]) by smtp.gmail.com with ESMTPSA id q29-20020ac8411d000000b003f1f26bbb50sm1840965qtl.35.2023.05.08.10.17.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 10:17:41 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 08 May 2023 13:17:40 -0400 Message-ID: <875y92vj2j.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::832; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x832.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683566298; a=rsa-sha256; cv=none; b=bpW1yfk4YMRnffEsSRAR04UsgGvRg9k+LhCky1Wn5yudHBs2mqJ9X9ox4ux1fMQi1opGd+ f2J88rpOgVmFkyfMDqMUT9iSUHZV251F7Z/oK7Ie5nF+878Xjv35+T+AsAbkOcsUTRD6gv WkCPI8tyvOxIapVT8eOC7miOfg8oN139YWm4ZzhdImVx7enp52v1bpgc1/a/ibsZic9GG4 o7qTJufGQIWFZeH4vW2gnMTGRvWrqb8k/Wqsb5eVd3cpNOkxFHyuzzZMVbKj5HJ+ehoYwv hFjtqCWD0j59t5PYsAOK2KMgS3bLeFA5frOV8zgFHsFt/9uto0jcNM/mBbRaxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=DSTbChoF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683566298; 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:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=UZkOFuKJUP7cFOfOzCOZCCEPRr33DG02C5cTT3JDo3E=; b=NG+U35mlHjoUByL0TjOfuY6i/lEKfMZHimPBScxrO0rUqZrXRhiJ3EO3RYPFmOT539v8PA vx+Q5PC8E6kgCPOtKf8pzpPDmAO32Fpv7vrGfPZ7LqvYdYAc7csVnVRF3iH0aDsm30+e7X W9IkU4ia/pOjWkHZl6pRhHQns/1MH9G5a1qlbcWLZu8Xgo+4wKB0Spr6tpX//cK7yFwWSM pq7yYGHCeyoQI+KyocEBHmHYB1MAmk3bT8C0OFarH95oiD4TNHD8j2xd1tj0QTN1nrZcq4 aEif3uiCSP696lOsjABXqdbBo4+AoF0lG05TbTX0sTK4sON3vCjwbaV2Ho07xQ== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=DSTbChoF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.11 X-Spam-Score: 7.11 X-Migadu-Queue-Id: 4B22B3BEA7 X-TUID: LSXIAM4ZJwez Hi, After some tests, it appears that a single X-Debbugs-CC header must be used, otherwise the last one is the one that prevails. This matches my reading of the 'process' script of the GNU Debbugs instance [0], and thus must conform to the same email rules outlined in RFC5322 for the To or CC fields (only one such header must be used); multiple values can be separated by a comma. [1] --8<---------------cut here---------------start------------->8--- my %header; for my $hdr (@headerlines) { $hdr = decode_rfc1522($hdr); $_ = $hdr; s/\n\s/ /g; &finish if m/^x-loop: (\S+)$/i && $1 eq "$gMaintainerEmail"; my $ins = !m/^subject:/i && !m/^reply-to:/i && !m/^return-path:/i && !m/^From / && !m/^X-Debbugs-/i && !m/^cc:/i && !m/^to:/i; $fwd .= $hdr."\n" if $ins; # print DEBUG ">$_<\n"; if (s/^(\S+):\s*//) { my $v = lc $1; print DEBUG ">$v=$_<\n"; ## There may be multiple To: or Cc: headers (see bug#5996). if ( ($v eq 'to' || $v eq 'cc') && defined $header{$v} && length($header{$v}) ) { $header{$v} = $header{$v} . ', ' . $_ if length($_); } else { $header{$v} = $_; } } else { print DEBUG "!>$_<\n"; } } $header{'message-id'} = '' if not defined $header{'message-id'}; --8<---------------cut here---------------end--------------->8--- Only 'to' or 'cc' multiple headers are coalesced into one; otherwise the $header specific key (for a given header) is overridden to the last value encountered at line '$header{$v} = $_;', IIUC. Our teams.scm script should be adjusted to produce a single X-Debbugs-CC header with comma-separated values. [0] https://gitlab.com/npostavs/debbugs/-/blob/gnu-reconstruction/scripts/process#L171 [1] https://datatracker.ietf.org/doc/rfc5322/, 3.6 Field Definitions -- Thanks, Maxim