From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Sending TODO items automatically to a specified email address Date: Tue, 22 Feb 2011 16:30:31 +0100 Message-ID: <87d3mkkrx4.fsf@altern.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=36319 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PruCM-0003BC-FF for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 10:30:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PruCL-0000MG-9F for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 10:30:46 -0500 Received: from mail-yx0-f169.google.com ([209.85.213.169]:57889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PruCL-0000MC-2Q for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 10:30:45 -0500 Received: by yxt33 with SMTP id 33so1212983yxt.0 for ; Tue, 22 Feb 2011 07:30:44 -0800 (PST) In-Reply-To: (Marvin Doyley's message of "Sat, 19 Feb 2011 15:36:18 -0500") 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: Marvin Doyley Cc: emacs-orgmode@gnu.org Hi Marvin, Marvin Doyley writes: > Does anybody know how to send TODO as email attachment. What would be > nice is if the TODO item is in the message and the text below it is > an attachment. Basically, this is how I remind myself of things that > I need to get done. The first step is to export selected entries to text files: #+begin_src emacs-lisp (defun org-export-headings-to-ascii (&optional match scope) "Export headings from the current buffer to ascii files." (interactive) (org-map-entries (lambda () (org-mark-subtree) (let ((head (org-get-heading)) (beg (point)) (end (org-end-of-subtree))) (org-export-region-as-ascii beg end t (get-buffer-create head)) (with-current-buffer (get-buffer-create head) (write-file (concat (replace-regexp-in-string " " "_" head) ".txt"))))) ;; see org-map-entries docstring match scope)) #+end_src Then to attach the files, which depends on what MUA you use. HTH, -- Bastien