From: Lars Ingebrigtsen Date: Mon, 29 Feb 2016 06:53:00 +0000 (+1100) Subject: Allow reading Gnus reports from an offline cache X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/cb5f690e4a383129895abf96256fd2c52feff618 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. --- diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index f42f798953..3de2609457 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el @@ -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)