Function: gnus-agent-request-article
gnus-agent-request-article is an autoloaded and byte-compiled function
defined in gnus-agent.el.gz.
Signature
(gnus-agent-request-article ARTICLE GROUP)
Documentation
Retrieve ARTICLE in GROUP from the agent cache.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-agent.el.gz
(defun gnus-agent-request-article (article group)
"Retrieve ARTICLE in GROUP from the agent cache."
(when (and gnus-agent
(or gnus-agent-cache
(not gnus-plugged))
(numberp article))
(let* ((gnus-command-method (gnus-find-method-for-group group))
(file (gnus-agent-article-name (number-to-string article) group))
(buffer-read-only nil)
(file-name-coding-system nnmail-pathname-coding-system))
(when (and (file-exists-p file)
(> (file-attribute-size (file-attributes file)) 0))
(erase-buffer)
(gnus-kill-all-overlays)
(let ((coding-system-for-read gnus-cache-coding-system))
(insert-file-contents file))
t))))