From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juergen Christoffel Subject: Re: email ui choices? Date: Wed, 15 Jul 2015 00:29:54 +0200 Message-ID: <20150714222954.GC14491@unser.net> References: <20150714084809.GB11584@unser.net> <87lhejvwox.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZF8i7-0007CC-7m for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 18:30:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZF8i4-0001FU-2z for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 18:29:59 -0400 Received: from nexus.cynix.net ([213.239.194.196]:53163) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZF8i3-0001Ex-Hb for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 18:29:56 -0400 Content-Disposition: inline In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Tue, Jul 14, 2015 at 07:10:20AM -0400, Matt Price wrote: > [...] >(defun mime-send-mail () >"org-mime-subtree and HTMLize" >(interactive) >(org-mark-subtree) >;; wish I could get the PARENT headline here! >;; then figure out how to set subject to that headline! Matt, you can get to the PARENT headline like this: (defun org-inspect () (interactive) (org-mark-subtree) (save-excursion (re-search-backward "^\\* ") (message (nth 4 (org-heading-components))) (sit-for 2))) and still have your marked subtree afterwards. Inserting these as headers should be possible: - set up a buffer with your subtree - go to the beginning of the buffer - add To: - add Subject: - add empty line Call (mail-send-and-exit) to send the message. Tested in Aquamacs under OSX with its defaults, this brought up a Thunderbird [*] window with the To and Subject filled in from the buffer. Selecting another MUA via Emacs' variables might work the same. --jc [*] Yes, while I use mutt, Thunderbird is, for organizational reasons, my unbeloved default mailer on this machine. -- A great many of today's security technologies are "secure" only because no-one has ever bothered attacking them. -- Peter Gutmann