]> git.eshelyaron.com Git - emacs.git/commitdiff
Handle https url for debbugs mbox (Bug#28831)
authorNoam Postavsky <npostavs@gmail.com>
Fri, 20 Oct 2017 00:07:05 +0000 (20:07 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 21 Oct 2017 19:19:14 +0000 (15:19 -0400)
In 2017-09-13 "Prefer HTTPS to FTP and HTTP in documentation",
gnus-bug-group-download-format-alist was updated to use https for the
debbugs.gnu.org mbox links, but gnus-read-ephemeral-bug-group assumed
http links.
* lisp/gnus/gnus-group.el (gnus-read-ephemeral-bug-group): Use
url-parse functions to get the host name, instead of ad-hoc regexps.

lisp/gnus/gnus-group.el

index 985efe6272f98d41a7e65b3c0408f5f9d01134c7..4a41c495900f4ae789935a31dd76fa9fcf8f41cf 100644 (file)
@@ -2467,9 +2467,7 @@ the bug number, and browsing the URL must return mbox output."
        ;; Add the debbugs address so that we can respond to reports easily.
        (let ((address
               (format "%s@%s" (car ids)
-                      (replace-regexp-in-string
-                       "/.*$" ""
-                       (replace-regexp-in-string "^http://" "" mbox-url)))))
+                       (url-host (url-generic-parse-url mbox-url)))))
          (goto-char (point-min))
          (while (re-search-forward (concat "^" message-unix-mail-delimiter)
                                    nil t)