[haiku] Re: Set mime-type using sniffer rule

  • From: Giovanni Mugnai <musical777@xxxxxxxxx>
  • To: haiku <haiku@xxxxxxxxxxxxx>
  • Date: Sun, 6 Oct 2013 03:11:41 +0200

2013/10/5 Ingo Weinhold <ingo_weinhold@xxxxxx>:
> On 10/05/2013 08:34 PM, Humdinger wrote:
>>
>> If I create a file type "application/x-cbr", set the extention to
>> "cbr" and the sniffer rule to '1.0 ("Rar!")' (overriding the normal
>> rar), it works for me.
>
> The algorithm could probably be changed to consider extensions, when
> multiple sniffer rules match with the same priority. Then one could use the
> same sniffer rule with the same priority for regular rar files and cbr
> files.

Any idea about how to change the mime type to consider the different extension?
That would be interesting :-)

Best regards,
-- 
Giovanni.

Other related posts: