On Tue, Feb 20, 2001 at 06:53:42PM +0100, Ulf Erikson wrote:

>   if (!mutt_strcasecmp ("application/octet-stream", type)) {
>       char buf[SHORT_STRING];
>       int n;
>       if ((n = lookup_mime_type (buf, a->filename)) != TYPEOTHER) {
>           snprintf (type, STRING, "%s/%s",
>                     n == TYPEAUDIO ? "audio" :
>                     n == TYPEAPPLICATION ? "application" :
>                     n == TYPEIMAGE ? "image" :
>                     n == TYPEMESSAGE ? "message" :
>                     n == TYPEMODEL ? "model" :
>                     n == TYPEMULTIPART ? "multipart" :
>                     n == TYPETEXT ? "text" :
>                     n == TYPEVIDEO ? "video" : "other",
>                     buf);
>       }
>   }

This seems very useful. Perhaps with the addition of a configuration
variable to control the behaviour (perhaps there are reasons why people
would wish this extra digging didn't happen)?

Would any of the developers care to comment on why this would be a bad idea?

-- 
Dave Pearson:              | mutt.octet.filter - autoview octet-streams
http://www.davep.org/      | mutt.vcard.filter - autoview simple vcards
Mutt:                      | muttrc2html       - muttrc -> HTML utility
http://www.davep.org/mutt/ | muttrc.sl         - Jed muttrc mode

Reply via email to