From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61564 Path: news.gmane.org!not-for-mail From: Gregory Novak Newsgroups: gmane.emacs.gnus.general Subject: Gnus has trouble reconnecting to an IMAP server? Date: Thu, 15 Dec 2005 13:21:46 -0800 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134682156 16482 80.91.229.2 (15 Dec 2005 21:29:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2005 21:29:16 +0000 (UTC) Original-X-From: ding-owner+m10095@lists.math.uh.edu Thu Dec 15 22:29:16 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1En0az-0001CH-3P for ding-account@gmane.org; Thu, 15 Dec 2005 22:25:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1En0av-0000yO-00; Thu, 15 Dec 2005 15:24:57 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1En0Y1-0000yJ-00 for ding@lists.math.uh.edu; Thu, 15 Dec 2005 15:21:57 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1En0Xv-0002Ti-QN for ding@lists.math.uh.edu; Thu, 15 Dec 2005 15:21:57 -0600 Original-Received: from santo.ucolick.org ([128.114.23.204] helo=smtp.ucolick.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1En0Xu-0000xY-00 for ; Thu, 15 Dec 2005 22:21:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by smtp.ucolick.org (Postfix) with ESMTP id 4DD695D714 for ; Thu, 15 Dec 2005 13:21:48 -0800 (PST) Original-Received: from euterpe.local (69-12-135-116.dsl.static.sonic.net [69.12.135.116]) by smtp.ucolick.org (Postfix) with ESMTP id B4F3911406 for ; Thu, 15 Dec 2005 13:21:47 -0800 (PST) Original-To: gnus-devel User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61564 Archived-At: I posted this on help-gnu-emacs, but based on advice about where to ask Gnus questions, I'm reposting here. I apologize for any inconvenience. I use Gnus to read mail with the nnimap backend. I'm using Gnus version 5.11 and Emacs 21.4 and a version from CVS. Sometimes, if the connection to the imap server has been idle for too long, Gnus disconnects. It then seems to have a hard time reconnecting. If I hit 'g' in the *Group* buffer, after an inordinately long time (minutes) it will finally fail with an error, after which another 'g' reconnects without trouble. However, if I interrupt this process, Gnus is left in some kind of intermediate state where it can't talk to the imap server. It is sometimes necessary to kill all the Gnus buffers and restart Gnus (sometimes, even to do this twice when the restarted Gnus fails to successfully negotiate an Imap connection). I have several related questions: 1) Is it possible to have Gnus send trivial chatter to the Imap server every few minutes to keep the connection live? I've set up gnus-demon to check for new mail every 10 minutes, but I must have it do this synchronously because Emacs is seldom idle for a full minute. 2) Is it possible to have the nnimap backend be more pessimistic about the connection? Ie, if it doens't get a response in ~10 seconds, tear down the connection and make a new one. Some info about my connection which may be relevant... the server is Courier and the info it sends upon connection is: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=PLAIN IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc. See COPYING for distribution information. The info displayed in the message line indicates that it's using STARTTLS to authenticate. Thanks for any guidance, Greg