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 12:50:22 +0000 Message-ID: <20071107125022.GK13544@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> <20071107095826.GE13544@atlantic.linksys.moosehall> <87ir4ew7d6.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 1IpkMW-0006fv-FH for emacs-orgmode@gnu.org; Wed, 07 Nov 2007 07:50:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IpkMV-0006eP-7m for emacs-orgmode@gnu.org; Wed, 07 Nov 2007 07:50:27 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpkMV-0006e2-0m for emacs-orgmode@gnu.org; Wed, 07 Nov 2007 07:50:27 -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 1IpkMU-0000lK-KS for emacs-orgmode@gnu.org; Wed, 07 Nov 2007 07:50:26 -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 lA7CoPcr017967 for ; Wed, 7 Nov 2007 06:50:25 -0600 Received: from localhost (localhost [[UNIX: localhost]]) by mail.beimborn.com (8.12.11.20060308/8.12.11/Submit) id lA7CoPw2017962 for emacs-orgmode@gnu.org; Wed, 7 Nov 2007 12:50:25 GMT Content-Disposition: inline In-Reply-To: <87ir4ew7d6.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 12:46:45PM +0000, Bastien wrote: > > 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 thought your mutt helper could copy the whole message to ~/.clip-msg, > then you wouldn't need some elisp code to insert ~/.clip-msg but rather > a org-message.el that would let you get the message-id as a link prop > from the template... Ah, I see! > But having %(...) is more straightforward. Possibly. I suppose it depends on the relative merits of parsing the mail via the mutt helper (which is Perl in my case) vs. doing it with elisp. Maybe I should change the helper to store an elisp form representing a property list of the mail's metadata via the temporary file rather than a preformatted mairix link - that way other mutt/org/remember users have more flexibility in their remember templates. But then, when and how would emacs parse that plist as a replacement for the normal `org-store-link-props' invocation?