From: Tomi Ollila Date: Thu, 27 Feb 2014 10:48:28 +0000 (+0200) Subject: Re: Search for message ID broken? X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6df5b895d40eebc60b911bb7b4a8f918180959a7;p=notmuch-archives.git Re: Search for message ID broken? --- diff --git a/c0/457ad06346dd4edfba3f54d20e26c855a1d6fa b/c0/457ad06346dd4edfba3f54d20e26c855a1d6fa new file mode 100644 index 000000000..2a51df6e1 --- /dev/null +++ b/c0/457ad06346dd4edfba3f54d20e26c855a1d6fa @@ -0,0 +1,117 @@ +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 B8383431FAF + for ; Thu, 27 Feb 2014 02:48:43 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 GTEYJwYKMsIs for ; + Thu, 27 Feb 2014 02:48:35 -0800 (PST) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id ABB4E431FAE + for ; Thu, 27 Feb 2014 02:48:35 -0800 (PST) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id 6CE33100064; + Thu, 27 Feb 2014 12:48:28 +0200 (EET) +From: Tomi Ollila +To: Rainer M Krug , notmuch@notmuchmail.org +Subject: Re: Search for message ID broken? +In-Reply-To: +References: +User-Agent: Notmuch/0.17+112~g4e0c1d5 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +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: Thu, 27 Feb 2014 10:48:43 -0000 + +On Thu, Feb 27 2014, Rainer M Krug wrote: + +> Hi +> +> I am using gnus and notmuch, and am trying to view the thread of the +> message I am viewing in gnus in notmuch. +> +> With help, I now have the following function: +> +> --8<---------------cut here---------------start------------->8--- +> (defun rmk/do-gnus-notmuch-stuff () +> (interactive) +> (unless (buffer-live-p gnus-summary-buffer) +> (user-error "No open Gnus summary buffer!")) +> (let ((message-id (with-current-buffer gnus-summary-buffer +> (mail-header-id (gnus-summary-article-header))))) +> (message message-id) +> (notmuch-search (concatenate 'string "id:" message-id)) ;; Now do the notmuch stuff +> )) +> --8<---------------cut here---------------end--------------->8--- +> +> which nicely extracts the message ID and calls notmuch-search, but I +> don't get any results. The buffer is called notmuch-search-id: +> +> I tried to call notmuch-search interactively, using id: +> but also no results. +> +> I now tried the search from the comandline: +> +> ,---- +> | Rainers-MacBook-Pro-2:~ rainerkrug$ notmuch search id: +> | -bash: syntax error near unexpected token `newline' +> | Rainers-MacBook-Pro-2:~ rainerkrug$ notmuch search id:"" +> | Rainers-MacBook-Pro-2:~ rainerkrug$ +> `---- +> +> If I search for the subject, it works, but not with the message ID. +> +> Is there something broken? + +Strip '<' and '>' from your command... + +Tomi + + +> +> I am using +> +> - GNU Emacs 24.3.1 (x86_64-apple-darwin13.0.0, Carbon Version 1.6.0 +> AppKit 1265) of 2014-02-13 on Rainers-MacBook-Pro-2.local installed via +> homebrew emacs-mac +> - notmuch binary installed via homebrew q +> +> Cheers, +> +> Rainer +> +> +> -- +> Rainer M. Krug +> +> email: RMKruggmailcom +> +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch