Re: Search for message ID broken?
authorRainer M Krug <Rainer@krugs.de>
Thu, 27 Feb 2014 11:16:17 +0000 (12:16 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:00:17 +0000 (10:00 -0800)
48/81560a8cbe3d3e590727639300e271a82cf5dc [new file with mode: 0644]

diff --git a/48/81560a8cbe3d3e590727639300e271a82cf5dc b/48/81560a8cbe3d3e590727639300e271a82cf5dc
new file mode 100644 (file)
index 0000000..fb88220
--- /dev/null
@@ -0,0 +1,170 @@
+Return-Path: <gmn-notmuch@m.gmane.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 20162431FAF\r
+       for <notmuch@notmuchmail.org>; Thu, 27 Feb 2014 03:16:36 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 87y3NVswJMTT for <notmuch@notmuchmail.org>;\r
+       Thu, 27 Feb 2014 03:16:32 -0800 (PST)\r
+Received: from plane.gmane.org (plane.gmane.org [80.91.229.3])\r
+       (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 313EB431FAE\r
+       for <notmuch@notmuchmail.org>; Thu, 27 Feb 2014 03:16:32 -0800 (PST)\r
+Received: from list by plane.gmane.org with local (Exim 4.69)\r
+       (envelope-from <gmn-notmuch@m.gmane.org>) id 1WIyx2-0000mj-1G\r
+       for notmuch@notmuchmail.org; Thu, 27 Feb 2014 12:16:28 +0100\r
+Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7])\r
+       by main.gmane.org with esmtp (Gmexim 0.1 (Debian))\r
+       id 1AlnuQ-0007hv-00\r
+       for <notmuch@notmuchmail.org>; Thu, 27 Feb 2014 12:16:28 +0100\r
+Received: from Rainer by arn78-1-88-186-171-7.fbx.proxad.net with local\r
+       (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00\r
+       for <notmuch@notmuchmail.org>; Thu, 27 Feb 2014 12:16:28 +0100\r
+X-Injected-Via-Gmane: http://gmane.org/\r
+To: notmuch@notmuchmail.org\r
+From: Rainer M Krug <Rainer@krugs.de>\r
+Subject: Re: Search for message ID broken?\r
+Date: Thu, 27 Feb 2014 12:16:17 +0100\r
+Lines: 109\r
+Message-ID: <m2ha7klsam.fsf@krugs.de>\r
+References: <m2mwhcx2uo.fsf@krugs.de> <m27g8gzv9f.fsf@guru.guru-group.fi>\r
+Mime-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-Complaints-To: usenet@ger.gmane.org\r
+X-Gmane-NNTP-Posting-Host: arn78-1-88-186-171-7.fbx.proxad.net\r
+User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin)\r
+Cancel-Lock: sha1:SSmNXjmdIt9huc7QUQOQEPooFmc=\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 27 Feb 2014 11:16:36 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Tomi Ollila <tomi.ollila@iki.fi> writes:\r
+\r
+> On Thu, Feb 27 2014, Rainer M Krug <Rainer@krugs.de> =\r
+wrote:\r
+>\r
+>> Hi\r
+>>\r
+>> I am using gnus and notmuch, and am trying to view the thread of the\r
+>> message I am viewing in gnus in notmuch.\r
+>>\r
+>> With help, I now have the following function:\r
+>>\r
+>> --8<---------------cut here---------------start------------->8---\r
+>> (defun rmk/do-gnus-notmuch-stuff ()\r
+>>   (interactive)\r
+>>   (unless (buffer-live-p gnus-summary-buffer)\r
+>>     (user-error "No open Gnus summary buffer!"))\r
+>>   (let ((message-id (with-current-buffer gnus-summary-buffer\r
+>>                   (mail-header-id (gnus-summary-article-header)))))\r
+>>     (message message-id)\r
+>>     (notmuch-search (concatenate 'string "id:" message-id)) ;; Now do th=\r
+e notmuch stuff\r
+>>     ))\r
+>> --8<---------------cut here---------------end--------------->8---\r
+>>\r
+>> which nicely extracts the message ID and calls notmuch-search, but I\r
+>> don't get any results. The buffer is called notmuch-search-id:<THE_MESSA=\r
+GE-ID>\r
+>>\r
+>> I tried to call notmuch-search interactively, using id:<THE_MESSAGE-ID>\r
+>> but also no results.\r
+>>\r
+>> I now tried the search from the comandline:\r
+>>\r
+>> ,----\r
+>> | Rainers-MacBook-Pro-2:~ rainerkrug$ notmuch search\r
+>> | id:<e89a8f923ce652c84304f2f03b05-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.o=\r
+rg>\r
+>> | -bash: syntax error near unexpected token `newline'\r
+>> | Rainers-MacBook-Pro-2:~ rainerkrug$ notmuch search\r
+>> | id:"<e89a8f923ce652c84304f2f03b05-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.=\r
+org>"\r
+>> | Rainers-MacBook-Pro-2:~ rainerkrug$=20\r
+>> `----\r
+>>\r
+>> If I search for the subject, it works, but not with the message ID.\r
+>>\r
+>> Is there something broken?\r
+>\r
+> Strip '<' and '>' from your command...\r
+\r
+ARRGH - so simple...\r
+\r
+Thanks a lot, working perfectly,\r
+\r
+Rainer\r
+=20\r
+\r
+>\r
+> Tomi\r
+>\r
+>\r
+>>\r
+>> I am using=20\r
+>>\r
+>> - GNU Emacs 24.3.1 (x86_64-apple-darwin13.0.0, Carbon Version 1.6.0\r
+>> AppKit 1265) of 2014-02-13 on Rainers-MacBook-Pro-2.local installed via\r
+>> homebrew emacs-mac\r
+>> - notmuch binary installed via homebrew q\r
+>>\r
+>> Cheers,\r
+>>\r
+>> Rainer\r
+>>\r
+>>\r
+>> --=20\r
+>> Rainer M. Krug\r
+>>\r
+>> email: RMKrug<at>gmail<dot>com\r
+>>\r
+>> _______________________________________________\r
+>> notmuch mailing list\r
+>> notmuch@notmuchmail.org\r
+>> http://notmuchmail.org/mailman/listinfo/notmuch\r
+\r
+=2D-=20\r
+Rainer M. Krug\r
+\r
+email: RMKrug<at>gmail<dot>com\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG/MacGPG2 v2.0.22 (Darwin)\r
+\r
+iQEcBAEBAgAGBQJTDx6FAAoJENvXNx4PUvmCs+QH/2TA9kTkdlmsYbIN4Gh7Ra0y\r
+eImOrzBq4WBeEtOxmJj/91qigrjIKN1u7pzG4nycf4rCmy5Kzgfjdhnfs+3pQYS3\r
+T20ztR/33a4yn8WGQf2rXjMqa4br76TlNX03C3qWHrb2Sg7mUuR/OwWIL7BPHK38\r
+rGS9cEIb5jlYDYnQfaKS9ZlLPFyaOOr5k2G3Txr+ZeJceUdODONUrlN3qsssff8J\r
+t6rdAO8zx6u18Cg0NnCh8dClKsAlfbbK/F3UvDKx1h6GSmJWClNUycNVUrEK8zFC\r
+niwUNq+X8HtSFo87doBbixmjXgVyVDr8o887ofOZbY8Z++jRq8K9yPMBehHD9o0=\r
+=FWPb\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r
+\r