From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: email ui choices? Date: Tue, 14 Jul 2015 19:22:56 -0400 Message-ID: References: <20150714084809.GB11584@unser.net> <87lhejvwox.fsf@ericabrahamsen.net> <20150714222954.GC14491@unser.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf307ac3a5472995051ade1eb9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZF9XQ-0006vF-Gk for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 19:23:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZF9XN-0001YU-50 for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 19:23:00 -0400 Received: from mail-vn0-x22f.google.com ([2607:f8b0:400c:c0f::22f]:36150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZF9XM-0001XX-Vf for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 19:22:57 -0400 Received: by vnbg129 with SMTP id g129so2731654vnb.3 for ; Tue, 14 Jul 2015 16:22:56 -0700 (PDT) In-Reply-To: <20150714222954.GC14491@unser.net> 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: Juergen Christoffel Cc: Org Mode --20cf307ac3a5472995051ade1eb9 Content-Type: text/plain; charset=UTF-8 On Tue, Jul 14, 2015 at 6:29 PM, Juergen Christoffel wrote: > 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. > Huh, that is totally cool. Do you think it would be possible to do the same thing with a mime/multipart message? WHen I try to run org-mime-htmlize first, thunderbird doesn't recognize the parts. > > --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 > > > --20cf307ac3a5472995051ade1eb9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Tue, Jul 14, 2015 at 6:29 PM, Juergen Christoffel = <jc.org14@cynix.= net> wrote:
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 ()
=C2=A0(interactive)
=C2=A0(org-mark-subtree)
=C2=A0(save-excursion
=C2=A0 =C2=A0(re-search-backward "^\\* ")
=C2=A0 =C2=A0(message (nth 4 (org-heading-components)))
=C2=A0 =C2=A0(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.

Huh, that is totally cool.=C2=A0 Do you think = it would be possible to do the same thing with a mime/multipart message? WH= en I try to run org-mime-htmlize first, thunderbird doesn't recognize t= he parts. =C2=A0

=C2=A0 =C2=A0 =C2=A0 =C2=A0 --jc

[*] Yes, while I use mutt, Thunderbird is, for organizational reasons, my unbeloved default mailer on this machine.


--
=C2=A0A great many of today's security technologies are "secure&qu= ot; only because
=C2=A0no-one has ever bothered attacking them. -- Peter Gutmann



--20cf307ac3a5472995051ade1eb9--