[notmuch] Snippet to jump to message in Gnus from notmuch-show buffer

Carl Worth cworth at cworth.org
Fri Nov 27 05:31:53 PST 2009


[Sorry for the previous abbreviated reply---I suppose an early send is
bound to happen when you give me a new function with a "C-c C-c"
binding. ;-)]

On Tue, 24 Nov 2009 09:02:46 +0100, Tassilo Horn <tassilo at member.fsf.org> wrote:
> I'm a Gnus user and use notmuch mostly for searching.  When I want to
> reply to a message, I need to get back to Gnus, so that my Gnus posting
> styles (gcc into that group, right email address, correct signature,...)
> are applied.

Oh, good. I've been hoping to be able to get some advice from gnus
users. I want to figure out how to get gnus support for viewing
encrypted messages, etc.

Do you happen to know some good documentation for how to get started
with gnus for reading mail? I'd be happy even with the bare minimum to
just get gnus to view one single message from out of my mail
store. (Which is something I tried to figure out from the gnus manual,
but I never succeeded at.)

> Therefore, I created this small snippet.  Now C-c C-c inside some
> message in the *notmuch-show* buffer opens this article in a Gnus
> *Summary* buffer, where I can reply to it, forward it, ...

And this would be exactly the thing I would want for exploring gnus, if
only I could get it working.

If I just try to run it, I get:

	Symbol's function definition is void: org-gnus-follow-link

And I suppose that's expected since I don't have gnus "running". If I
try to start gnus with "M-x gnus", I get:

	Unable to open server nntp+news, go offline? (y or n) 

What's the simplest way for me to tell gnus that I won't be using it in
any other way than with the "nnimap+" folder I can tell you're using in
your snippet?

> BTW, why does `notmuch-show-get-message-id' prefix the message-id with
> "id:"?

That's to make the returned value a valid search string for sake of
"notmuch search". Compare to the way `notmuch-search-find-thread-id'
includes a "thread:" prefix.

-Carl


More information about the notmuch mailing list