From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Stegemann Subject: Store link upon sending a message Date: Fri, 01 Oct 2010 11:11:16 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=42857 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1beL-0002wS-C1 for emacs-orgmode@gnu.org; Fri, 01 Oct 2010 05:11:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1beK-0001g3-EC for emacs-orgmode@gnu.org; Fri, 01 Oct 2010 05:11:29 -0400 Received: from lo.gmane.org ([80.91.229.12]:54155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1beK-0001fw-6d for emacs-orgmode@gnu.org; Fri, 01 Oct 2010 05:11:28 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P1beI-0006oB-D2 for emacs-orgmode@gnu.org; Fri, 01 Oct 2010 11:11:26 +0200 Received: from london.zeitform.net ([146.140.213.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Oct 2010 11:11:26 +0200 Received: from ulf-news by london.zeitform.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Oct 2010 11:11:26 +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 It often happens to me that I send a message (Gnus) and need to keep a reference of the mail just sent as link in an org file. In Gnus copies of sent messages can be store in one or more groups using the `Gcc' header. So I usually select the group where the copy went right after sending and do an `org-store-link' on the newly created copy. It would of course be much nicer if the org link could be stored automagically upon sending the message (or more precisely upon creating the copy of the message). Such functionality could certainly be introduced in `gnus-inews-do-gcc' where group and article number of the copy are determined and the actual copy is written. But that would mean to actually modify Gnus code which is probably not a good and clean approach. As I'm not very familiar with the Gnus code I'll probably have to ask at the Gnus towers if it's possible to get hold of the group and article number of the last Gcc message created. But maybe someone around here has a partly or completely different idea how to achieve the described behaviour? Ulf