From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: keeping track of sent emails in org? Date: Wed, 29 Oct 2008 13:37:25 +0100 Message-ID: <730F0A7D-DC99-4522-AAC1-58C6ACF33931@uva.nl> References: <871vy3tg9x.fsf@wolfram.com> <4905CE30.7040904@gmx.de> <4905D7AD.2090700@gmx.de> <878ws97vrr.fsf@gmail.com> <87skqhivq8.fsf@wolfram.com> <78FE502B-5C3D-4B7C-96FE-40AC2E17E19B@uva.nl> <87tzav4mn0.fsf@kassiopeya.MSHEIMNETZ> <31447.1225279641@localhost> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KvAIn-0001Jn-J3 for emacs-orgmode@gnu.org; Wed, 29 Oct 2008 08:37:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KvAIl-0001Iq-RC for emacs-orgmode@gnu.org; Wed, 29 Oct 2008 08:37:33 -0400 Received: from [199.232.76.173] (port=42371 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KvAIl-0001Il-NH for emacs-orgmode@gnu.org; Wed, 29 Oct 2008 08:37:31 -0400 Received: from ey-out-1920.google.com ([74.125.78.144]:30692) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KvAIl-0008KZ-7J for emacs-orgmode@gnu.org; Wed, 29 Oct 2008 08:37:31 -0400 Received: by ey-out-1920.google.com with SMTP id 4so1314168eyg.24 for ; Wed, 29 Oct 2008 05:37:29 -0700 (PDT) In-Reply-To: <31447.1225279641@localhost> 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: Pete Phillips Cc: emacs-orgmode Org-Mode On Oct 29, 2008, at 12:27 PM, Pete Phillips wrote: >>>>>> "Sebastian" == Sebastian Rose writes: > > Sebastian> Carsten Dominik writes: >>> In the git version, message ids are now used for links to gnus >>> articles. Could some of you please verify this change? > > Sebastian> How to? I did a `C-c l' in an outgoing message and a > Sebastian> `C-c C-l' in an Org-file. The link created was: > > Sebastian> [[file:emacs/gnus/News/drafts/drafts/2::asdf][Test for > Sebastian> outgoing mail link]] > > Sebastian> Is this, what's expected? Or do I have to set something > Sebastian> up first? > > As far as I am aware, message ID's are generated by the MTA, not the > MUA. Therefore I doubt that you can link to a message that hasn't been > through the MTA. Certainly in mh-e, when I'm editing a draft, there is > no Message-ID in the header, so I doubt if what Sebastien is trying to > do above will work (unless gnus generates the ID during composition of > the email ?) Sacha calls the link creating code in message-sent-hook, and I believe at this moment in time, the message-id is present. So `C-c l' before sending will not help. But a function in the hook cold get there. Here is an idea for storing links to sent messages in the outline- tree: Write a function that remembers the current location in the outline tree (by creating a marker), calls up a message buffer, and installs a special hook function that will create a link to the sent message and insert it back at the position in the outline tree where the email command was called. This could be made to work even from an agenda view. - Carsten