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: [EMAIL PROTECTED] -- 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/