From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Wish list: Storing links and enabling MIME actions on files Date: Thu, 27 Sep 2007 19:24:26 +0200 Message-ID: <87lkasxbqt.fsf@bzg.ath.cx> References: <87k5qcxdml.fsf@gollum.intra.norang.ca> 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 1Iax6L-0004vF-5h for emacs-orgmode@gnu.org; Thu, 27 Sep 2007 13:24:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iax6K-0004ts-Cp for emacs-orgmode@gnu.org; Thu, 27 Sep 2007 13:24:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iax6K-0004tX-68 for emacs-orgmode@gnu.org; Thu, 27 Sep 2007 13:24:36 -0400 Received: from hu-out-0506.google.com ([72.14.214.228]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iax6J-0005jO-9D for emacs-orgmode@gnu.org; Thu, 27 Sep 2007 13:24:35 -0400 Received: by hu-out-0506.google.com with SMTP id 23so1339377huc for ; Thu, 27 Sep 2007 10:24:32 -0700 (PDT) In-Reply-To: <87k5qcxdml.fsf@gollum.intra.norang.ca> (Bernt Hansen's message of "Thu, 27 Sep 2007 12:43:46 -0400") 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 Bernt Hansen writes: > I occasionally receive documents (like PDF files) in emails and I want > to just save some of the attachments to a local directory for reference > in my org file (usually because the email contained half a dozen > documents and only 1 is interesting.) One idea is to be able to add a search string in email link types. For example: [[gnus:nnml.orgmode#6548::org.pdf]] would fetch the mail #6548 in nnml.orgmode Gnus group and search for the string "org.pdf" in the body of the mail (this could also be a regexp). Then RET will open this PDF attachment with the right app. > I'd like to be able to link to the file easily for my org document and > have it invoke the appropriate viewer as defined in my MIME setup. Org uses the local mailcap setup to decide what application to open a file with. Don't you have this on your computer? ~$ man mailcap > I'm wondering if there is a way to create a [[file:...]] link easily > by browsing for the file M-x org-store-link in dired-mode will store a link to the file under the point. But maybe you already know this and I missed the question... Regards, -- Bastien