Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: gnus nnmaildir and notmuch
Date: Sun, 26 Mar 2017 09:32:51 -0700	[thread overview]
Message-ID: <871stkq9qk.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87r31kzllc.fsf@hanan.ust.hk>

Andrew Cohen <cohen@bu.edu> writes:


[...]

> The new feature (permanent search groups with full marks propagation)
> can be explored as follows (I didn't add the code to make it
> particularly user friendly when I introduced it and then got too busy to
> do much more):
>
> Do an nnir search as you normally would (e.g. "G G" in the Group
> buffer). While in the nnir Summary buffer invoke the command
> 'gnus-summary-create-nnir-group. This will prompt for a name and create
> a group using the search parameters that yielded the nnir summary
> buffer. This Group should then show up in the Group buffer. You can
> modify the search by editing the Group parameters (e.g. "G p" on the
> group in the Group buffer). This group behaves (almost) like any other
> Gnus group, and marks should propagate as you would expect.

Very cool! I never noticed `gnus-summary-create-nnir-group' down at the
bottom of the file.

So far as I can see, the only remaining pieces would be to give that
command a gnus-group-mode keybinding, and have it prompt for a query,
rather than taking the query from the current group. If at present it's
necessary to prefix the group name with "nnir-", that can simply be done
unconditionally in the command.

That's it, isn't it? That and documentation, of course. I'd be happy to
help with completing this, and/or documenting it.

[...]

> 5. Unfortunately "virtual" has already been used in Gnus to mean
>    something else so I can't call these groups (created from messages
>    spread out across real groups) virtual. I have been (in my head)
>    calling them "select" groups.
>
> Finally I should say that when I rewrote nnir from scratch I
> deliberately separated out the "searching" part from the message and
> group handling part to allow this. Everything is more or less factored
> out and my plan was to create an "nnselect" backend that includes all of
> the non-searching parts and just uses a group parameter to specify which
> articles should be included in the group. This parameter could, for
> example, be an nnir search query; or it could be any function that
> returns a list of articles in an appropriate format (this format is also
> described in nnir.el). Everything is in place to do this (its probably
> an afternoon's work to rename and move the pieces around) but I just
> haven't found time to do so.

I dove pretty deeply into nnir a year or two ago when I was writing
Gnorb. I needed exactly what you describe here: a simple way to create
groups containing arbitrary messages. I ended up having to write a fake
"nngnorb" backend, and require users to add it to their server list,
because that was the only way nnir could find the correct query function
to run. I would love to just be able to specify a function as part of
the query parameter!

As for the backends... It seems like there are too many backends
already. Why don't we just hijack nnvirtual? nnselect sounds like it
would be exactly like nnvirtual, except with the ability to specify
articles in addition to groups. It would be more work to merge the two,
but I think it would make much more sense all around. Virtual groups
would be any kind of virtual group, and then there'd just be a search
interface laid on top of it.

What do you (or anyone else) think?

Eric




  parent reply	other threads:[~2017-03-26 16:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-23  9:51 Erik Colson
2017-03-23 15:25 ` Eric Abrahamsen
2017-03-23 15:31   ` Eric Abrahamsen
2017-03-23 15:47     ` Eric Abrahamsen
     [not found] ` <afcec017ee42495d979cc97a6f638276@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
     [not found]   ` <87shm3ex6p.fsf@t3610>
2017-03-23 18:58     ` Eric Abrahamsen
2017-03-24  0:38 ` Andrew Cohen
2017-03-24  1:17   ` Eric Abrahamsen
2017-03-24  8:00   ` Erik Colson
2017-03-24  8:23     ` Erik Colson
2017-03-24  8:29       ` Erik Colson
2017-03-24 15:48         ` Eric Abrahamsen
2017-03-24 18:47           ` Eric Abrahamsen
2017-03-26  4:51             ` Andrew Cohen
2017-03-26  6:05               ` Andrew Cohen
2017-03-26 16:32               ` Eric Abrahamsen [this message]
2017-03-27  1:09                 ` Andrew Cohen
2017-03-27  4:33                   ` Eric Abrahamsen

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=871stkq9qk.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).