From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alain Picard Subject: org-mode and Gnus integration Date: Sun, 13 May 2007 23:02:36 +1000 Message-ID: <87bqgo98r7.fsf@memetrics.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HnDqi-0007pK-C3 for emacs-orgmode@gnu.org; Sun, 13 May 2007 09:10:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HnDqg-0007p4-Vi for emacs-orgmode@gnu.org; Sun, 13 May 2007 09:10:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HnDqg-0007p1-Rw for emacs-orgmode@gnu.org; Sun, 13 May 2007 09:10:54 -0400 Received: from eth6427.nsw.adsl.internode.on.net ([59.167.235.26] helo=mx.memetrics.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HnDj1-0007ic-IJ for emacs-orgmode@gnu.org; Sun, 13 May 2007 09:03:00 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.memetrics.com (Postfix) with ESMTP id 7CFA73C6DD for ; Sun, 13 May 2007 23:02:49 +1000 (EST) Received: from mx.memetrics.com ([192.168.10.11]) by localhost (mx.memetrics.com [192.168.10.11]) (amavisd-new, port 10024) with ESMTP id 29006-08 for ; Sun, 13 May 2007 23:02:49 +1000 (EST) Received: from ewell.memetrics.local (ewell.memetrics.local [192.168.10.18]) by mx.memetrics.com (Postfix) with ESMTP id 398C93C566 for ; Sun, 13 May 2007 23:02:49 +1000 (EST) Received: from ap by ono-sendai with local (Exim 4.62) (envelope-from ) id 1HnDij-0004cZ-6p for emacs-orgmode@gnu.org; Sun, 13 May 2007 23:02:41 +1000 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: emacs-orgmode Hello all. I've started trying to use the GTD methodology, and have found org-mode absolutely terrific for this purpose. However I still couln't get my mail to work just right (I use Gnus for mail). What I'm really missing is a way to add "labels", or "tags" to mail messages, so that I can then narrow the mail buffers to only those messages matching a tag (e.g. TODO, NEXT, WAITING, etc). Then I discovered the linking facility; in particular how org-mode can link directly to a gnus post, so I figured, since I keep my TODOs in an org file anyhow, I might as well keep the list of messages requiring actions in there as well, in the form of links. The following little hack allows to me to file, with 1 keystroke (I use ">" for "send to the todo list") as a link into my org file. To use this, you need an entry somewhere in your file (called *org-email-todo-list-buffer*) which will match *org-email-todo-tree-header*. I don't know if anyone else will find this useful, or already has a better way of handling this sort of thing (I haven't found it yet, and I did look). Ideally, I'd like to be able to maybe select different types of tags directly when entering (e.g. maybe "C-u 1 >" --> WAITING "C-u 2 >" --> NEXT etc) but I haven't implemented that yet. I visit my todo file so often it's not a huge burder to just reclassify all the TODOs rapidly in one go. Any comments will be welcome. snippet below. ================================================================ (defvar *org-email-todo-tree-header* "* Email TODOS") (defvar *org-email-todo-list-buffer* "~/org/work.org") (defun org-insert-email-as-current-todo () (interactive) (let ((link (org-store-link nil))) (save-window-excursion (find-file *org-email-todo-list-buffer*) (goto-char (point-min)) (let ((point (re-search-forward *org-email-todo-tree-header* (point-max) nil))) (org-end-of-subtree t) (insert "\n** TODO -- ") (insert link)))) (message "Saved.")) (define-key gnus-summary-mode-map ">" 'org-insert-email-as-current-todo) ================================================================ -- Please read about why Top Posting is evil at: http://en.wikipedia.org/wiki/Top-posting and http://www.dickalba.demon.co.uk/usenet/guide/faq_topp.html Please read about why HTML in email is evil at: http://www.birdhouse.org/etc/evilmail.html