* gnus-start.el (gnus-clear-system): Added
authorKevin Greiner <kevin.greiner@compsol.cc>
Fri, 21 Nov 2003 15:55:44 +0000 (15:55 +0000)
committerKevin Greiner <kevin.greiner@compsol.cc>
Fri, 21 Nov 2003 15:55:44 +0000 (15:55 +0000)
gnus-agent-covered-methods to compensate for removing it from
gnus-variable-list.
(gnus-setup-news): Complete conversion of old
gnus-agent-covered-methods to new format so that secondary and
foreign servers can be correctly opened.

lisp/gnus-start.el

index 552de62..ce2076e 100644 (file)
@@ -33,6 +33,7 @@
 (require 'gnus-range)
 (require 'gnus-util)
 (autoload 'message-make-date "message")
+(autoload 'gnus-agent-read-servers-validate "gnus-agent")
 (eval-when-compile (require 'cl))
 
 (defcustom gnus-startup-file (nnheader-concat gnus-home-directory ".newsrc")
@@ -658,6 +659,7 @@ the first newsgroup."
   ;; Clear other internal variables.
   (setq gnus-list-of-killed-groups nil
        gnus-have-read-active-file nil
+        gnus-agent-covered-methods nil
        gnus-newsrc-alist nil
        gnus-newsrc-hashtb nil
        gnus-killed-list nil
@@ -952,6 +954,15 @@ If LEVEL is non-nil, the news will be set up at level LEVEL."
              (eq gnus-read-active-file 'some))
       (gnus-update-active-hashtb-from-killed))
 
+    ;; Validate agent covered methods now that gnus-server-alist has
+    ;; been initialized.
+    ;; NOTE: This is here for one purpose only.  By validating the
+    ;; agentized server's, it converts the old 5.10.3, and earlier,
+    ;; format to the current format.  That enables the agent code
+    ;; within gnus-read-active-file to function correctly.
+    (if gnus-agent
+        (gnus-agent-read-servers-validate))
+
     ;; Read the active file and create `gnus-active-hashtb'.
     ;; If `gnus-read-active-file' is nil, then we just create an empty
     ;; hash table.  The partial filling out of the hash table will be