aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/mail-format.c6
1 files changed, 6 insertions, 0 deletions
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.