From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Stegemann Subject: Re: Store link in message mode Date: Mon, 15 Nov 2010 17:00:07 +0100 Message-ID: References: <874obivco0.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=58133 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PI1Tj-0001av-RE for emacs-orgmode@gnu.org; Mon, 15 Nov 2010 11:00:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PI1Tf-0004jw-68 for emacs-orgmode@gnu.org; Mon, 15 Nov 2010 11:00:23 -0500 Received: from lo.gmane.org ([80.91.229.12]:35191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PI1Tf-0004ji-0Q for emacs-orgmode@gnu.org; Mon, 15 Nov 2010 11:00:19 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PI1Te-00053V-4D for emacs-orgmode@gnu.org; Mon, 15 Nov 2010 17:00:18 +0100 Received: from london.zeitform.net ([146.140.213.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Nov 2010 17:00:18 +0100 Received: from ulf-news by london.zeitform.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Nov 2010 17:00:18 +0100 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 Hi Tassilo, Tassilo Horn wrote: >> If you think --despite of those issues-- it's worth adding the >> creation of gnus links while in message mode I could provide a patch. > > I'm curious how you are able to determine where a message will be filed > after sending it off. I mean, you neither have the Message-Id at that > point (unless that's added to `message-generate-headers-first'), Touché, good point. I had set `message-generate-headers-first' to t ages ago, so obviously I didn't realise that this is not the default. You are absolutely right that generating the Message-ID during message setup is a perquisite for creating a link. It's probably better, to grab all necessary headers after the message has been sent (and that's what I originally did). But this means we cannot use `org-store-link' in message mode and is also impractical when using `gnus-delay-article'. Hmmm, thinking about it, maybe `org-store-link' could create the Message-ID and insert it if it's not already present. I should have a look. > nor do you know the correct group, at least if there are more than one > in the Gcc header. With multiple groups in Gcc I currently use the last one ... but it could also be the first one, all, a user specified or whatever else seems feasible. Ulf