From owner-freebsd-questions@FreeBSD.ORG Tue Sep 5 19:09:54 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B60416A50D for ; Tue, 5 Sep 2006 19:09:54 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84A4643F83 for ; Tue, 5 Sep 2006 19:07:17 +0000 (GMT) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.50) id 1GKgGS-0003e9-0U for freebsd-questions@freebsd.org; Tue, 05 Sep 2006 20:07:16 +0100 Received: from esperance.zetnet.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.13.6/8.13.6/Debian-1) with SMTP id k85J7DDO000392 for ; Tue, 5 Sep 2006 20:07:14 +0100 Received: (qmail 18440 invoked by uid 1001); 5 Sep 2006 19:07:08 -0000 From: "Frank Shute" Date: Tue, 5 Sep 2006 20:07:08 +0100 To: Paul Schmehl Message-ID: <20060905190708.GA18393@melon.esperance-linux.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 6.1-RELEASE-p3 i386 X-Organisation: 'Esperance Linux' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (zetnet.co.uk [194.247.46.1]); Tue, 05 Sep 2006 20:07:14 +0100 (BST) Cc: FreeBSD Questions Subject: Re: MIME and mailcap X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Sep 2006 19:09:54 -0000 On Tue, Sep 05, 2006 at 12:07:42PM -0500, Paul Schmehl wrote: > > I'm trying to understand the use of mailcap for MIME translation within a > mail client. I installed mail/metamail, which created a .mailcap file in > my home directory. That file appears to be a copy of the run-mailcap > script. But what does it do? It seems like it does nothing. > > What I'm trying to do is get the mail client to open an image viewer when I > double-click on a jpeg attachment. The mail client is designed to source > the mailcap file from /etc/, /usr/local/etc/ and from ~/.mailcap. > > What am I missing here? What's the best/proper way to do this? > Put this in ~/.mailcap: application/x-gzip;/usr/local/bin/zless %s text/html;/usr/X11R6/bin/firefox %s application/pdf;acroread %s application/postscript;gview %s image/gif;xv %s image/jpeg;xv %s image/png;xv %s There are some others you may find useful. I use mutt. -- Frank echo "f r a n k @ e s p e r a n c e - l i n u x . c o . u k" | sed 's/ //g' --->PGP keyID: 0x10BD6F4B<---