Quoth Chris G on Thursday, 19 August 2010: > I'm sure this used to work for me but I have changed a few things in > this area recently so I may have broken it by leaving something vital > out. > > I have mutt set up so that by default HTML messages are displayed in > the pager using links. However if I want to view the E-Mail in > firefox I hit 'v' and select the HTML part. > > Thus in my muttrc I simply have:- > auto_view text/html > > ... and in my .mailcap I have:- > > text/html; /usr/bin/firefox %s > text/html; links -dump %s -html-numbered-links 1; copiousoutput; > nametemplate=%s.html > > However the problem is that when I 'v' the mail and then select the > text/html part mutt fires it off at firefox but then continues and > deletes the temporary file before firefox has displayed it. > > Sometime it works but with small files it usually doesn't work. I > only realised what was happening when I recently hit return against the > same file (after 'v') lots of times and firefox succeeded in > displaying about half of them. Even those it had displayed had > disappeared from /tmp but since firefox had grabbed and displayed them > already they were still visible. > > How does on make mutt wait for firefox to display the file before it > deletes it? > > > -- > Chris Green
I just change the mailcap entry to text/html; /usr/local/bin/firefox %s & sleep 5 The single '&' means that it won't wait for firefox even if it is launching it the first time. But it always sleeps five seconds to give firefox time to load the temp file. -- Sterling (Chip) Camden | [email protected] | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com | http://chipsquips.com
pgpm4JmI3caNV.pgp
Description: PGP signature
