Cedric Knight wrote:
> mimeheader MIME_IMAGE_JPG       Content-Type =~ /image\/jpg/
> describe MIME_IMAGE_JPG         contains wrong MIME type image\/jpg
> score MIME_IMAGE_JPG            1.0

This puts a literal '\' in the description.  The quoting isn't needed
there.  But otherwise seems useful.  I have thrown it into my
collection here.

> Also, it's not really a JPEG but a PNG, and one with a consistent header
> over the last few weeks:

I like the idea of tagging mismatched types where the actual content
doesn't match the stated type.  That would be a good idea for a plugin
enhancement.  Perhaps something based upon libmagic?

Bob

Reply via email to