From d536b6d10b7e403d017b9b5a935657dcf23115b3 Mon Sep 17 00:00:00 2001 From: Benjamin Kahn Date: Thu, 17 Oct 2002 21:06:27 +0000 Subject: If the attachment is type application/octet-stream, sniff the file type 2002-10-17 Benjamin Kahn * mail-format.c (mail_lookup_handler): If the attachment is type application/octet-stream, sniff the file type even if the user has a handler for that type. svn path=/trunk/; revision=18388 --- mail/mail-format.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mail/mail-format.c') diff --git a/mail/mail-format.c b/mail/mail-format.c index 451b8a1ce1..440b90ef77 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -419,6 +419,12 @@ mail_lookup_handler (const char *mime_type) if (handler) return handler; + /* Special case MIME type: application/octet-stream + * The point of this type is that there isn't a handler. + */ + if (strcmp (mime_type, "application/octet-stream") == 0) + return NULL; + /* No. Create a new one and look up application and full type * handler. If we find a builtin, create the handler and * register it. -- cgit v1.2.3