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.
--
-D. [EMAIL PROTECTED] NSIT University of Chicago