Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: nnimap check for new mail in the background
Date: Sat, 10 Dec 2005 12:39:02 +0100	[thread overview]
Message-ID: <iluy82t9o6h.fsf@latte.josefsson.org> (raw)
In-Reply-To: <87irtzhs6x.fsf@ntnu.no> (Lars Tobias =?iso-8859-1?Q?B=F8rsti?= =?iso-8859-1?Q?ng's?= message of "Fri, 09 Dec 2005 04:20:38 +0100")

Lars Tobias Børsting <lars.tobias.borsting@ntnu.no> writes:

> Hi,
>
> I have used Gnus for a couple of years now, and can't live without
> it. I have just switched from getting mail via mbox spool to nnimap,
> with CourierIMAP on the server. I have moved my dozens of mail groups
> to nnimap groups. I like IMAP very much, except for one thing; it's very
> slow to check for new mail.
>
> With the nnmail backend, checking some dozens of groups was instant and
> unnoticable. With nnimap, it's painfully slow. That would have been OK
> if I could use Gnus in the meantime. However it locks up, showing
> "nnimap: updating info for folder xxx...done" until it is done. This is
> making me wait for about one minute until I can do something again.

It should not print the "Updating info" messages -- that will be much
slower than regular new mail checking.  It should only say "Quickly
checking mailbox foo", for each nnimap mailbox.

Historically, the reason for the "update info" message was that your
groups' server method (type `G e' on the group in the *Group* buffer)
said (nnimap "foo") rather than "nnimap:foo".  Changing the former
into to the latter would solve the problem.

However, recently (perhaps last month) I have noticed that Gnus CVS
say "Updating info" for me too.  Not always, but sometimes.  So I
think we have another bug.

> Is it possible to do new mail checking in a separate thread that runs in
> the background, so that it doesn't lock up the interface? If not, is it
> hard to implement such a feature?

It should be possible.  Implement something run with the idle timer
and iterate over all groups.  The problem is in informing Gnus about
the update -- there is no clean API to do that.  It could be added,
but I don't know how.

You could also try to fix the bug above, the "Quickly checking" test
is fairly quick.



  reply	other threads:[~2005-12-10 11:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-09  3:20 Lars Tobias Børsting
2005-12-10 11:39 ` Simon Josefsson [this message]
2005-12-11  6:22   ` D. Michael McFarland
2005-12-12 15:52     ` Simon Josefsson
2005-12-13 14:45       ` Lars Tobias Børsting
2005-12-14  3:05         ` D. Michael McFarland
2005-12-14 14:14           ` Simon Josefsson
     [not found]             ` <ilufyovhil3.fsf-Hx3HMpEclzRikQyLtWShHUB+6BGkLq7r@public.gmane.org>
2005-12-14 20:43               ` Jochen Küpper
2005-12-15 10:49                 ` Simon Josefsson
2005-12-13 15:01   ` Lars Tobias Børsting
2005-12-13 16:24     ` Simon Josefsson
2005-12-14 10:31       ` Lars Tobias Børsting
2005-12-14 14:12         ` Simon Josefsson

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=iluy82t9o6h.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    /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).