On Sat, Feb 09, 2002 at 07:19:45PM +0100, Viktor Rosenfeld wrote: > This is nothing for me. I want to able to output MS Word documents both > as text (viewing them inside mutt, but not inlined) and as postscript > (viewing them with gv), when I want to see more of the structure. Both > will happen when I use mutt inside an xterm, though, so the RunningX > program wouldn't help.
Try this shell script. file=$1 shift select viewer do if [ "$viewer" ] then $viewer $file break fi done Name it something like 'select_viewer' and save it in directory in your PATH. Then put a line like this in your mailcap: application/msword; select_viewer %s your_text_viewer your_ps_viewer replacing 'your_text_viewer' and 'your_ps_viewer' with whatever programs you are using for this. When you view an MS Word attachment from the attachment menu, the script will prompt you to choose one of the viewers from your list. The list of viewers can be arbitrarily long. And of course you can use the same script to select among viewers for different types of attachments simply by using another mailcap line and list of appropriate viewers. HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |