From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Wish list: Storing links and enabling MIME actions on files Date: Thu, 27 Sep 2007 14:44:35 -0400 Message-ID: <87tzpgvtgs.fsf@gollum.intra.norang.ca> References: <87k5qcxdml.fsf@gollum.intra.norang.ca> <87lkasxbqt.fsf@bzg.ath.cx> 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 1IayM0-0001TP-SA for emacs-orgmode@gnu.org; Thu, 27 Sep 2007 14:44:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IayLz-0001SX-26 for emacs-orgmode@gnu.org; Thu, 27 Sep 2007 14:44:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IayLy-0001SU-Th for emacs-orgmode@gnu.org; Thu, 27 Sep 2007 14:44:50 -0400 Received: from outbound.mailhop.org ([63.208.196.171]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IayLy-00089F-I2 for emacs-orgmode@gnu.org; Thu, 27 Sep 2007 14:44:50 -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: Bastien Cc: emacs-orgmode@gnu.org Bastien writes: > 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. Thanks - I'll try that. > >> 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 > Yes I have mailcap - and I assume Gnus is using it to open the MIME attachment with the pdf file in it. I don't have anything in ~/.mailcap - only /etc/mailcap on my Debian system. It just doesn't seem to associate filename.pdf with the viewer for some reason. I'm probably missing something simple in the mailcap setup. Bernt