Allow reading Gnus reports from an offline cache

* lisp/gnus/gnus-group.el (gnus-read-ephemeral-bug-group):
Allow reading bug reports from an offline cache directory.
This commit is contained in:
Lars Ingebrigtsen 2016-02-29 17:53:00 +11:00
parent 16efc8d53f
commit cb5f690e4a

View file

@ -2448,7 +2448,11 @@ the bug number, and browsing the URL must return mbox output."
(with-temp-file tmpfile
(mm-disable-multibyte)
(dolist (id ids)
(url-insert-file-contents (format mbox-url id)))
(let ((file (format "~/.emacs.d/debbugs-cache/%s" id)))
(if (and (not gnus-plugged)
(file-exists-p file))
(insert-file-contents file)
(url-insert-file-contents (format mbox-url id)))))
(goto-char (point-min))
;; Add the debbugs address so that we can respond to reports easily.
(while (re-search-forward "^To: " nil t)