From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Ted Roden: Re: message: links Date: Tue, 6 May 2008 09:20:58 +0200 Message-ID: <6CF40BD8-903A-4B2D-A2E1-FFF7038EAC9A@science.uva.nl> References: <3087.1210028235@alphaville.zko.hp.com> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: multipart/mixed; boundary="===============2044709709==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JtHU4-0002XO-Gv for emacs-orgmode@gnu.org; Tue, 06 May 2008 03:21:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JtHU3-0002Wz-Mr for emacs-orgmode@gnu.org; Tue, 06 May 2008 03:21:08 -0400 Received: from [199.232.76.173] (port=48519 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JtHU3-0002Wu-F4 for emacs-orgmode@gnu.org; Tue, 06 May 2008 03:21:07 -0400 Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JtHU3-0005p1-5w for emacs-orgmode@gnu.org; Tue, 06 May 2008 03:21:07 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JtHTy-0004vR-Mm for emacs-orgmode@gnu.org; Tue, 06 May 2008 03:21:02 -0400 In-Reply-To: <3087.1210028235@alphaville.zko.hp.com> 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: nicholas.dokos@hp.com Cc: org-mode mailing list --===============2044709709== Content-Type: multipart/alternative; boundary=Apple-Mail-10--176975206 --Apple-Mail-10--176975206 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi Nick, thanks for forwarding, and thanks for answering to Ted's question. I really appreciate if people do this as much as possible and in this way save me work. As additional info: A recent version of Org will also contain the module org-mac-message.el (written by no other than John Wiegley) which will implement following message links just like Ted did. In addition to this, it will allow you to create a link to the currently active message in Mail.app. I use this to create links to emails with remember templates. I have an "e" template defined like this. ("Emailtask" ?e "* TODO %?\n %(org-mac-message-get-link)" "~/org/ gtd.org" "Tasks" nil) It will create a remember buffer that already contains a link to that message. - Carsten On May 6, 2008, at 12:57 AM, Nick Dokos wrote: > Ted seems to have meant to copy the list, but since he didn't, I am > taking > the liberty of forwarding his message. > > Nick > > ------- Forwarded Message > Message-Id: <4982BA80-5FF6-4601-A894-84D97445B07A@gmail.com> > From: Ted Roden > To: nicholas.dokos@hp.com > In-Reply-To: <23074.1210022131@alphaville.zko.hp.com> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > Content-Transfer-Encoding: 7bit > Mime-Version: 1.0 (Apple Message framework v919.2) > Subject: Re: [Orgmode] message: links > Date: Mon, 5 May 2008 17:57:48 -0400 > References: <23074.1210022131@alphaville.zko.hp.com > > > X-Mailer: Apple Mail (2.919.2) > > >> I think you should read the "Adding hyperlink types" appendix in the >> Org >> manual. > > Awesome, thanks for pointing that out. The documentation available > inside emacs was for an old installation of org-mode and it doesn't > appear to have that section. I was able to find that section on the > site though. > > In case anyone else wants it, I just added the following code to > my .emacs file and it works like a charm now. Keep in mind, this will > probably only work on a mac (I'm using the "open" command). > > (require 'org) > (org-add-link-type "message" 'org-message-open) > > (defun org-message-open (path) > "Open message:// links in the registered mail reader on a mac." > (shell-command (concat "open message:" path))) > > > ------- End of Forwarded Message > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Apple-Mail-10--176975206 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi = Nick,

thanks for forwarding, and thanks for answering = to Ted's question.  I really appreciate if people do this as much = as possible and in this way save me work.

As = additional info:

A recent version of Org will = also contain the module org-mac-message.el
(written by no = other than John Wiegley) which will implement following message links = just like Ted did.  In addition to this, it will allow you to = create a link to the currently active message in Mail.app.  I use = this to create links to emails with remember templates.  I have an = "e" template defined like = this.

("Emailtask" ?e "* TODO %?\n =  %(org-mac-message-get-link)" "~/org/gtd.org" "Tasks" = nil)

It will create a remember buffer that = already contains a link to that message.

- = Carsten

On May 6, 2008, at 12:57 AM, Nick Dokos = wrote:
Ted seems to have meant to copy the list, but since he = didn't, I am taking
the liberty of forwarding his = message.

Nick

------- Forwarded Message
Message-Id: = <4982BA80-5F= F6-4601-A894-84D97445B07A@gmail.com>
From: Ted Roden <ted.lists@gmail.com>
To: nicholas.dokos@hp.com
In-Repl= y-To: <23074.1210022131@al= phaville.zko.hp.com>
Content-Type: text/plain; charset=3DUS-ASCII; = format=3Dflowed; delsp=3Dyes
Content-Transfer-Encoding: = 7bit
Mime-Version: 1.0 (Apple Message framework v919.2)
Subject: = Re: [Orgmode] message: links
Date: Mon, 5 May 2008 17:57:48 = -0400
References: <FE839CE7-B0= 7A-4C96-98EA-C62B492D62E2@gmail.com>  <23074.1210022131@al= phaville.zko.hp.com>
X-Mailer: Apple Mail = (2.919.2)


I think you should read = the "Adding hyperlink types" appendix in the =  
Org
manual.

Awesome, thanks for pointing = that out. The documentation available  
inside emacs was for an = old installation of org-mode and it doesn't  
appear to have = that section. I was able to find that section on the  
site = though.

In case anyone else wants it, I just added the following = code to  
my  .emacs file and it works like a charm now. = Keep in mind, this will  
probably only work on a mac (I'm using = the "open" command).

(require 'org)
(org-add-link-type = "message" 'org-message-open)

(defun org-message-open (path)
=   "Open message:// links in the = registered mail reader on a mac."
  (shell-command (concat = "open message:" path)))


------- End of Forwarded = Message



_______________________________________________
= Emacs-orgmode mailing list
Remember: use `Reply All' to send replies = to the list.
Emacs-orgmode@gnu.org
http://= lists.gnu.org/mailman/listinfo/emacs-orgmode

= --Apple-Mail-10--176975206-- --===============2044709709== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============2044709709==--