Search for message ID broken?
Tomi Ollila
tomi.ollila at iki.fi
Thu Feb 27 02:48:28 PST 2014
On Thu, Feb 27 2014, Rainer M Krug <Rainer at krugs.de> 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:<THE_MESSAGE-ID>
>
> I tried to call notmuch-search interactively, using id:<THE_MESSAGE-ID>
> but also no results.
>
> I now tried the search from the comandline:
>
> ,----
> | Rainers-MacBook-Pro-2:~ rainerkrug$ notmuch search id:<e89a8f923ce652c84304f2f03b05 at google.com>
> | -bash: syntax error near unexpected token `newline'
> | Rainers-MacBook-Pro-2:~ rainerkrug$ notmuch search id:"<e89a8f923ce652c84304f2f03b05 at google.com>"
> | 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: RMKrug<at>gmail<dot>com
>
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
More information about the notmuch
mailing list