Gnus development mailing list
 help / color / mirror / Atom feed
* how to retry denied server?
@ 2003-11-18 14:47 Sam Steingold
  2003-11-18 15:16 ` Harry Putnam
  0 siblings, 1 reply; 2+ messages in thread
From: Sam Steingold @ 2003-11-18 14:47 UTC (permalink / raw)


If a connection to a server fails at some point (i.e., it is marked as
"denied" in `gnus-opened-servers' and *Server* buffer), there appears
to be no way to tell Gnus to try connecting again except for
hand-editing the value of `gnus-opened-servers':
(setf (second
       (assoc (gnus-server-to-method "...")
              gnus-opened-servers))
      'ok)
what is the right way to handle this?
(patch appended)
-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
My inferiority complex is not as good as yours.


--- gnus-int.el.~6.34.~	2003-07-09 12:00:07.000000000 -0400
+++ gnus-int.el	2003-11-18 09:47:29.083001900 -0500
@@ -195,10 +195,8 @@
     (setq gnus-command-method (gnus-server-to-method gnus-command-method)))
   (let ((elem (assoc gnus-command-method gnus-opened-servers)))
     ;; If this method was previously denied, we just return nil.
-    (if (eq (nth 1 elem) 'denied)
-	(progn
-	  (gnus-message 1 "Denied server")
-	  nil)
+    (when (eq (nth 1 elem) 'denied)
+      (gnus-message 1 "server was denied, retrying!"))
       ;; Open the server.
       (let ((result
 	     (condition-case err
@@ -245,7 +243,7 @@
                    (gnus-open-server gnus-command-method)))
                t)
               (t
-               result))))))
+             result)))))
 
 (defun gnus-close-server (gnus-command-method)
   "Close the connection to GNUS-COMMAND-METHOD."




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to retry denied server?
  2003-11-18 14:47 how to retry denied server? Sam Steingold
@ 2003-11-18 15:16 ` Harry Putnam
  0 siblings, 0 replies; 2+ messages in thread
From: Harry Putnam @ 2003-11-18 15:16 UTC (permalink / raw)


Sam Steingold <sds@gnu.org> writes:

> If a connection to a server fails at some point (i.e., it is marked as
> "denied" in `gnus-opened-servers' and *Server* buffer), there appears
> to be no way to tell Gnus to try connecting again except for
> hand-editing the value of `gnus-opened-servers':
> (setf (second
>        (assoc (gnus-server-to-method "...")
>               gnus-opened-servers))
>       'ok)
> what is the right way to handle this?
> (patch appended)

In server buffer press "C" (note uppercase) to close it then "O"
(uppercase)  to try to reopen it.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-18 15:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-18 14:47 how to retry denied server? Sam Steingold
2003-11-18 15:16 ` Harry Putnam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).