On 14 July 2010 15:55, Matt Larson <[email protected]> wrote: > I finally got around to upgrading from a crufty build of 1.5.18 to > 1.5.20 (hg HEAD from 30 June 2010) . I run mutt on a Mac and use this > line in mailcap to handle any HTML MIME parts: > > text/html; cat > /tmp/mutt.html\;open /tmp/mutt.html > > When I message had an HTML part I wanted to view, I'd hit "v", select > the HTML part, hit return, and this usage of Mac OS's "open" command > would open a new tab in Safari. >
I do a similar thing with Opera with the following mailcap line: text/html; opera %s &&sleep 1; test=sh -c 'test $DISPLAY' Have you tried something like: text/html; open %s or text/html; open %s && sleep 1 Shouldn't %s be the preferred form as mutt creates a unique file in /tmp, so creating it manually shouldn't be necessary. I added the sleep so that the file wouldn't be deleted before it was opened (when there is an existing Opera window subsequent executions finish immediately) > I no longer get that behavior in 1.5.20. Instead I get this error: > > [-- text/html is unsupported --] > > ---Attachment: text/html (all) > Key is not bound. Press '?' for help. > > If I add "copiousoutput" to the mailcap entry, 1.5.20 behaves > similarly to 1.5.18, except that mutt now automatically and sometimes > unexpectedly (to me) calls "open", sending focus to Safari when I > don't necessarily expect it. I'd prefer the older behavior if there's > any way to get it back. copiousoutput is used where there is a large amount of text expected from stdout of the mailcap command. e.g. text/html; lynx -force_html -dump %s ; copiousoutput > > Does anyone have any ideas? > > Thanks, > > Matt > >From the timestamp on my mailcap I had it running ok for mutt 1.5.18 and it hasn't been modified since I upgraded to 1.5.20. I'm on Debian Testing so YMMV on a Mac. I probably got most of my mailcap entries from http://www.spocom.com/users/gjohnson/mutt/ Regards, Dermot
