Index: widgets/misc/e-attachment.c
===================================================================
--- widgets/misc/e-attachment.c	(revision 35126)
+++ widgets/misc/e-attachment.c	(working copy)
@@ -275,6 +275,17 @@ attachment_guess_mime_type (const char *
 
 	gnome_vfs_file_info_unref (info);
 
+	if (type) {
+		/* gnome_vfs can sometimes return invalid type, so check for it */
+		CamelContentType *ctype = camel_content_type_decode (type);
+
+		if (!ctype) {
+			g_free (type);
+			type = NULL;
+		} else
+			camel_content_type_unref (ctype);
+	}
+
 	return type;
 }
 
Index: widgets/misc/ChangeLog
===================================================================
--- widgets/misc/ChangeLog	(revision 35126)
+++ widgets/misc/ChangeLog	(working copy)
@@ -1,3 +1,11 @@
+2008-03-04  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #460204
+
+	* e-attachment.c: (attachment_guess_mime_type):
+	Check whether found mime type is valid before returning it.
+	My thanks come to Effenberg whom helped me to debug it.
+
 2008-02-18  Milan Crha  <mcrha@redhat.com>
 
 	** Part of fix for bug #515744
