Rasmus writes: > Steinar Bang writes: > >>>>>>> Rainer M Krug : >> >>> 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: Rainerkrugsde PGP: 0x0F52F982