diff options
author | Benjamin Kahn <xkahn@ximian.com> | 2002-10-18 05:06:27 +0800 |
---|---|---|
committer | Benjamin Kahn <xkahn@src.gnome.org> | 2002-10-18 05:06:27 +0800 |
commit | d536b6d10b7e403d017b9b5a935657dcf23115b3 (patch) | |
tree | 13b25f0e27a2437dc7042b55b0775b06cec2459c /mail/mail-format.c | |
parent | 4ebe5d030931b7b3c8d9cac9e16277ce4250468b (diff) | |
download | gsoc2013-evolution-d536b6d10b7e403d017b9b5a935657dcf23115b3.tar.gz 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/mail-format.c')
-rw-r--r-- | mail/mail-format.c | 6 |
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. |