From mboxrd@z Thu Jan 1 00:00:00 1970 From: brian powell Subject: Re: Mail composed using emacs --- saving a copy in an org file. Date: Thu, 15 Mar 2012 14:05:04 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8ff253d47b81e304bb4beed4 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8F32-0002DL-65 for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 14:05:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8F2x-0001B9-46 for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 14:05:11 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:43353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8F2w-0001A0-Sm for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 14:05:07 -0400 Received: by ggeq1 with SMTP id q1so3977478gge.0 for ; Thu, 15 Mar 2012 11:05:05 -0700 (PDT) In-Reply-To: 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: "Alan E. Davis" Cc: org-mode --e89a8ff253d47b81e304bb4beed4 Content-Type: text/plain; charset=ISO-8859-1 * This would probably be a better "main hook" to use if you elaborate/implement my suggestion: vm-visit-folder-hook List of hook functions called just after VM visits a folder. It doesn't matter if the folder buffer already exists, this hook is run each time vm or vm-visit-folder is called interactively. It is not run after vm-mode is called. ** Then you change the mail folder into an OrgMode doc? *** I vaguely remember this, may be wrong; but, I believe VM when saved as folders, it is saved as simple text document you can then easily change into .org docs using SED/AWK/PERL/PANDOC whatever. On Thu, Mar 15, 2012 at 1:55 PM, brian powell wrote: > * Josh's answer seems great. > > ** I used to use VM in EMACS, worked great, highly recommend it--you could > then use EMACS hooks like: > > "vm-mail-hook > List of hook functions to be run after a Mail mode composition buffer has > been created to send a non specialized message, i.e. a message that is not > a reply, forward, digest, etc. VM runs this hook and then runs > vm-mail-mode-hook before leaving you in the Mail mode buffer. > > --and hook those hooks (the list of hooks is 20+ long) up to creating an > OrgMode document---maybe somewhat in the way Josh suggested--e.g.: > > (add-hook 'vm-summary-update-hook 'org-capture) > > > On Thu, Mar 15, 2012 at 1:24 PM, Alan E. Davis wrote: > >> 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 >> > > --e89a8ff253d47b81e304bb4beed4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
* This would probably be a better "main hook" to use if you = elaborate/implement my suggestion:

vm-visit-folder= -hook
List of hook functions called just after VM visits a folder= . It doesn't matter if the folder buffer already exists, this hook is r= un each time vm or vm-visit-folder is called interactively. It is not run a= fter vm-mode is called.

** Then you change the mail folder into an OrgMode doc?
=
*** I vaguely remember this, may be wrong; but, I believe VM= when saved as folders, it is saved as simple text document you can then ea= sily change into .org docs using SED/AWK/PERL/PANDOC whatever.

On Thu, Mar 15, 2012 at 1:55 PM, brian = powell <br= iangpowellms@gmail.com> wrote:
* Josh's answer seems great.

** I used to use VM in = EMACS, worked great, highly recommend it--you could then use EMACS hooks li= ke:

"vm-mail-hook
List of hook= functions to be run after a Mail mode composition buffer has been created = to send a non specialized message, i.e. a message that is not a reply, forw= ard, digest, etc. VM runs this hook and then runs vm-mail-mode-hook before = leaving you in the Mail mode buffer.

--and hook those hooks (the list of hooks is 20+ = long) up to creating an OrgMode document---maybe somewhat in the way Josh s= uggested--e.g.:

(add-hook 'vm-summary-update-h= ook 'org-capture)


On Thu, Mar 15, 2012 at 1:24 PM, Alan E= . Davis <lngndvs@gmail.com> wrote:
I am partial to just opening a mail buffer and writing email in Emacs.=A0 J= ust that.=A0 However, it would be great to save a copy in an org file.
<= br>An emacs FAQ suggests sending a BCC or FCC to oneself.=A0 What I want is= a copy stored in an org-mode subtree, with a convenient headline indicatin= g the name of the recipient and the date.

So far, I haven't gotten my head around the idea of using BABEL, an= d I still like text for email.=A0=A0 =A0 My experiments with GNUS have not = been very successful.=A0 So far.

I apologize for the naive level of= this and some of my other questions.=A0 Though I may not be getting the ma= ximum usefulness of all of org-mode's features, those features I do use= are awesome.=A0=A0 Thank you.

Alan Davis


--e89a8ff253d47b81e304bb4beed4--