Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: ding@gnus.org
Subject: Re: can back end keep track of *all* group info?
Date: Sat, 22 Dec 2001 13:20:27 +0100	[thread overview]
Message-ID: <ilupu57o390.fsf@extundo.com> (raw)
In-Reply-To: <kg6ellnx0ou.fsf@lisboa.ks.uiuc.edu> (Paul Grayson's message of "21 Dec 2001 23:50:57 -0600")

Paul Grayson <pgrayson+ding@ks.uiuc.edu> writes:

> My server keeps track of marks, and could report the number of
> unread/flagged messages in each group for display in the *Group*
> buffer.  I don't want my server to count the total number of messages
> in a group - that will take too long - and I want to avoid the nnimap
> problem of always having the unread/flagged count out of sync with the
> server.

Which problem is this?  Do you mean the one that unread/flagged count
in Gnus is only an estimate?  That applies to all backends, if it is
noticable or not depends on the backend (and in nnimap's case, on the
remote server).

M-g on the group makes Gnus update the estimate with real information
though.

Making the Group buffer use the real values from the backend, when
they are able to provide that data, should fix this problem and be
very useful.  Shouldn't be too difficult to do, I think.

> I love everything Gnus does, and really want to use it as a front end
> to this server - is there any way to write it a back end?  I've
> experimented a little, and it seems that Gnus generally requests much
> more information than it uses, but checks too rarely (with, for
> example, nnchoke-request-update-info) to keep the information
> up-to-date.  Is there any way to trick Gnus into letting the server
> keep track of everything, or would it mean rewriting a significant
> part of the front end?  Are there any plans for allowing this in the
> future?
>
> If I don't want to rewrite parts of Gnus, is it possible to write my
> own group-browsing mode and connect it to the Gnus summary mode?

If you implement `gnus-request-set-mark' your backend should at least
receive all flags as set by Gnus.  The other way is handled via
`nnchoke-request-update-info', but I'd agree that this is called too
many times and still not enough times. (This is way nnimap doesn't
have a `nnimap-request-update-info' but rather calls this function
internally upon group entry, in `nnimap-request-group' -- which
doesn't seem to cause any problems.)

> If you think this is not worth the work, is there any other email
> back end that lets you instantly re-split tens of thousands of
> messages?

You could have a look at Wanderlust, maybe their backend interface is
cleaner.




  reply	other threads:[~2001-12-22 12:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-22  5:50 Paul Grayson
2001-12-22 12:20 ` Simon Josefsson [this message]
2001-12-24 18:57   ` Paul Grayson
2001-12-24 22:51     ` Simon Josefsson
2001-12-26 16:54       ` Paul Grayson
2001-12-26 18:17         ` Simon Josefsson
2001-12-22 21:02 ` Kai Großjohann
2001-12-22 22:32   ` Simon Josefsson
2001-12-23 10:19     ` Kai Großjohann
2001-12-23 22:18     ` Paul Jarc
2001-12-23 22:25 ` Paul Jarc

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=ilupu57o390.fsf@extundo.com \
    --to=jas@extundo.com \
    --cc=ding@gnus.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).