Function: gnus-agent-load-local

gnus-agent-load-local is a byte-compiled function defined in gnus-agent.el.gz.

Signature

(gnus-agent-load-local &optional METHOD)

Documentation

Load the METHOD'S local file.

The local file contains min/max article counts for each of the method's subscribed groups.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-agent.el.gz
(defun gnus-agent-load-local (&optional method)
  "Load the METHOD'S local file.
The local file contains min/max article counts for each of the
method's subscribed groups."
  (let ((gnus-command-method (or method gnus-command-method)))
    (when (or (null gnus-agent-article-local-times)
	      (zerop gnus-agent-article-local-times)
	      (not (gnus-methods-equal-p
		    gnus-command-method
		    (gethash "+method" gnus-agent-article-local))))
      (setq gnus-agent-article-local
	    (gnus-cache-file-contents
	     (gnus-agent-lib-file "local")
	     'gnus-agent-file-loading-local
	     #'gnus-agent-read-and-cache-local))
      (when gnus-agent-article-local-times
        (incf gnus-agent-article-local-times)))
    gnus-agent-article-local))