From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Email from org? Date: Fri, 30 Jul 2010 15:21:01 -0600 Message-ID: <87aap84qf6.fsf@gmail.com> References: <8739v6dlss.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=42984 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oex0v-0006Ag-2x for emacs-orgmode@gnu.org; Fri, 30 Jul 2010 17:21:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oex0t-0007pv-K6 for emacs-orgmode@gnu.org; Fri, 30 Jul 2010 17:21:08 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:41833) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oex0t-0007ph-Eh for emacs-orgmode@gnu.org; Fri, 30 Jul 2010 17:21:07 -0400 Received: by pxi7 with SMTP id 7so1329002pxi.0 for ; Fri, 30 Jul 2010 14:21:06 -0700 (PDT) In-Reply-To: (Ethan Ligon's message of "Wed, 28 Jul 2010 23:29:35 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ethan Ligon Cc: emacs-orgmode@gnu.org Hi Ethan, Ethan Ligon 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