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, 8 Feb 2002 13:55:45 +0100 From: Olaf Foellinger To: cygwin AT cygwin DOT com Subject: Re: looking for mailcap entries to start office attachments directly Message-ID: <20020208135544.D772@NBOF> Mail-Followup-To: cygwin AT cygwin DOT com References: <20020206110213 DOT F1440 AT NBOF> <20020208120842 DOT GC1148 AT dothill DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <20020208120842.GC1148@dothill.com>; from jason@tishler.net on Fri, Feb 08, 2002 at 07:08:42AM -0500 Hi Jason, On Fri, Feb 08, 2002 at 07:08:42AM -0500, Jason Tishler wrote: > 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. Just the last mail before I've unsubscribed to cygwin mailing list. Now I'm back (at least for a while). > Being able to deal with Microsoft attachments is the reason why I > process my email under Cygwin instead of Linux. That's one of the two things I was missing. The other is gnupg support in mutt. > #!/bin/bash > > OfficeDrive=$(cygpath -u C:) > DefaultOfficeDrive=$(cygpath -u $SYSTEMDRIVE) > OfficeDrive=${OfficeDrive:-$DefaultOfficeDrive} > OfficeDir="$OfficeDrive/Program Files/Microsoft Office/Office" For german users: OfficeDir="$OfficeDrive/Programme/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)& Many thanks for this solution. Gruss Olaf -- Olaf Föllinger Leiter Fachbereich IT S.E.S.A. Software und Systeme AG Alt-Moabit 91a D-10559 Berlin Germany Tel: +49 30 390722 -291 Fax: +49 30 390722 -222 Mobil: +49 173 6227080 http://www.sesa.de mailto: Olaf DOT Foellinger AT sesa DOT de -- 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/