Noel,

> IIRC, amavisd-new does not use the -i flag on file(1).  I believe it
> calls file with no flags and parses the returned text.

True. Intentionally.
The mime type as returned by file(1) is usually less
selective than the default output.

> # file *doc
> this is a openvpn gui.doc: Microsoft Installer
>
> # file -i *doc
> this is a openvpn gui.doc: application/msword
>
> Apply my little patch to sbin/amavisd and try again...  That was what
> fixed it for me.

Seems the -i works better for this particular file,
although generally it is the other way around in my experience.

  Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to