Gnus development mailing list
 help / color / mirror / Atom feed
* Re: search engine for virtual group?
@ 2022-02-01 18:46 Eric Abrahamsen
  2022-02-01 22:21 ` Eric S Fraga
  0 siblings, 1 reply; 11+ messages in thread
From: Eric Abrahamsen @ 2022-02-01 18:46 UTC (permalink / raw)
  To: ding; +Cc: Andrew Cohen

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> On Tuesday,  1 Feb 2022 at 09:29, Eric Abrahamsen wrote:
>> (FTR that was Andy Cohen's work, not mine)
>
> Ah, yes, sorry Andy!
>
>> That does make sense, and it's something to think about and possibly
>> address. So you had to M-g on the nnselect group in particular to get it
>> to refresh?
>
> I've been re-reading the documentation and it does state you can set it
> for automatic rescan.  The problem now is figuring out how to create the
> group I want.  nnvirtual is very good for this as it's straightforward.
> nnselect is somewhat opaque.
>
> How do I create a group that combines all those nnml groups with the
> following pattern, for instance:
>
>    nnml\\+somename:mail\\.*
>
> ?

Right, that's what I was saying in my original message: I'm pretty sure
this is possible, but I don't know the correct syntax. Once that's
sorted out, then we could add a convenience function that makes
"virtual" style select groups easier to create.

I just fooled around with this and couldn't get it to work, so I'm
cc'ing Andy to see what he thinks.

Andy, do you have a recommendation for how to make an nnselect group
that works just the same as an nnvirtual group: i.e. simply collects
several other groups and dumps them into one big one?

I tried doing it using gnus-search, like this:

(nnselect-request-create-group
 "family" nil '((nnselect-specs
      (nnselect-function . gnus-search-run-query)
      (nnselect-args
       (search-query-spec
        (query . "*"))
       (search-group-spec
        ("nnimap:NEA" "family.Dad" "family.Mom"))))))

But it gave me:

nnselect-request-update-info: Wrong type argument: consp, nil

Which I haven't looked into further. But maybe the right approach is a
custom 'nnselect-function, where the `nnselect-args is the list of
groups to combine, and then the function just... returns all the
articles in those groups? Or something?

Thanks for any hints!

Eric



^ permalink raw reply	[flat|nested] 11+ messages in thread
* search engine for virtual group?
@ 2022-02-01  8:52 Eric S Fraga
  2022-02-01 16:35 ` Eric Abrahamsen
  0 siblings, 1 reply; 11+ messages in thread
From: Eric S Fraga @ 2022-02-01  8:52 UTC (permalink / raw)
  To: ding

Hello all,

I have an nnvirtual group that combines a number of nnml groups.  I
would like gnus search to work on that folder using notmuch but gnus
does not seem to allow setting the search engine for a virtual group.
Any suggestions?

FTR, I have tried

  (add-to-list 'gnus-search-default-engines '(nnvirtual . notmuch))
  
to no avail.

Thank you,
eric

PS - I was confused by this description of a variable:

gnus-search-engine is a variable without a source file.

This variable is obsolete since 25.1; use 'gnus-search-engine
instead

-- 
Eric S Fraga with org 9.5.2 in Emacs 29.0.50 on Debian 11.2



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-03-07  0:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01 18:46 search engine for virtual group? Eric Abrahamsen
2022-02-01 22:21 ` Eric S Fraga
2022-03-03 16:56   ` dal-blazej
2022-03-07  0:39     ` Andrew Cohen
  -- strict thread matches above, loose matches on Subject: below --
2022-02-01  8:52 Eric S Fraga
2022-02-01 16:35 ` Eric Abrahamsen
2022-02-01 16:57   ` Andreas Schwab
2022-02-01 17:23     ` Eric Abrahamsen
2022-02-01 17:11   ` Eric S Fraga
2022-02-01 17:29     ` Eric Abrahamsen
2022-02-01 17:38       ` Eric S Fraga

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).