From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36598 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Tunelling nnimap through ssh shell (Was: nnimap-authinfo-file question) Date: 05 Jun 2001 23:55:28 +0200 Message-ID: References: <86n17v7pst.fsf@monsterisland.homonculus.net> <87elsyop3w.fsf_-_@balder.seapine.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035172156 9414 80.91.224.250 (21 Oct 2002 03:49:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:49:16 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 10680 invoked from network); 5 Jun 2001 21:55:55 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 5 Jun 2001 21:55:55 -0000 Original-Received: from marcy.cs.uni-dortmund.de (marcy.cs.uni-dortmund.de [129.217.20.159]) by waldorf.cs.uni-dortmund.de with ESMTP id XAA00269 for ; Tue, 5 Jun 2001 23:55:28 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id XAA21197; Tue, 5 Jun 2001 23:55:28 +0200 (MET DST) Original-Received: (from grossjoh@localhost) by lucy.cs.uni-dortmund.de (8.9.3/8.9.3/Debian 8.9.3-21) id XAA09351; Tue, 5 Jun 2001 23:55:28 +0200 X-Face: 6=pZ4hVbjN:C?j1$h/-bi4:F%*~B#Rxb$[0%!{5NK"dE:_QRAM]Dzl=$yMu%Rh4xCSm/#>! $n%@SHJ](KFJKL,uF\=G=bRJQC$ ?+Dlxu*pj.Z,-GK<~y7sd/l*PN\]>} (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "05 Jun 2001 23:51:27 +0200") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104 Original-Lines: 20 Xref: main.gmane.org gmane.emacs.gnus.general:36598 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36598 On 05 Jun 2001, Kai Gro=DFjohann wrote: > I'm not sure this is it, but I think so. Thoughts? Here's one thought: have imap.el memorize when was the last command sent to the server. And always before sending a command, look whether more than N seconds have passed since the last command. If so, suspect that the server might have timed out and send a no-op command. If the no-op command gets a reply soon, all is well. But if there is no timely reply to the no-op, assume the connection has been severed, close it and open a new one. How's that sound? (That's what I'm going to do for Tramp which has the same problem. But since I haven't done it yet, I don't know how it will go.) kai --=20 ~/.signature: No such file or directory