From: Rasmus <rasmus@gmx.us>
To: ding@gnus.org
Subject: Re: nnir and notmuch?
Date: Tue, 23 Sep 2014 12:24:28 +0200 [thread overview]
Message-ID: <87wq8u8wir.fsf@gmx.us> (raw)
In-Reply-To: <upzc7g0uzlq6.fsf@dod.no>
Steinar Bang <sb@dod.no> writes:
>>>>>> Rainer M Krug <Rainer@krugs.de>:
>
>> Now that I can search gmane (perfect - love it!) I can't search my local
>> imap server via notmuch anymore - any suggestions how I can achieve
>> both via nnir or "G G"?
>
> One way would be to replace
> (nnimap . imap)
> in nnir-method-default-engines with
> (nnimap . notmuch)
>
> But that would mask native imap search for other IMAP servers you might
> have.
If Rainer is using nnmaildir it might be less of an issue.
A less elegant way would be to replace G-G. Something like:
(defun my-gnus-G-G (NNIR-EXTRA-PARMS &optional SPECS)
"Chose the right search"
(interactive "P")
(let ((backend (car-safe
(split-string (or (gnus-group-group-name) "") ":"))))
(unless (eq "" backend)
(case backend
("nntp+gmane"
(gnus-group-make-nnir-group NNIR-EXTRA-PARMS SPECS))
("..." (search-using-notmuch))
(otherwise
(gnus-group-make-nnir-group NNIR-EXTRA-PARMS SPECS))))))
(define-key gnus-group-mode-map (kbd "G G") 'my-gnus-G-G)
I don't know how well it would work in practice.
—Rasmus
--
May the Force be with you
next prev parent reply other threads:[~2014-09-23 10:24 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-23 8:40 Rainer M Krug
2014-09-23 10:15 ` Steinar Bang
2014-09-23 10:24 ` Rasmus [this message]
2014-09-23 10:50 ` Rainer M Krug
2014-09-23 10:48 ` Rainer M Krug
2014-09-23 11:59 ` Steinar Bang
2014-09-23 13:15 ` Andrew Cohen
2014-09-24 7:18 ` Rainer M Krug
2014-09-23 16:14 ` Eric Abrahamsen
2014-09-24 7:26 ` Rainer M Krug
2014-09-24 9:41 ` Eric Abrahamsen
2014-09-24 13:51 ` Adam Sjøgren
2014-09-24 17:40 ` Eric Abrahamsen
2014-09-24 19:34 ` Alan Schmitt
2014-09-25 0:08 ` Eric Abrahamsen
2014-09-24 19:47 ` Adam Sjøgren
2014-09-26 7:21 ` Eric S Fraga
2014-09-26 9:05 ` Rainer M Krug
2014-10-01 18:03 ` Eric S Fraga
2014-09-26 9:54 ` Adam Sjøgren
2014-10-01 19:47 ` Eric S Fraga
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=87wq8u8wir.fsf@gmx.us \
--to=rasmus@gmx.us \
--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).