On 2005-12-31 16:33:24 +0100, Vincent Lefevre wrote: > But IMHO, the wrapper should be generic and be provided by Mutt. > Something like: > > text/html; /usr/bin/view-attach /usr/bin/firefox '%s'; description=HTML Text; > test=test -n "$DISPLAY"; nametemplate=%s.html > > where view-attach would do the copy, call the command and unlink the > file. Firefox should also have an option so that the command quits > whether Firefox was already running or not.
After some thoughts, the wrapper shouldn't be provided by Mutt, but by some package that must be installed to be able to use the mailcap system (mime-support?). Also, to be sure that no-one complains about what Mutt does: http://www.ietf.org/rfc/rfc1524 says in Appendix A: (Such files cannot be presumed to continue to exist after the view-command program exits. Thus a view-command that wishes to exit and continue processing in the background should take care to save the data first.) -- Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / SPACES project at LORIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

