* gnus.el (gnus-method-to-server): Add an optional parameter so the
authorReiner Steib <Reiner.Steib@gmx.de>
Wed, 28 Nov 2007 20:32:49 +0000 (20:32 +0000)
committerReiner Steib <Reiner.Steib@gmx.de>
Wed, 28 Nov 2007 20:32:49 +0000 (20:32 +0000)
commit45b6a0b12b2a982c66908683a23f60c8e8d8212f
treea31b267b6d1c1ceddc0c71a31768ff1c3d0523d3
parent84f7fa3b4e27fbbf0c3143741b6fe39e5e7b1287
* gnus.el (gnus-method-to-server): Add an optional parameter so the
caller can indicate whether the cache should be disregarded for this
call.  This way the result of the call is reproducible at all times and
can be considered a canonical server name for the supplied method.
(gnus-agent-method-p): Canonicalize server names by pushing their
method through `gnus-method-to-server' using the no-cache argument.

* gnus-srvr.el (gnus-server-insert-server-line): Call
`gnus-method-to-server' with `no-cache' argument.

* gnus-agent.el (gnus-agent-toggle-plugged): Don't call
gnus-agent-possibly-synchronize-flags as this should be called when the
server is actually being opened.
(gnus-agent-possibly-synchronize-flags)
(gnus-agent-possibly-synchronize-flags-server): Move check for the
flags file of an agentized server to the latter function.

* gnus-int.el (gnus-agent-possibly-synchronize-flags-server): Autoload.
(gnus-open-server): Call gnus-agent-possibly-synchronize-flags-server
after a connection has been established successfully.
lisp/ChangeLog
lisp/gnus-agent.el
lisp/gnus-int.el
lisp/gnus-srvr.el
lisp/gnus.el