Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: nnvirtual
Date: Fri, 05 May 2017 12:30:25 +0800	[thread overview]
Message-ID: <87efw4gc2m.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87fuglfn1k.fsf@hanan>

Andrew Cohen <cohen@bu.edu> writes:

>>>>>> "Eric" == Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>     Eric> Andrew Cohen <cohen@bu.edu> writes:
>     >> Gnus has had the nnvirtual backend, allowing several newsgroups
>     >> to be read as a single, combined newsgroup, for ages. But is
>     >> anyone using it?  And if so, how and why?
>
> [...]
>
>
>     Eric> (Me again.)
>
>     Eric> Is there a way to make use of Gnus' existing "big group"
>     Eric> behavior?  Meaning, add the active numbers, and if it's more
>     Eric> than `gnus-large-newsgroup', prompt the user for the number of
>     Eric> articles to retrieve? Or is that happening at a different
>     Eric> level of infrastructure?
>
> Different level of infrastructure. But its not hard to solve this
> problem (in fact the limit variable that I stuck in by hand does almost
> exactly what the large newsgroup variable does, minus the prompting
> which would be trivial to add). But I am trying to understand what
> functionality would be served by any of this to decide how best to
> handle it.
>
> My real guess is that no one is using it and there it serves no
> purpose. In which case the simplest solution is probably the best one:)

I'd say we have to assume that, if the functionality is there, someone
is using it, and combining groups is definitely something people do --
see Dovecot's virtual groups, for instance.

As for the large newsgroup prompting, I think it would be desirable
simply because it makes select groups behave like other Gnus groups, and
means the limit isn't hardcoded. It short, it reduces users' mental
friction when using select groups.

Random other things:

How does sorting work in select groups? Right now gnus-search does a
pass in `gnus-search-run-query', sorting on rsv, but since nearly all
engines return a score of 100, it's fairly meaningless. Summary buffer
articles really are sorted according to the order returned by
`gnus-search-run-query', which I find odd: shouldn't the normal
`gnus-thread|article-sort-functions' routine kick in after group
creation? Anyway, I'd just as soon not have gnus-search be responsible
for sorting at all: it seems like passing on the rsv should be enough.
On the other hand, I'd sure like to let users specify a sort meta-key,
like "sort:score,-date", but then that information would have to get
passed down the line somehow. Perhaps something for later.

I've provided a count:t meta key in the search language, but it isn't
used right now. The idea is that, if the user includes this key, the
search returns a total number of hits per engine, rather than actually
displaying the results (hits per group would be nice, but that
information could be difficult extract from some engines). It will be
fairly easy to hot-wire `gnus-group-make-search-group' to return this
value, and permanent groups could simply strip it out.

If you like, it could also be a cheap way of updating message counts in
permanent search groups. I note now that, at start-up for instance, the
permanent groups do not show counts until they're entered. Sending a
count request ought to be significantly cheaper than actually retrieving
results, and might be useful.

Anyway, just a possibility.

E




  reply	other threads:[~2017-05-05  4:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-03 12:31 nnvirtual Andrew Cohen
2017-05-03 18:00 ` nnvirtual Eric Abrahamsen
2017-05-04  1:06   ` nnvirtual Andrew Cohen
2017-05-05  4:30     ` Eric Abrahamsen [this message]
2017-05-05 12:09       ` nnvirtual Andrew Cohen
2017-05-05 12:51         ` nnvirtual Andrew Cohen
2017-05-05 15:46         ` nnvirtual Eric Abrahamsen
2017-05-06  0:20           ` nnvirtual Andrew Cohen
2017-05-07  2:39             ` nnvirtual Eric Abrahamsen
2017-05-12 15:38 ` nnvirtual Steinar Bang
2017-05-12 17:42   ` nnvirtual Adam Sjøgren
2017-05-13  0:17     ` nnvirtual Harry Putnam
2018-04-11 19:42 ` nnvirtual Lars Ingebrigtsen

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=87efw4gc2m.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --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).