Search for message ID broken?

Rainer M Krug Rainer at krugs.de
Thu Feb 27 03:16:17 PST 2014


Tomi Ollila <tomi.ollila at iki.fi> writes:

> 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-hpIqsD4AKlfQT0dZR+AlfA at public.gmane.org>
>> | -bash: syntax error near unexpected token `newline'
>> | Rainers-MacBook-Pro-2:~ rainerkrug$ notmuch search
>> | id:"<e89a8f923ce652c84304f2f03b05-hpIqsD4AKlfQT0dZR+AlfA at public.gmane.org>"
>> | 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...

ARRGH - so simple...

Thanks a lot, working perfectly,

Rainer
 

>
> 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

-- 
Rainer M. Krug

email: RMKrug<at>gmail<dot>com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140227/ba8abc10/attachment.pgp>


More information about the notmuch mailing list