From: Rainer M. Krug Date: Wed, 10 Apr 2013 16:24:28 +0000 (+0200) Subject: Re: Integrating notmuch with gnus? X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c4fcbdf849a0185a64811c5abd211b105856e088;p=notmuch-archives.git Re: Integrating notmuch with gnus? --- diff --git a/5e/c3494529adfcc7f3f76482e795fb158d49c90c b/5e/c3494529adfcc7f3f76482e795fb158d49c90c new file mode 100644 index 000000000..edc2bb86a --- /dev/null +++ b/5e/c3494529adfcc7f3f76482e795fb158d49c90c @@ -0,0 +1,113 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id AC38C431FAF + for ; Wed, 10 Apr 2013 09:24:36 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.699 +X-Spam-Level: +X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 + tests=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id IiHOS3eN3jwJ for ; + Wed, 10 Apr 2013 09:24:35 -0700 (PDT) +Received: from mail-we0-f169.google.com (mail-we0-f169.google.com + [74.125.82.169]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id C4122431FAE + for ; Wed, 10 Apr 2013 09:24:34 -0700 (PDT) +Received: by mail-we0-f169.google.com with SMTP id x43so543107wey.28 + for ; Wed, 10 Apr 2013 09:24:32 -0700 (PDT) +X-Received: by 10.180.183.197 with SMTP id eo5mr4645934wic.28.1365611072121; + Wed, 10 Apr 2013 09:24:32 -0700 (PDT) +Received: from ecolmod ([2a01:e35:8baa:b070:a021:423c:6b72:6b1a]) + by mx.google.com with ESMTPS id o5sm933124wix.3.2013.04.10.09.24.30 + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Wed, 10 Apr 2013 09:24:31 -0700 (PDT) +From: Rainer@krugs.de (Rainer M. Krug) +To: Istvan Marko +Subject: Re: Integrating notmuch with gnus? +References: <877gkgdcvc.fsf@krugs.de> + <87ppy5tcjs.fsf@krugs.de> +Date: Wed, 10 Apr 2013 18:24:28 +0200 +In-Reply-To: (Istvan Marko's message of "Mon, + 08 Apr 2013 11:25:48 -0700") +Message-ID: <878v4qcq0z.fsf@krugs.de> +User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) +MIME-Version: 1.0 +Content-Type: text/plain +Cc: notmuch@notmuchmail.org +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 10 Apr 2013 16:24:36 -0000 + +Istvan Marko writes: + +> "Rainer M. Krug" writes: +> +>> Istvan Marko writes: +>>> nnir (gnus search backend) supports notmuch out of the box. If I +>>> remember right all you have to do is: +>>> +>>> (setq nnir-search-engine 'notmuch) +>>> +>>> Or customize nnir-method-default-engines. +>> <#secure method=pgpmime mode=sign> +>> +>> Hm - I tried it out, but G G gives an error message: +>> +>> Search produced empty results. +>> gnus-group-read-ephemeral-group: Couldn't request group: Search produced +>> empty results. +> +> I think it might be sensitive to which group your cursor is on when you +> hit G G. And nnir-search-engine might only work as a server method +> variable. The top of nnir.el has some docs and examples. The notmuch +> search method itself shouldn't need any special configuration (other +> than having notmuch itself working). +> +<#secure method=pgpmime mode=sign> +I found a solution to using notmuch with gnus at [1] which explains how +to set it up. In a nutshell: G G is replaced with a call of +notmuch-search and an additional function makes it possible to locate +the mail in the group in gnus after the notmuch search. Works nicely. + +Maybe this could be added to the emacstips page? + +Cheers, + +Rainer + + +Footnotes: +[1] http://roland.entierement.nu/blog/2010/09/08/gnus-dovecot-offlineimap-search-a-howto.html + +-- +Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) + +Centre of Excellence for Invasion Biology +Stellenbosch University +South Africa + +Tel : +33 - (0)9 53 10 27 44 +Cell: +33 - (0)6 85 62 59 98 +Fax : +33 - (0)9 58 10 27 44 + +Fax (D): +49 - (0)3 21 21 25 22 44 + +email: Rainer@krugs.de + +Skype: RMkrug