Subject: [PATCH] teams: Don't generate multiple X-Debbugs-Cc: headers.

From: Tobias Geerinckx-Rice <[email-masked]>
Date: Sun, 19 Feb 2023 01:00:08 +0100

Debbugs has never supported this: the documented way to CC multiple
people is to comma-separate their addresses in one single header line.

See <https://www.debian.org/Bugs/Reporting>, ‘Sending copies of bug
reports to other addresses’.

* etc/teams.scm.in (cc): Generate a single X-Debbugs-Cc header.

Reported by Ludovic Courtès <[email-masked]>
---
 etc/teams.scm.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/teams.scm.in b/etc/teams.scm.in
index ff913673e8..7dfe321ed9 100644
--- a/etc/teams.scm.in
+++ b/etc/teams.scm.in
@@ -569,7 +569,7 @@ (define (cc . teams)
   "Return arguments for `git send-email' to notify the members of the given
 TEAMS when a patch is received by Debbugs."
   (format #true
-          "~{--add-header=\"X-Debbugs-Cc: ~a\"~^ ~}"
+          "--add-header=\"X-Debbugs-Cc: ~{~a~^,~}\""
           (map person-email
                (delete-duplicates (append-map team-members teams) equal?))))

base-commit: 54bcdaa3b13650c6ed2478707f02b82175d1ea27
-- 
2.39.1