From: Tomi Ollila Date: Sat, 20 Feb 2016 10:16:33 +0000 (+0200) Subject: Re: Loading a notmuch email buffer in Emacs from the command line X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fef852b408bf7bf55764e5b0dfa5cc0fd74edfe7;p=notmuch-archives.git Re: Loading a notmuch email buffer in Emacs from the command line --- diff --git a/52/b7c50f0b79ecd40af23098dfa7bfabf5ff5f46 b/52/b7c50f0b79ecd40af23098dfa7bfabf5ff5f46 new file mode 100644 index 000000000..eb574d4ae --- /dev/null +++ b/52/b7c50f0b79ecd40af23098dfa7bfabf5ff5f46 @@ -0,0 +1,82 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 59BFA6DE0A87 + for ; Sat, 20 Feb 2016 02:16:36 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.639 +X-Spam-Level: +X-Spam-Status: No, score=0.639 tagged_above=-999 required=5 tests=[AWL=-0.013, + SPF_NEUTRAL=0.652] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id ns8TcGpBjF5U for ; + Sat, 20 Feb 2016 02:16:33 -0800 (PST) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by arlo.cworth.org (Postfix) with ESMTP id 634CE6DE0274 + for ; Sat, 20 Feb 2016 02:16:32 -0800 (PST) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id 5478C1000CA; + Sat, 20 Feb 2016 12:16:33 +0200 (EET) +From: Tomi Ollila +To: Neeum Zawan , notmuch@notmuchmail.org +Subject: Re: Loading a notmuch email buffer in Emacs from the command line +In-Reply-To: <87egc8nhdh.fsf@nawaz.org> +References: <87egc8nhdh.fsf@nawaz.org> +User-Agent: Notmuch/0.21+70~g0bc8909 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sat, 20 Feb 2016 10:16:36 -0000 + +On Sat, Feb 20 2016, Neeum Zawan 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