Author: Brandon Long email: blong@uiuc.edu Version: .62 MIME Autoview Experimental Patch ================================= This patch allows the user to specify in his muttrc file a list of content types which mutt will search mailcaps for a viewer for. If it finds a viewer which matches its criteria, then mutt will use this viewer to view this file any time the default view-message is used. The muttrc variable is auto_view, of the form: auto_view text/html Currently, mutt will look for the keyword copiousoutput in the mailcap file to determine if the viewer can be used. For text/html, I do the following: # Interactive viewer text/html; lynx %s; needsterminal # non-interactive, basically text converter text/html; lynx -dump %s; copiousoutput So, if you receive a text/html attachment with mutt, and go to view it with view-message, mutt will find the second entry, and use it to convert the attachment to text which goes into your pager. If you go the view-attachment menu, and display-attachment, it will use the first entry, and launch lynx interactively. You could of course replace lynx with netscape in the above example, though you should leave off the needsterminal flag as netscape does not need a terminal. Since this goes into the mutt handler system, when you go to reply to a message, mutt will use the autoview handler to quote the message as well. It is also used when you search for URLs and every where else. Because of the current method that the mutt handler uses, this patch causes mutt to parse the mailcap twice, once when it determines if it can find a mailcap entry, and again when it handles it. This patch includes an addition to the rfc1524 (mailcap) support that allows passing of options to the parser, which will be useful when support for printing and composing non-text messages is added. Changes ----------- .59.1 Initial Revision .60.1 Updated to mutt 0.60 .62v1 Updated to mutt 0.62.