Gnus development mailing list
 help / color / mirror / Atom feed
From: Gregory Novak <novak@ucolick.org>
Subject: Gnus has trouble reconnecting to an IMAP server?
Date: Thu, 15 Dec 2005 13:21:46 -0800	[thread overview]
Message-ID: <m2d5jyt5sl.fsf@euterpe.local> (raw)

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



                 reply	other threads:[~2005-12-15 21:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2d5jyt5sl.fsf@euterpe.local \
    --to=novak@ucolick.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).