Unfortunately the only other hint it's got is the file extension. Other
than that (well, and it's contents, but mime magic doesn't ever look
that far) it's just a regular old zip file. It may not be possible to
detect it any better (at least for file and mime magic).

File can't tell the difference between a zip and a jar either. The only
difference there (again) is the contents. Actually, if it were to
understand jar files it would detect OOo files as jars unless it went
yet another step further and actually looked into the content.xml, which
would involve decompressing which is way beyond the scope of either
program.

I hope that didn't sound rude. I just wanted to make sure I covered all
the bases.

On Wed, 2004-01-21 at 11:46, District Webmaster wrote:
> Yes, they are identified as zip files. It's not that mime magic is not
> working, it's  that I find the results inadequate. :)
> Dave
> 
> >>> [EMAIL PROTECTED] 01/21/04 11:24 AM >>>
> On Wed, 2004-01-21 at 11:21, District Webmaster wrote:
> > Does anybody know if the mime magic file (that came w/ my Red Hat
> > distro, is used by the "file" command, and a similar file is used by
> > Apache's mod__mime_magic) is being actively maintained? I was
> surprised
> > to find that OpenOffice.org files are not correctly identified, and
> want
> > to see if there is a newer version of the magic.mime file.
> 
> Are they identified as zip files? If so it's working properly (mostly).
> 
> 
> ____________________
> BYU Unix Users Group 
> http://uug.byu.edu/
> ___________________________________________________________________
> List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
> 
> 
> ____________________
> BYU Unix Users Group 
> http://uug.byu.edu/
> ___________________________________________________________________
> List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list


____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to