From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ross Patterson Subject: Re: keeping track of sent emails in org? Date: Wed, 29 Oct 2008 10:41:33 -0700 Message-ID: <874p2vuwmq.fsf@transitory.lefae.org> 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> <730F0A7D-DC99-4522-AAC1-58C6ACF33931@uva.nl> 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 1KvF6X-0001wy-FM for emacs-orgmode@gnu.org; Wed, 29 Oct 2008 13:45:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KvF6W-0001wQ-SL for emacs-orgmode@gnu.org; Wed, 29 Oct 2008 13:45:12 -0400 Received: from [199.232.76.173] (port=38615 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KvF6W-0001wH-ES for emacs-orgmode@gnu.org; Wed, 29 Oct 2008 13:45:12 -0400 Received: from main.gmane.org ([80.91.229.2]:40715 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KvF6V-0001HZ-Qr for emacs-orgmode@gnu.org; Wed, 29 Oct 2008 13:45:12 -0400 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1KvF6N-0003Ae-5Q for emacs-orgmode@gnu.org; Wed, 29 Oct 2008 17:45:03 +0000 Received: from rpatterson.net ([69.12.174.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Oct 2008 17:45:03 +0000 Received: from me by rpatterson.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Oct 2008 17:45:03 +0000 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 Carsten Dominik writes: > 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. Maybe this would be best integrated with clocking time? IOW, the link will be added as a note to the headline the you are currently clocked into. Maybe it could even be integrated with an option to clock out and back into the same task adding the link to the clock out note. Just call me pie-in-the-sky-guy. :) Ross