Re: [O] Mail composed using emacs --- saving a copy in an org file.
* Alan E. Davis lngn...@gmail.com wrote: 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. Hi! Maybe Memacs[1] can get you what you want. Fully automatically, without manual action (after initial setup). If you got your emails stored in IMAP or maildir format you can use the corresponding Memacs modules. They periodically index all your emails and derive an Org-mode archive file containing header information and an Org-mode timestamp which appears on your agenda as well. Drop me a line if it works for your requirements! 1. https://github.com/novoid/Memacs -- Karl Voit
Re: [O] Mail composed using emacs --- saving a copy in an org file.
* Wow! That looks like great software! Looks like it very well might do what Alan was looking for--and a whole lot more. Just out of curiosity: Have you, Karl, looked into linking into doing a mashup with GNOWSYS: http://en.wikipedia.org/wiki/GNOWSYS ** Maybe GNOWSYS would be used after using/applying MEMACS. Drop me a line if it works for your requirements! 1. https://github.com/novoid/Memacs -- Karl Voit
Re: [O] Mail composed using emacs --- saving a copy in an org file.
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@gnu.org [mailto:emacs-orgmode-bounces+jos'h.fuller=arcproductions@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
Re: [O] Mail composed using emacs --- saving a copy in an org file.
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.ful...@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@gnu.org [mailto:emacs-orgmode-bounces+jos'h.fuller=arcproductions@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
Re: [O] Mail composed using emacs --- saving a copy in an org file.
* 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 lngn...@gmail.com 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
Re: [O] Mail composed using emacs --- saving a copy in an org file.
* 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 briangpowel...@gmail.comwrote: * 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 lngn...@gmail.com 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
Re: [O] Mail composed using emacs --- saving a copy in an org file.
Alan E. Davis lngn...@gmail.com 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. Are you using an emacs package to send email? Or are you just composing your email in emacs, saving it as a file and sending it with some external MUA? If the former, you can probably find a hook that the emacs package uses (e.g. for mh-e, the appropriate hook would probably be mh-before-send-letter-hook), so that you can save the email in a file, possibly after transforming it suitably. In some sense this is similar, but in another sense opposite, to Jos'h Fuller's suggestion: in his scenario, you use org-capture to compose the message and use an org-capture hook to transform it suitably and actually send it; in this scenario, you compose the mail in some mail package (there are several) and you use a hook that the mail package provides to transform it suitably and save it in some org file. OTOH, if you use an external MUA, Jos'h 's approach might still work whereas this one has no hope. But if you can live in emacs, why live anywhere else? :-) Nick 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.
Re: [O] Mail composed using emacs --- saving a copy in an org file.
* Fully agree with nick--especially about the please be more specific about the MUA-part--mh-e is another possibility--written by another person I used to work with (mh)--vm was written by Kyle Jones--yet another person I used to work with... ** Come to think of it; I used to use RMAIL too in EMACS--Kyle wrote VM to include MIME/mail extensions, etc. You mentioned that you tried GNUS as a mail reader, etc.--and you didn't get what you wanted: = In a nutshell: MH/mh-e is the quintessential all-in-one extremely customizable mail package and mh-e is the EMACS mode for it--absolutely amazing and useful for email (written by W3Org/consortium people I used to work with)--probably overkill for you. RMAIL is old, slightly outdated--but very useful and simple, VM, is better for you probably: This site/guru agrees with me--VM is your best choice: Emacs has three built-in mail reading and sending interfaces: RMAIL RMAIL is a basic (and the default) mail reading package. MH-E MH-E is a front-end for the MH mail tools. Gnus Gnus is mainly a Usenet reading package but has capabilities for reading mail and doing other strange things. Now that you know your options inherent in Emacs I'm going to tell you about my favorite non-standard mail user agent (MUA): VM (View Mail) written by Kyle Jones. = http://linuxgazette.net/109/simpson.html Back to hooks (that one may use to hook to org-capture) VM has a lot of them ready for you to play with!: http://www.wonderworks.com/vm/user-manual/vm_21.html On Thu, Mar 15, 2012 at 3:19 PM, Nick Dokos nicholas.do...@hp.com wrote: Alan E. Davis lngn...@gmail.com 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. Are you using an emacs package to send email? Or are you just composing your email in emacs, saving it as a file and sending it with some external MUA? If the former, you can probably find a hook that the emacs package uses (e.g. for mh-e, the appropriate hook would probably be mh-before-send-letter-hook), so that you can save the email in a file, possibly after transforming it suitably. In some sense this is similar, but in another sense opposite, to Jos'h Fuller's suggestion: in his scenario, you use org-capture to compose the message and use an org-capture hook to transform it suitably and actually send it; in this scenario, you compose the mail in some mail package (there are several) and you use a hook that the mail package provides to transform it suitably and save it in some org file. OTOH, if you use an external MUA, Jos'h 's approach might still work whereas this one has no hope. But if you can live in emacs, why live anywhere else? :-) Nick 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.