info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nnir notmuch search on specific groups?


From: Eric Abrahamsen
Subject: Re: nnir notmuch search on specific groups?
Date: Wed, 24 Oct 2018 08:47:49 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

"Andreas Goesele" <goesele@hfph.mwn.de> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Okay, I've reported this with a patch as bug#33122. The new option name
>> is called `nnir-notmuch-filter-group-names-function'.
>>
>> In the end I decided a t value didn't make a lot of sense -- if users
>> want to pass the group names through unchanged (which is almost
>> certainly a bad idea), they can set the above option to #'identity.
>>
>> By default (assuming this patch is accepted with no change), the
>> filtering *doesn't* do the transform you wanted. You can add your
>> desired behavior (the docstring mentions this) like so:
>>
>> (add-function :filter-return nnir-notmuch-filter-group-names-function
>>   (lambda (g) (replace-regexp-in-string "\\." "/" g)))
>
> Thanks, this basically works great. There is just one small glitch: If
> one marks different groups (let say three) the search becomes:
>
> search --format=text --output=files search-term path:<directory1> or
> path:<directory2> or path:<directory3>
>
> This includes all mails in the directories 2 and 3
>
> So it should be:
>
> search --format=text --output=files search-term (path:<directory1> or
> path:<directory3> or path:<directory3>)

Aha! Thanks for the pointer. I've updated the patch on the bug report.

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]