aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorBenjamin Kahn <xkahn@ximian.com>2002-10-18 05:06:27 +0800
committerBenjamin Kahn <xkahn@src.gnome.org>2002-10-18 05:06:27 +0800
commitd536b6d10b7e403d017b9b5a935657dcf23115b3 (patch)
tree13b25f0e27a2437dc7042b55b0775b06cec2459c /mail
parent4ebe5d030931b7b3c8d9cac9e16277ce4250468b (diff)
downloadgsoc2013-evolution-d536b6d10b7e403d017b9b5a935657dcf23115b3.tar
gsoc2013-evolution-d536b6d10b7e403d017b9b5a935657dcf23115b3.tar.gz
gsoc2013-evolution-d536b6d10b7e403d017b9b5a935657dcf23115b3.tar.bz2
gsoc2013-evolution-d536b6d10b7e403d017b9b5a935657dcf23115b3.tar.lz
gsoc2013-evolution-d536b6d10b7e403d017b9b5a935657dcf23115b3.tar.xz
gsoc2013-evolution-d536b6d10b7e403d017b9b5a935657dcf23115b3.tar.zst
gsoc2013-evolution-d536b6d10b7e403d017b9b5a935657dcf23115b3.zip
If the attachment is type application/octet-stream, sniff the file type
2002-10-17 Benjamin Kahn <xkahn@ximian.com> * 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
Diffstat (limited to 'mail')
-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.