mailcap question

Joel Hammer joel
Mon May 17 11:59:12 PDT 2004


Well, this works:

In /etc/mailcap

     application/msword; ReadMuttDocs.scr %s

And, ReadMuttDocs.scr is:

   #!/bin/bash
   cp $1 ~/My\ Documents/
   a=`basename $1`
   cd ~/My\ Documents/
   swriter $a &


~
This is as ugly as sin, but attempts to do things cuter like:

application/msword; cp $1 ~/My\ Documents && swriter ~My\ Documents/"`basename $1`" 

and the like kept getting errors  with cp (cannot stat file). 

I am loathe to experiment further because during this
nonsense SO began to start slower and slower and finally
just quit and had to be reinstalled.

So, I guess I'll quit here, too.

Joel


More information about the Linux-users mailing list