emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Ethan Ligon <ligon@are.berkeley.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Email from org?
Date: Fri, 30 Jul 2010 15:21:01 -0600	[thread overview]
Message-ID: <87aap84qf6.fsf@gmail.com> (raw)
In-Reply-To: <loom.20100729T003507-420@post.gmane.org> (Ethan Ligon's message of "Wed, 28 Jul 2010 23:29:35 +0000 (UTC)")

Hi Ethan,

Ethan Ligon <ligon@are.berkeley.edu> writes:

[...]
>
> Then a transition in workflow state from EMAIL to WAITING would cause
> (perhaps via org-mime) the construction of an email
>
>   From: ligon@are.berkeley.edu
>   To: kenneth@example.com
>   Subject: What is the optimal frequency?
>   Date: Wed, 28 Jul 2010 13:36:14 -0700
>
>   Dear Ken-
>
>   Could you please let me know when you've made progress on computing
>   the optimal frequency?
>
>   Thanks,
>   -Ethan
>
> which would then be automagically fed into an SMTP client for
> delivery.  Critically, one would *not* need to interrupt one's work
> flow in order to go mess around with a mail client; a simple \C-c\C-t
> or similar would send the email on its way.
>

The following function might get part way towards what you describe.

--8<---------------cut here---------------start------------->8---
(defun org-send-email-of-headline ()
  (interactive)
  (let ((subject (org-get-heading t))
        (to (org-entry-get (point) "mailto")))
    (outline-mark-subtree)
    (org-mime-org-buffer-htmlize)
    (save-excursion
      (message-goto-to) (insert to)
      (message-goto-subject) (insert subject))))
--8<---------------cut here---------------end--------------->8---

Best -- Eric

  parent reply	other threads:[~2010-07-30 21:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-26 19:13 Email from org? Ethan Ligon
2010-07-26 19:29 ` Thomas S. Dye
2010-07-26 20:14 ` BKnoth
2010-07-26 20:34 ` Eric Schulte
2010-07-28 23:29   ` Ethan Ligon
2010-07-29  7:08     ` David Maus
2010-07-30 21:21     ` Eric Schulte [this message]
2010-07-31  1:25       ` Ethan Ligon
2010-08-10 15:44         ` Eric Schulte
2010-08-10 21:03           ` David Maus
2010-08-13  9:09       ` Eric S Fraga

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=87aap84qf6.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ligon@are.berkeley.edu \
    /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).