Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 08 Feb 2002 07:08:42 -0500 From: Jason Tishler Subject: Re: looking for mailcap entries to start office attachments directly In-reply-to: <20020206110213.F1440@NBOF> To: cygwin AT cygwin DOT com Mail-followup-to: cygwin AT cygwin DOT com Message-id: <20020208120842.GC1148@dothill.com> MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_0QduBS6B7PQCj8wk80sUXA)" User-Agent: Mutt/1.3.24i References: <20020206110213 DOT F1440 AT NBOF> --Boundary_(ID_0QduBS6B7PQCj8wk80sUXA) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline Olaf, On Wed, Feb 06, 2002 at 11:02:13AM +0100, Olaf Foellinger wrote: > I'm looking for a mailcap entry to start office documents directly from > the attachments. I've looked through the archives but didn't find > anything. I use the attached mailcap with mutt. It relies on the attached shell script, winword, which I also symlink to excel, powerpnt, and winproj. Being able to deal with Microsoft attachments is the reason why I process my email under Cygwin instead of Linux. HTH, Jason --Boundary_(ID_0QduBS6B7PQCj8wk80sUXA) Content-type: text/plain; charset=us-ascii; NAME=mailcap Content-transfer-encoding: 7BIT Content-disposition: attachment; filename=mailcap text/html; w3m -T text/html text/html; w3m -T text/html -dump; copiousoutput application/msword; winword %s application/rtf; winword %s application/msexcel; excel %s application/x-msexcel; excel %s application/ppt; powerpnt %s application/pps; powerpnt %s application/pdf; acroread %s application/x-mspowerpoint; powerpnt %s application/vnd.ms-project; winproj %s application/x-tar-gz; tar -tvzf %s; copiousoutput application/x-tar; tar -tvf %s; copiousoutput application/x-zip-compressed; zipinfo %s; copiousoutput application/zip; zipinfo %s; copiousoutput --Boundary_(ID_0QduBS6B7PQCj8wk80sUXA) Content-type: text/plain; charset=us-ascii; NAME=winword Content-transfer-encoding: 7BIT Content-disposition: attachment; filename=winword #!/bin/bash OfficeDrive=$(cygpath -u C:) DefaultOfficeDrive=$(cygpath -u $SYSTEMDRIVE) OfficeDrive=${OfficeDrive:-$DefaultOfficeDrive} OfficeDir="$OfficeDrive/Program Files/Microsoft Office/Office" DefaultTempDir=$(cygpath -u $TEMP) TempDir=${TempDir:-$DefaultTempDir} TempFile=$TempDir/$(basename $1) Program=$(basename $0) File=$(cygpath -w $TempFile) mv $1 $TempFile ("$OfficeDir/$Program" "$File"; rm -f $TempFile)& --Boundary_(ID_0QduBS6B7PQCj8wk80sUXA) Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --Boundary_(ID_0QduBS6B7PQCj8wk80sUXA)--