From 4f1114d4c2108fcb3246ee40af2190ec9b55008c Mon Sep 17 00:00:00 2001 From: Rainer M Krug Date: Thu, 27 Feb 2014 12:16:17 +0100 Subject: [PATCH] Re: Search for message ID broken? --- 48/81560a8cbe3d3e590727639300e271a82cf5dc | 170 ++++++++++++++++++++++ 1 file changed, 170 insertions(+) create mode 100644 48/81560a8cbe3d3e590727639300e271a82cf5dc diff --git a/48/81560a8cbe3d3e590727639300e271a82cf5dc b/48/81560a8cbe3d3e590727639300e271a82cf5dc new file mode 100644 index 000000000..fb8822004 --- /dev/null +++ b/48/81560a8cbe3d3e590727639300e271a82cf5dc @@ -0,0 +1,170 @@ +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 20162431FAF + for ; Thu, 27 Feb 2014 03:16:36 -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 87y3NVswJMTT for ; + Thu, 27 Feb 2014 03:16:32 -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 313EB431FAE + for ; Thu, 27 Feb 2014 03:16:32 -0800 (PST) +Received: from list by plane.gmane.org with local (Exim 4.69) + (envelope-from ) id 1WIyx2-0000mj-1G + for notmuch@notmuchmail.org; Thu, 27 Feb 2014 12:16:28 +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 12:16:28 +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 12:16:28 +0100 +X-Injected-Via-Gmane: http://gmane.org/ +To: notmuch@notmuchmail.org +From: Rainer M Krug +Subject: Re: Search for message ID broken? +Date: Thu, 27 Feb 2014 12:16:17 +0100 +Lines: 109 +Message-ID: +References: +Mime-Version: 1.0 +Content-Type: multipart/signed; boundary="=-=-="; + micalg=pgp-sha1; protocol="application/pgp-signature" +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:SSmNXjmdIt9huc7QUQOQEPooFmc= +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 11:16:36 -0000 + +--=-=-= +Content-Type: text/plain +Content-Transfer-Encoding: quoted-printable + +Tomi Ollila writes: + +> 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 th= +e 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$=20 +>> `---- +>> +>> If I search for the subject, it works, but not with the message ID. +>> +>> Is there something broken? +> +> Strip '<' and '>' from your command... + +ARRGH - so simple... + +Thanks a lot, working perfectly, + +Rainer +=20 + +> +> Tomi +> +> +>> +>> I am using=20 +>> +>> - 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 +>> +>> +>> --=20 +>> Rainer M. Krug +>> +>> email: RMKruggmailcom +>> +>> _______________________________________________ +>> notmuch mailing list +>> notmuch@notmuchmail.org +>> http://notmuchmail.org/mailman/listinfo/notmuch + +=2D-=20 +Rainer M. Krug + +email: RMKruggmailcom + +--=-=-= +Content-Type: application/pgp-signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG/MacGPG2 v2.0.22 (Darwin) + +iQEcBAEBAgAGBQJTDx6FAAoJENvXNx4PUvmCs+QH/2TA9kTkdlmsYbIN4Gh7Ra0y +eImOrzBq4WBeEtOxmJj/91qigrjIKN1u7pzG4nycf4rCmy5Kzgfjdhnfs+3pQYS3 +T20ztR/33a4yn8WGQf2rXjMqa4br76TlNX03C3qWHrb2Sg7mUuR/OwWIL7BPHK38 +rGS9cEIb5jlYDYnQfaKS9ZlLPFyaOOr5k2G3Txr+ZeJceUdODONUrlN3qsssff8J +t6rdAO8zx6u18Cg0NnCh8dClKsAlfbbK/F3UvDKx1h6GSmJWClNUycNVUrEK8zFC +niwUNq+X8HtSFo87doBbixmjXgVyVDr8o887ofOZbY8Z++jRq8K9yPMBehHD9o0= +=FWPb +-----END PGP SIGNATURE----- +--=-=-=-- + -- 2.26.2