From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18905 Path: news.gmane.org!.POSTED!not-for-mail From: "Andreas Goesele" Newsgroups: gmane.emacs.gnus.user Subject: Re: nnir notmuch search on specific groups? Date: Tue, 23 Oct 2018 22:37:59 +0200 Organization: Mixmin Message-ID: <87ftwwe6vs.fsf@hfph.mwn.de> References: <87a7n8s2np.fsf@hfph.mwn.de> <87o9bohsdw.fsf@ericabrahamsen.net> <87k1mbege2.fsf@tullinup.koldfront.dk> <87bm7ni6sy.fsf@ericabrahamsen.net> <87a7n79ojs.fsf@tullinup.koldfront.dk> <878t2rjde8.fsf@hfph.mwn.de> <87va5vhudu.fsf@hfph.mwn.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1540327084 28815 195.159.176.226 (23 Oct 2018 20:38:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2018 20:38:04 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Oct 23 22:38:00 2018 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gF3R7-0007JQ-Vo for gegu-info-gnus-english@m.gmane.org; Tue, 23 Oct 2018 22:37:58 +0200 Original-Received: from localhost ([::1]:44119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF3TE-00017R-G8 for gegu-info-gnus-english@m.gmane.org; Tue, 23 Oct 2018 16:40:08 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!weretis.net!feeder4.news.weretis.net!news.mixmin.net!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Injection-Info: news.mixmin.net; posting-host="321c3f60269d4fd9fad0d640f9793623c054db2c"; logging-data="22670"; mail-complaints-to="abuse@mixmin.net" X-No-Archive: Yes Cancel-Lock: sha1:ny36bffsQkq5cYa6ScouIqGAQDo= Original-Xref: usenet.stanford.edu gnu.emacs.gnus:89847 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: "info-gnus-english" X-Gmane-Expiry: 2018-11-06 Xref: news.gmane.org gmane.emacs.gnus.user:18905 Archived-At: Eric Abrahamsen 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: or path: or path: This includes all mails in the directories 2 and 3 So it should be: search --format=text --output=files search-term (path: or path: or path:) Thanks again! Andreas -- Omnis enim res, quae dando non deficit, dum habetur et non datur, nondum habetur, quomodo habenda est. Augustinus, De doctrina christiana