MIME updates

David Faure dfaure at trolltech.com
Sun Oct 19 00:37:27 EEST 2003

On Saturday 18 October 2003 23:29, Jaap Karssenberg wrote:
> On Fri, 17 Oct 2003 12:28:43 +0100 Geoff Youngs wrote:
> : I personally determine the maximum pattern length, read that in when
> : first scanning the file and use all of that, but 32 should be fine for
> : all the binary formats I can remember coming across...
> In my first implementation I also used to read the maximum pattern
> length, but then I came across a mimetype with a huge offset (msword if
> i remember correctly)

This magic for msword is wrong anyway. There's no guarantee as to its offset,
so there's really no point in looking at a particular offset; it'll only work for 2%
of the files. It should be removed. The only way to identify an msword document
is to use an OLE parser, unfortunately.

David FAURE, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).

More information about the xdg mailing list