From: Rainer M Krug Date: Thu, 27 Feb 2014 10:32:47 +0000 (+0100) Subject: Search for message ID broken? X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8eaedc3f2c82eb19e2ff3236724070b0c03592a5;p=notmuch-archives.git Search for message ID broken? --- diff --git a/53/4213d674ad702e71c8e165c195ed52f030123a b/53/4213d674ad702e71c8e165c195ed52f030123a new file mode 100644 index 000000000..e49655680 --- /dev/null +++ b/53/4213d674ad702e71c8e165c195ed52f030123a @@ -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 825A5431FAF + for ; Thu, 27 Feb 2014 02:33:05 -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=[RCVD_IN_DNSWL_NONE=-0.0001] 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 q5K-67GKTH34 for ; + Thu, 27 Feb 2014 02:33:00 -0800 (PST) +Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) + (using TLSv1 with cipher AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id E1994431FAE + for ; Thu, 27 Feb 2014 02:32:59 -0800 (PST) +Received: from list by plane.gmane.org with local (Exim 4.69) + (envelope-from ) id 1WIyGt-000420-1q + for notmuch@notmuchmail.org; Thu, 27 Feb 2014 11:32:55 +0100 +Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7]) + by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) + id 1AlnuQ-0007hv-00 + for ; Thu, 27 Feb 2014 11:32:55 +0100 +Received: from Rainer by arn78-1-88-186-171-7.fbx.proxad.net with local + (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 + for ; Thu, 27 Feb 2014 11:32:55 +0100 +X-Injected-Via-Gmane: http://gmane.org/ +To: notmuch@notmuchmail.org +From: Rainer M Krug +Subject: Search for message ID broken? +Date: Thu, 27 Feb 2014 11:32:47 +0100 +Lines: 54 +Message-ID: +Mime-Version: 1.0 +Content-Type: text/plain +X-Complaints-To: usenet@ger.gmane.org +X-Gmane-NNTP-Posting-Host: arn78-1-88-186-171-7.fbx.proxad.net +User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) +Cancel-Lock: sha1:ze3lgKREaumSaidLCxHa7QsxT2c= +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:33:05 -0000 + +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? + +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 +