From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84983 Path: news.gmane.org!not-for-mail From: Rainer M Krug Newsgroups: gmane.emacs.gnus.general Subject: Re: nnir and notmuch? Date: Tue, 23 Sep 2014 12:50:46 +0200 Message-ID: References: <87wq8u8wir.fsf@gmx.us> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1411469478 4616 80.91.229.3 (23 Sep 2014 10:51:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2014 10:51:18 +0000 (UTC) Cc: ding@gnus.org To: Rasmus Original-X-From: ding-owner+M33227@lists.math.uh.edu Tue Sep 23 12:51:11 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XWNgZ-0005qU-5A for ding-account@gmane.org; Tue, 23 Sep 2014 12:51:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1XWNgX-0006EE-H0; Tue, 23 Sep 2014 05:51:05 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1XWNgW-0006E3-9h for ding@lists.math.uh.edu; Tue, 23 Sep 2014 05:51:04 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XWNgU-0003IW-RM for ding@lists.math.uh.edu; Tue, 23 Sep 2014 05:51:04 -0500 Original-Received: from mail-wi0-f169.google.com ([209.85.212.169]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XWNgT-0005Ga-8i for ding@gnus.org; Tue, 23 Sep 2014 12:51:01 +0200 Original-Received: by mail-wi0-f169.google.com with SMTP id fb4so4334573wid.0 for ; Tue, 23 Sep 2014 03:50:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=S04KqCS6PiZ6ryNdtkhekw5yEyTS3hzjbGbuzcSdjGE=; b=SoY4F5MCYZXUWQZBbotWq2qYKIxlOQdmb6+9ulIFUxKU7tlu+Sli8uT0PUx3ZO6J9Z Nubi9UHi40cuMVOF+M+jSGWRGVLW9BTu7ZXFUUmQxRycyoMPeSf/UsEu75PE3P+wtkrY 0CEYPjeU+fXM5/S6RLnuNrYbHMhV8yVwBnwgukYeSFqW4h1bswTu2VT70MlemIJAdoBY ztZCv5D1S7C4mTUkM0H92lbpAQVrgR66MdsKe8kJS3xaXv9RzjmY65X7oZe1aDTR6rv4 K+gdzqvzqj5rwJ7upA6TjNHPWyHacfvbUReLO13qYIFM8C11hsNxOPURIQIDiYAYblMX ih3Q== X-Received: by 10.194.171.37 with SMTP id ar5mr26529430wjc.69.1411469453740; Tue, 23 Sep 2014 03:50:53 -0700 (PDT) Original-Received: from Rainers-MacBook-Pro-3.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by mx.google.com with ESMTPSA id x6sm2157069wif.0.2014.09.23.03.50.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Sep 2014 03:50:52 -0700 (PDT) In-Reply-To: <87wq8u8wir.fsf@gmx.us> (rasmus@gmx.us's message of "Tue, 23 Sep 2014 12:24:28 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84983 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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:=20 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"=20 > (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.=20 > > =E2=80=94Rasmus =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJUIVCKAAoJENvXNx4PUvmCZAgIALtAFSLtQWHwPQlHIBN9bhXc DXhaZZ8ysYFPYlYwnRBkO1BRBskY+6CZDzBPIsaxsOf2aQmBCr/RealaZE6PqQP1 Ua3rk8+Mww+qCHojqyhJKtbB8U/Nh8Jjqz+3Q6PCyWCsBKfmqcdKQQjOlx3654eI PF01dRGFiVjKCWm/bQD7u6LDvtbkGPjar16KPYnxkIj79BtmfFhPZvTi+kEy7a5O XFRiYDlN2N5Ky26LM18Xe15e8iHYiC0Gcef1AKOb8ZH77DfHlhvY9dtfb7/PwQHj lktvVS8epen8V53c3Igyre03VeMUdwtW4ztFWVMRMEjOCuOqzKN+iP9TgIJ1Ewo= =25c+ -----END PGP SIGNATURE----- --=-=-=--