From: Tomi Ollila <tomi.ollila@iki.fi>
To: Neeum Zawan <mailinglists@nawaz.org>, notmuch@notmuchmail.org
Subject: Re: Loading a notmuch email buffer in Emacs from the command line
Date: Sat, 20 Feb 2016 12:16:33 +0200 [thread overview]
Message-ID: <m2si0n660u.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <87egc8nhdh.fsf@nawaz.org>
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
next prev parent reply other threads:[~2016-02-20 10:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-20 4:19 Loading a notmuch email buffer in Emacs from the command line Neeum Zawan
2016-02-20 10:16 ` Tomi Ollila [this message]
2016-02-24 17:21 ` Suvayu Ali
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2si0n660u.fsf@guru.guru-group.fi \
--to=tomi.ollila@iki.fi \
--cc=mailinglists@nawaz.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).