As I recall, doing something like adding copiousoutput to the
particular mailcap entry may work (by getting mutt to wait for you to
press a key)... or maybe it was needsterminal...

On Thursday, 24 August 2000 at 16:41, David Champion wrote:
> On 2000.08.24, in <[EMAIL PROTECTED]>,
>       "Ron da Silva" <[EMAIL PROTECTED]> wrote:
> > 
> > Seems like mutt writes attachments to /tmp and forwards the filename
> > to netscape (based on my mailcap file) and then deletes the /tmp file;
> > however, seems like sometimes the file gets deleted before netscape
> > finishes reading the file from /tmp.  Thus, I get a partial page or
> > none at all.
> > 
> > Anyone seen the above?  Any ideas on fixing it?
> 
> Use this script (or something like it) as your viewer, like this:
>       image/jpeg; ns-wrapper %s
> 
> #!/bin/sh
> ## Wrap ns so that it doesn't lose the file
> set -- `echo $1 | sed -e 's/\(.*\)\.\([^\.][^\.]*\)$/\1 \2/'`
> file=$1-tmp.$2
> echo ln -s $1.$2 ${file}
> netscape -remote "openURL(${file}, new-window)"
> exec sh -c "sleep 60; rm -f ${file}" &
> 
> Untested, watch out, beware, etc.
> 

-- 
Don't make Godzilla mad!

PGP signature

Reply via email to