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 12:04:52 +0200 Message-ID: <87r6n6ni2j.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 1IB6P8-00084w-9o for emacs-orgmode@gnu.org; Wed, 18 Jul 2007 06:05:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IB6P4-00084O-G8 for emacs-orgmode@gnu.org; Wed, 18 Jul 2007 06:05:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IB6P4-00084L-9g for emacs-orgmode@gnu.org; Wed, 18 Jul 2007 06:05:06 -0400 Received: from ug-out-1314.google.com ([66.249.92.175]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IB6P1-0002hP-Qe for emacs-orgmode@gnu.org; Wed, 18 Jul 2007 06:05:04 -0400 Received: by ug-out-1314.google.com with SMTP id 34so279762ugf for ; Wed, 18 Jul 2007 03:04:57 -0700 (PDT) In-Reply-To: (Georg C. F. Greve's message of "Wed\, 18 Jul 2007 10\:03\:57 +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: > Moving email is trivial -- you just need to call > > gnus-summary-move-article > > to move things to the place you want to archive them. But that function > does not return the URL of the moved article (as one might hope). I think there is another solution: 1. Make C-c l (org-store-link) store message-id so that org-insert-link will insert something like: [[gnus:nnml:mail.compas#<8c930aea07071...@server>][Message description] intead of the current format: [[gnus:nnml:mail.compas#2306][Message description]] 2. If `gnus-registry.el' is in use, rely on it to double-check in which group the message is. If it's not in use, rely on the link infos. It's straightforward to get the group from a message-id with gnus-registry.el: (cddr (assoc "message-id" gnus-registry-alist)) Then with the group and the message-id you'll find the email. I don't go further because this method relies on org-store-link being aware of message-id, but that should not be hard to turn this on, maybe as an option. Anyway, i think gnus-registry comes in handy here. Cheers, -- Bastien