Re: Loading a notmuch email buffer in Emacs from the command line

Subject: Re: Loading a notmuch email buffer in Emacs from the command line

Date: Sat, 20 Feb 2016 12:16:33 +0200

To: Neeum Zawan, notmuch@notmuchmail.org

Cc:

From: Tomi Ollila


On Sat, Feb 20 2016, Neeum Zawan <mailinglists@nawaz.org> wrote:

> Hi,
>
> Is there a way (e.g. with emacsclient) to load up a particular email
> thread or email message buffer from the command line?

quick test yields that at least

  emacs -f notmuch --eval '(notmuch-search "id:87egc8nhdh.fsf@nawaz.org")'

works (maybe not exactly as desired, but based on that more should
be able to be achieved with moderate ease...)

>
> Also, for those familiar with Org mode, I'd like to do something
> similar: Suppose I have the ID of an email. Can I, from the command
> line, launch a capture template with a prepopulated link to the notmuch
> message?
>
> The rationale: I'd like to switch to using alot for reading emails as
> opposed to the Emacs interface. However, there will be times where I'd
> like to make Org mode notes about an email or view it within Emacs. So
> I'd like to set up a command from alot to open it in Emacs.
>
> -- 
> A neutrino walks into a bar. The bartender asks him if he wants 
> anything to drink. "No thanks, just passing through."
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch

Thread: