]> git.eshelyaron.com Git - emacs.git/commitdiff
Re-fix Gcc header tokenization in Gnus
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 2 May 2022 09:37:35 +0000 (11:37 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 2 May 2022 09:37:35 +0000 (11:37 +0200)
* lisp/gnus/gnus-msg.el (gnus-inews-do-gcc): Split the Gcc header
on commas, but allow group names to contain spaces (bug#55217).

lisp/gnus/gnus-msg.el

index f6ae028a104550c312d80ba0342b7b602f6a87be..17a87134be0506616f9bd2a6b0a9e7dda756678e 100644 (file)
@@ -1571,8 +1571,9 @@ this is a reply."
        (when gcc
          (message-remove-header "gcc")
          (widen)
-         (setq groups (message-unquote-tokens
-                       (message-tokenize-header gcc ",\n\t")))
+         (setq groups (mapcar #'string-trim
+                               (message-unquote-tokens
+                               (message-tokenize-header gcc))))
          ;; Copy the article over to some group(s).
          (while (setq group (pop groups))
            (setq method (gnus-inews-group-method group))