From: "Andreas Goesele" <goesele@hfph.mwn.de>
To: info-gnus-english@gnu.org
Subject: Re: nnir notmuch search on specific groups?
Date: Tue, 23 Oct 2018 22:37:59 +0200 [thread overview]
Message-ID: <87ftwwe6vs.fsf@hfph.mwn.de> (raw)
In-Reply-To: <mailman.2606.1540263818.1284.info-gnus-english@gnu.org>
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>)
Thanks again!
Andreas
--
Omnis enim res, quae dando non deficit, dum habetur et non datur,
nondum habetur, quomodo habenda est.
Augustinus, De doctrina christiana
next prev parent reply other threads:[~2018-10-23 20:37 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-20 21:56 Andreas Goesele
2018-10-21 3:48 ` Eric Abrahamsen
2018-10-21 10:35 ` Adam Sjøgren
2018-10-21 16:49 ` Eric Abrahamsen
2018-10-21 17:50 ` Adam Sjøgren
2018-10-21 18:58 ` Eric Abrahamsen
[not found] ` <mailman.2552.1540148988.1284.info-gnus-english@gnu.org>
2018-10-21 19:41 ` Andreas Goesele
2018-10-21 20:08 ` Eric Abrahamsen
2018-10-21 20:24 ` Eric Abrahamsen
[not found] ` <mailman.2556.1540152550.1284.info-gnus-english@gnu.org>
2018-10-21 21:17 ` Andreas Goesele
2018-10-23 3:01 ` Eric Abrahamsen
[not found] ` <mailman.2606.1540263818.1284.info-gnus-english@gnu.org>
2018-10-23 20:37 ` Andreas Goesele [this message]
2018-10-24 0:47 ` Eric Abrahamsen
[not found] ` <mailman.2644.1540342724.1284.info-gnus-english@gnu.org>
2018-10-24 16:46 ` Andreas Goesele
[not found] ` <mailman.2547.1540140585.1284.info-gnus-english@gnu.org>
2018-10-21 18:49 ` Andreas Goesele
[not found] ` <mailman.2538.1540118168.1284.info-gnus-english@gnu.org>
2018-10-21 16:41 ` Andreas Goesele
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=87ftwwe6vs.fsf@hfph.mwn.de \
--to=goesele@hfph.mwn.de \
--cc=info-gnus-english@gnu.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).