From: Rainer M Krug <Rainer@krugs.de>
To: Rasmus <rasmus@gmx.us>
Cc: ding@gnus.org
Subject: Re: nnir and notmuch?
Date: Tue, 23 Sep 2014 12:50:46 +0200 [thread overview]
Message-ID: <m2r3z2d309.fsf@krugs.de> (raw)
In-Reply-To: <87wq8u8wir.fsf@gmx.us> (rasmus@gmx.us's message of "Tue, 23 Sep 2014 12:24:28 +0200")
[-- Attachment #1: Type: text/plain, Size: 1697 bytes --]
Rasmus <rasmus@gmx.us> writes:
> 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.
I am using local imap, but only local imap - I want to leave the maildir
under the control of dovecot.
>
> A less elegant way would be to replace G-G. Something like:
That would most likely work - but as you say less elegant and I would
like to keep to much hacking out of my setup. But I will keep it in
mind and use it if everything else fails.
Rainer
>
> (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
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]
next prev parent reply other threads:[~2014-09-23 10:50 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
2014-09-23 10:50 ` Rainer M Krug [this message]
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=m2r3z2d309.fsf@krugs.de \
--to=rainer@krugs.de \
--cc=ding@gnus.org \
--cc=rasmus@gmx.us \
/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).