it seems that the MIME handling in Thunar (1.0.1) might have problems when there are multiple mime types designated by only one extension. Basically it seems to take the latest one present in /usr/share/mime/globs which might usually be ok but breaks in some cases (like in debian bug #547623)
Problems seems to be located at thunar-vfs-mime-legacy.c:660
Not sure how gio behaves so it might be worth waiting for the transition, but it'd still be nice to fix to have it fixed in 1.0
Hmhh, any news on this? :) (I know you're short on time, it's just a friendly ping :p)
gio and kio do it by following the shared-mime-info spec ;)
It says, under "Recommended checking order" :
If the glob matching fails or results in multiple conflicting mimetypes, read the contents of the file and do magic sniffing on it. If no magic rule matches the data (or if the content is not available), use the default type of application/octet-stream for binary data, or text/plain for textual data. If there was no glob match, use the magic match as the result.
If any of the mimetypes resulting from a glob match is equal to or a subclass of the result from the magic sniffing, use this as the result. This allows us for example to distinguish text files called "foo.doc" from MS-Word files with the same name, as the magic match for the MS-Word file would be application/x-ole-storage which the MS-Word type inherits.
Close bug reports of archived products.