From: Juergen Christoffel <jc.org14@cynix.net>
To: emacs-orgmode@gnu.org
Subject: Re: email ui choices?
Date: Wed, 15 Jul 2015 00:29:54 +0200 [thread overview]
Message-ID: <20150714222954.GC14491@unser.net> (raw)
In-Reply-To: <CAN_Dec8mcpO8TSAkueu2pmADr7+vxYr9sUU=B1MHL4+6R6vn6w@mail.gmail.com>
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: <your target address>
- add Subject: <the heading component>
- 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
next prev parent reply other threads:[~2015-07-14 22:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-14 0:16 email ui choices? Matt Price
2015-07-14 8:48 ` Juergen Christoffel
2015-07-14 10:51 ` Eric Abrahamsen
2015-07-14 11:10 ` Matt Price
2015-07-14 11:27 ` Eric Abrahamsen
2015-07-14 20:51 ` Matt Price
2015-07-15 1:46 ` Eric Abrahamsen
2015-07-14 22:29 ` Juergen Christoffel [this message]
2015-07-14 23:22 ` Matt Price
2015-07-14 11:35 ` Rasmus
2015-07-14 11:41 ` Eric Abrahamsen
2015-07-14 12:01 ` Rasmus
2015-07-14 14:47 ` Jorge A. Alfaro-Murillo
2015-07-15 1:14 ` Eric Abrahamsen
2015-07-15 8:56 ` Rasmus
2015-07-15 9:27 ` Eric Abrahamsen
2015-07-15 9:37 ` Rasmus
2015-07-16 3:27 ` Eric Abrahamsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150714222954.GC14491@unser.net \
--to=jc.org14@cynix.net \
--cc=emacs-orgmode@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.