From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: Re: inserting files within remember templates Date: Wed, 7 Nov 2007 09:58:26 +0000 Message-ID: <20071107095826.GE13544@atlantic.linksys.moosehall> References: <20071105181739.GB13544@atlantic.linksys.moosehall> <8A730AEC-45F4-4A2F-BD38-24DEBF937445@science.uva.nl> <20071106163647.GC13544@atlantic.linksys.moosehall> <87wssupypp.fsf@bzg.ath.cx> Reply-To: Adam Spiers 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 1IphgB-0006SW-CL for emacs-orgmode@gnu.org; Wed, 07 Nov 2007 04:58:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iphg9-0006PO-9h for emacs-orgmode@gnu.org; Wed, 07 Nov 2007 04:58:34 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iphg8-0006P1-LQ for emacs-orgmode@gnu.org; Wed, 07 Nov 2007 04:58:32 -0500 Received: from mail.beimborn.com ([70.84.38.100]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Iphg8-0002y1-7A for emacs-orgmode@gnu.org; Wed, 07 Nov 2007 04:58:32 -0500 Received: from mail.beimborn.com (localhost.localdomain [127.0.0.1]) by mail.beimborn.com (8.12.11.20060308/8.12.8) with ESMTP id lA79wVTk000529 for ; Wed, 7 Nov 2007 03:58:31 -0600 Received: from localhost (localhost [[UNIX: localhost]]) by mail.beimborn.com (8.12.11.20060308/8.12.11/Submit) id lA79wVOp000521 for emacs-orgmode@gnu.org; Wed, 7 Nov 2007 09:58:31 GMT Content-Disposition: inline In-Reply-To: <87wssupypp.fsf@bzg.ath.cx> 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 On Wed, Nov 07, 2007 at 02:37:54AM +0000, Bastien wrote: > Adam Spiers writes: > > Currently I do this by coding the helper to dump the Message-Id into > > ~/.clip-mairix, and then the elisp code inserts the contents of this > > file back into the org buffer. However I would like it to be inserted > > via a remember template, hence the request. > > I've seen your patch in the other post and it looks fine. But FWIW here > was my first reaction: why don't you try to implement a new link type > for message/mail buffers? Because I use mutt for mail and hence need to use some primitive form of IPC: http://article.gmane.org/gmane.emacs.orgmode/4250 > Then you just need to access the source of > the message, link to it, use relevant properties and insert them thru > the template. :message-id would be one of the available properties. org-mairix.el already does exactly that for gnus integration.