mouss wrote:

is there a way to generalize this to other MIME types? I mean a file
claiming to be a .pdf when it is a .wmv...?

You need to check the files contents to catch that, and the ImageInfo plugin isn't meant to understand just any kind of content.

or do we need a FileType plugin?

I guess you mist my post where I said that I've got an experimental plugin that is just that. It compares the content-type with the content (using File::MimeInfo::Magic (wich uses the freedesktop file database).

The plugin was called TypeMismatch for a couple of days, wich is closer to FileType than the current name: MimeMagic.

Anyway, it can be found at
<http://whatever.frukt.org/spamassassin.text.shtml>

Regards
/Jonas
--
Jonas Eckerman
Fruktträdet & Förbundet Sveriges Dövblinda
http://www.fsdb.org/
http://www.frukt.org/
http://whatever.frukt.org/

Reply via email to