<<< Date Index >>>     <<< Thread Index >>>

Re: Mailcap question



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday, June 23 at 04:21 PM, quoth Cameron Simpson:
>On 19Jun2006 13:07, kyle wheeler <kyle-mutt@xxxxxxxxxxxxxx> wrote:
>| On Monday, June 19 at 06:00 PM, quoth Jos? G. Juanino:
>| > It does not work for me at least. I have the following entry in my 
>| > .mailcap file:
>| >
>| > text/html; dillo %s >/dev/null 2>&1 </dev/null & ; description "HTLM Files"
>| >
>| > and dillo complains about the input file has vanished. I think mutt 
>| > removes the file when no process holds the file open, as it uses the 
>| > unlink system call after the temp file is created.
>| 
>| Yeah... mutt does that. The way around it is to use something like a 
>| protector script that does its own file management/cleanup. For 
>| example, if you create this script (let's call it ~/.muttspawn.sh, 
>| just for example's sake):
>| 
>|     #!/bin/sh
>|     file="$1"
>|     shift
>|     cp "$file" "$file.saved"
>|     "$@" "$file" >/dev/null 2>&1
>Shouldn't this -^ be "$file.saved" ?

Ooop, you're right. This is what happens when I type faster than I 
think.

~Kyle
- -- 
Our lives begin to end the day we become silent about things that 
matter.
                                             -- Martin Luther King Jr.
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFEnFp3BkIOoMqOI14RAqbwAJ4/S+GnqcUOzABjN/i2Q+Rvt1PV9gCdGt8Q
FwQoJIX9iJX7EQGEWQCxo1g=
=4RZf
-----END PGP SIGNATURE-----