emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Price <moptop99@gmail.com>
To: Juergen Christoffel <jc.org14@cynix.net>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: email ui choices?
Date: Tue, 14 Jul 2015 19:22:56 -0400	[thread overview]
Message-ID: <CAN_Dec_cDMdoGuriEjvPDEpJH1Ge6wWPf4-UGHRCF1xnJyypZw@mail.gmail.com> (raw)
In-Reply-To: <20150714222954.GC14491@unser.net>

[-- Attachment #1: Type: text/plain, Size: 1634 bytes --]

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 ()
>  (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.
>

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
>
>
>

[-- Attachment #2: Type: text/html, Size: 2487 bytes --]

  reply	other threads:[~2015-07-14 23:23 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
2015-07-14 23:22         ` Matt Price [this message]
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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAN_Dec_cDMdoGuriEjvPDEpJH1Ge6wWPf4-UGHRCF1xnJyypZw@mail.gmail.com \
    --to=moptop99@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jc.org14@cynix.net \
    /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://git.savannah.gnu.org/cgit/emacs/org-mode.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).