From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gregory Novak <novak@ucolick.org> Newsgroups: gmane.emacs.help Subject: Gnus has trouble reconnecting to an IMAP server? Date: Tue, 13 Dec 2005 23:02:45 -0800 Message-ID: <m2oe3kduui.fsf@euterpe.local> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134544859 30636 80.91.229.2 (14 Dec 2005 07:20:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Dec 2005 07:20:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 14 08:20:56 2005 Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org> Original-Received: from [199.232.75.2] (helo=lists.gnu.org) by ciao.gmane.org with esmtp (Exim 4.43) id 1EmQug-0006tY-Bw for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Dec 2005 08:18:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EmQvE-0002UN-Gx for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Dec 2005 02:19:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EmQfq-00062V-1m for help-gnu-emacs@gnu.org; Wed, 14 Dec 2005 02:03:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EmQfj-0005ys-Ks for help-gnu-emacs@gnu.org; Wed, 14 Dec 2005 02:03:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EmQfh-0005xZ-OK for help-gnu-emacs@gnu.org; Wed, 14 Dec 2005 02:03:29 -0500 Original-Received: from [128.114.23.204] (helo=smtp.ucolick.org) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EmQhj-0007AV-1X for help-gnu-emacs@gnu.org; Wed, 14 Dec 2005 02:05:35 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by smtp.ucolick.org (Postfix) with ESMTP id C6FEC5D714 for <help-gnu-emacs@gnu.org>; Tue, 13 Dec 2005 23:02:47 -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 3EC4311406 for <help-gnu-emacs@gnu.org>; Tue, 13 Dec 2005 23:02:47 -0800 (PST) Original-To: help-gnu-emacs <help-gnu-emacs@gnu.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/pipermail/help-gnu-emacs> List-Post: <mailto:help-gnu-emacs@gnu.org> List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe> Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-Broken-Reverse-DNS: no host name found for IP address 199.232.75.2 Xref: news.gmane.org gmane.emacs.help:31933 Archived-At: <http://permalink.gmane.org/gmane.emacs.help/31933> 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