"Jonas Sundström" <jonas@xxxxxxxxxxx> wrote: > The sniffing rule I got from > http://filext.com/detaillist.php?extdetail=MKV > I don't know if the audio files need a separate one > as I haven't been able to find any .mka files. I've commited your MIME types now, thanks! That sniffing rule however, doesn't look right to me after peeking into the Matroska documentation, so I disabled it for now. > Q1: Filename extensions are case-insensitive to Haiku, right? > (It would be bad to not catch all permutations of case.) They are case sensitive. You would need to add both .mka and .MKA if you want to catch both (but there is certainly no need to add all possible permutations :-)) > Q2: Is 0.50 a good sniff rule weight? > I doubt that the rule (".E...B..matroskaB...B....S.g") > would pick up non-matroska files. If the sniffer rule is that long, it could possible be higher as well, but in general, the weight only comes into play if there are files that fit more than one sniffer rule at a time. > Q3: Is the sniffing rule format documented anywhere? Yes, although not in a nice and formated manner. You can find a short description of the format in src/kits/storage/MimeType.cpp line 1388 and following. > BTW, Haiku's setmime appears to be unimplemented, as of yet. > (In case anyone's looking for a nice little project.) Contributors are welcome, as always :-) Bye, Axel.