Mail Archives: cygwin/2002/02/08/07:13:30
--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)--
- Raw text -