From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: Mail composed using emacs --- saving a copy in an org file. Date: Thu, 15 Mar 2012 13:48:30 -0400 Message-ID: References: <44B0EAE8544C834188E8790873CDE1CC3EAF76@ARCEXCHANGE.arc.local> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6dee8e6349e1c04bb4bb308 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8EnL-0001wa-MM for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 13:49:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8Emv-0005kK-Gu for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 13:48:59 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:36430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8Emv-0005k0-4k for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 13:48:33 -0400 Received: by wibhj13 with SMTP id hj13so3647032wib.12 for ; Thu, 15 Mar 2012 10:48:30 -0700 (PDT) In-Reply-To: <44B0EAE8544C834188E8790873CDE1CC3EAF76@ARCEXCHANGE.arc.local> 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: Jos'h Fuller Cc: org-mode --0016e6dee8e6349e1c04bb4bb308 Content-Type: text/plain; charset=ISO-8859-1 I thought of this too. But the problem is that when opening an indirect buffer under an org tree entry, or even opening a capture buffer, the org star heading appears at the top of the buffer. Whereas to send e-mail, at least using the mail-send command I've been using, the e-mail header (recipient, subject header, etc) needs to be at the very top of the buffer. You could always enter the e-mail headers, send the e-mail, then delete them again. But there must be a better solution. On Thu, Mar 15, 2012 at 1:34 PM, Jos'h Fuller < Jos'h.Fuller@arcproductions.com> wrote: > Hi! > > > You could try doing something with org-capture and the > org-capture-templates so that you would be creating your email from the > start as an org tree entry under the appropriate location. You can override > the org-capture-before-finalize hook (see org-capture.el) to send the mail > when you're done typing in the indirect buffer and hit C-c C-c (or > org-capture-finalize). > > I have org-capture set up so I can use it immediately from anywhere in > Emacs with the C-cc keys: > > (define-key global-map "\C-cc" 'org-capture) > > That combined with a suitable template and the hook override might give > you what you're looking for. > > Hope this helps! > > Jos'h Fuller, Production Programmer > p: 416.682.5200 x5395 | f: 416.682.5209 | Arc Productions Ltd. | 230 > Richmond Street East | Toronto, ON M5A 1P4 | www.arcproductions.com > > > > > -----Original Message----- > > From: emacs-orgmode-bounces+jos'h.fuller=arcproductions.com@gnu.org > > [mailto:emacs-orgmode-bounces+jos'h.fuller=arcproductions.com@gnu.org] > > On Behalf Of Alan E. Davis > > Sent: Thursday, March 15, 2012 1:24 PM > > To: org-mode > > Subject: [O] Mail composed using emacs --- saving a copy in an org > > file. > > > > I am partial to just opening a mail buffer and writing email in Emacs. > > Just that. However, it would be great to save a copy in an org file. > > > > An emacs FAQ suggests sending a BCC or FCC to oneself. What I want is > > a copy stored in an org-mode subtree, with a convenient headline > > indicating the name of the recipient and the date. > > > > So far, I haven't gotten my head around the idea of using BABEL, and I > > still like text for email. My experiments with GNUS have not been > > very successful. So far. > > > > I apologize for the naive level of this and some of my other questions. > > Though I may not be getting the maximum usefulness of all of org-mode's > > features, those features I do use are awesome. Thank you. > > > > Alan Davis > > > --0016e6dee8e6349e1c04bb4bb308 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I thought of this too. But the problem is that when opening an indirect buf= fer under an org tree entry, or even opening a capture buffer, the org star= heading appears at the top of the buffer. Whereas to send e-mail, at least= using the mail-send command I've been using, the e-mail header (recipi= ent, subject header, etc) needs to be at the very top of the buffer.=A0
You could always enter the e-mail headers, send the e-mail, = then delete them again. But there must be a better solution.

On Thu, Mar 15, 2012 at 1:34 PM, Jos'h Ful= ler <Jos'h.Fuller@arcproductions.com> wrote:
Hi!


You could try doing something with org-capture and the org-capture-template= s so that you would be creating your email from the start as an org tree en= try under the appropriate location. You can override the org-capture-before= -finalize hook (see org-capture.el) to send the mail when you're done t= yping in the indirect buffer and hit C-c C-c (or org-capture-finalize).

I have org-capture set up so I can use it immediately from anywhere in Emac= s with the C-cc keys:

=A0 (define-key global-map "\C-cc" 'org-capture)

That combined with a suitable template and the hook override might give you= what you're looking for.

Hope this helps!

Jos'h Fuller, Production Programmer
p: 416.682.5200= x5395 | f: 416.682= .5209 | Arc Productions Ltd. | 230 Richmond Street East | Toronto, ON M= 5A 1P4 | www.ar= cproductions.com



> -----Original Message-----
> From: emacs-orgmode-bounces+jos'h.fuller=3Darcproductions.com@gnu.org
> [mailto:emac= s-orgmode-bounces+jos'h.fuller=3Darcproductions.com@gnu.org]
> On Behalf Of Alan E. Davis
> Sent: Thursday, March 15, 2012 1:24 PM
> To: org-mode
> Subject: [O] Mail composed using emacs --- saving a copy in an org
> file.
>
> I am partial to just opening a mail buffer and writing email in Emacs.=
> Just that. =A0However, it would be great to save a copy in an org file= .
>
> An emacs FAQ suggests sending a BCC or FCC to oneself. =A0What I want = is
> a copy stored in an org-mode subtree, with a convenient headline
> indicating the name of the recipient and the date.
>
> So far, I haven't gotten my head around the idea of using BABEL, a= nd I
> still like text for email. =A0 =A0 My experiments with GNUS have not b= een
> very successful. =A0So far.
>
> I apologize for the naive level of this and some of my other questions= .
> Though I may not be getting the maximum usefulness of all of org-mode&= #39;s
> features, those features I do use are awesome. =A0 Thank you.
>
> Alan Davis



--0016e6dee8e6349e1c04bb4bb308--