From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Integration of Org mode and Gnus Date: Wed, 18 Jul 2007 02:55:01 +0200 Message-ID: <87myxupm3e.fsf@bzg.ath.cx> References: 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 1IAxot-0004aI-4p for emacs-orgmode@gnu.org; Tue, 17 Jul 2007 20:55:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IAxor-0004a6-0e for emacs-orgmode@gnu.org; Tue, 17 Jul 2007 20:55:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAxoq-0004a3-SU for emacs-orgmode@gnu.org; Tue, 17 Jul 2007 20:55:08 -0400 Received: from ik-out-1112.google.com ([66.249.90.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IAxoq-0004jW-BE for emacs-orgmode@gnu.org; Tue, 17 Jul 2007 20:55:08 -0400 Received: by ik-out-1112.google.com with SMTP id c29so32909ika for ; Tue, 17 Jul 2007 17:55:07 -0700 (PDT) In-Reply-To: (Georg C. F. Greve's message of "Tue\, 17 Jul 2007 21\:22\:39 +0200") 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@gnu.org "Georg C. F. Greve" writes: > Ideally, I'd like to make a decision on email when I find them in the > inboxes, and either archive them without a link, or archive them with a > link for my Org mode files. The same goes for mail I send. Alain Picard suggested something on this list earlier: http://article.gmane.org/gmane.emacs.orgmode/1771 It allows you to quickly store Gnus mails in a section of your org file. Just press ">" when on the mail you want to store. ------------------------------------------------------------------------ (setq *org-email-todo-tree-header* "* Email TODOS") (setq *org-email-todo-list-buffer* "~/org/bzg.org") (defun org-insert-email-as-current-todo (&optional kw) "Save a Gnus email into `*org-email-todo-list-buffer*' as a headline. If prefix is non-nil, ask for a specific state." (interactive "P") (let ((link (org-store-link nil))) (save-window-excursion (find-file *org-email-todo-list-buffer*) (goto-char (point-min)) (let ((state (if kw (completing-read "State: " (mapcar (lambda(x) (list x)) org-not-done-keywords) nil t "TODO") "TODO")) (point (re-search-forward *org-email-todo-tree-header* (point-max) nil))) (org-end-of-subtree t) (insert "\n** " state " " link)))) (message "Email saved in %s" *org-email-todo-list-buffer*)) (define-key gnus-summary-mode-map ">" 'org-insert-email-as-current-todo) ------------------------------------------------------------------------ You might be also interested by the "bookmark" facility that comes with Gnus: ,----[ gnus-bookmark.el ] | Set a Gnus bookmark (from the summary buffer): | M-x gnus-bookmark-set | | Jump to a Gnus bookmark: | M-x gnus-bookmark-jump | | Display a list of bookmarks: | M-x gnus-bookmark-bmenu-list `---- > So for sending mail and for moving mail to archive folders, I would > like to be able to memorise a link for the email in its *final > storage* location. If you want the links to your mails being always up-to-date, either create links when mails are at their final place or use nnir.el (as proposed by Jason). I'm afraid there is no easy way otherwise... > Does anyone have an idea of the "right" solution to this? I think the easiest solution is to use Gnus native bookmarks, except if your emails are part of something you have to do. Hope this helps! -- Bastien