Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 8 Feb 2002 13:55:45 +0100
From: Olaf Foellinger <Olaf.Foellinger@bln.sesa.de>
To: cygwin@cygwin.com
Subject: Re: looking for mailcap entries to start office attachments directly
Message-ID: <20020208135544.D772@NBOF>
Mail-Followup-To: cygwin@cygwin.com
References: <20020206110213.F1440@NBOF> <20020208120842.GC1148@dothill.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.Foellinger@sesa.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/

