Giter VIP home page Giter VIP logo

Comments (3)

mbeijen avatar mbeijen commented on June 25, 2024

Can you please provide an example of a case that mimetype does NOT handle, but /usr/bin/file does handle correctly?

from file-mimeinfo.

jg0000 avatar jg0000 commented on June 25, 2024

Hi Michiel

Please see attached test file.

My tests:

/usr/bin/mimetype /tmp/mimetestfile

/tmp/mimetestfile: text/plain

file /tmp/mimetestfile

/tmp/mimetestfile: HTML document, ISO-8859 text, with very long lines

Regards,

Jie

Date: Thu, 31 Dec 2015 02:07:00 -0800
From: Michiel Beijen [email protected]
To: mbeijen/File-MimeInfo [email protected]
CC: jg0000 [email protected]
Subject: Re: [File-MimeInfo] Not identifying file of the type text/html if
file does not contain the "" tag. (#19)

Can you please provide an example of a case that mimetype does NOT handle, but /usr/bin/file does handle correctly?


Reply to this email directly or view it on GitHub:
#19 (comment)

<style type="text/CSS">
body {
FONT-FAMILY : Verdana, Arial, Helvetica, sans-serif;
FONT-WEIGHT: none;
TEXT-DECORATION: none;
FONT-SIZE: 11px;
}
</style>

�� FREE SHIPPING - TODAY ONLY      
Hurry! Offer ends tonight!Free Regular Shipping or $5.95 Express - TODAY ONLY
Thanks for reading!
Cable Chick Signature
Cable Chick and the Team

Cable Chick's Latest Blogs

What is USB OTG and What Can It Do?

What is USB OTG and What Can It Do?

USB OTG (On-the-Go) is a powerful feature of many Android smartphones and tablets. Learn how to take advantage of it today!   Read More
Product Launch - Cat6 Colour Range & New Cat6A 500Mhz cables

Product Launch - Cat6 Colour Range & New Cat6A 500Mhz cables

Colour code your home and office networks with our new rainbow range of Category 6 cables and travel to the future with CAT6A!   Read More
Why does my Amplifier use Negative dB for Volume?

Why does my Amplifier use Negative dB for Volume?

Have you ever wondered why your home theatre receiver shows volume as a negative number? Wonder no more!   Read More

Flat Rate Shipping on Regular and Express Services

Please read the full terms and conditions available on our website.
Savings based on RRP. Prices and Specifications subject to change without notice.
Promotion valid until 11:59pm AEST Friday January 1st 2016 or until sold out. Sorry, no rainchecks.

Cable Chick Website    Facebook      Twitter
Cable Chick Accepts: American Express, Visa, Mastercard, Paypal and more

Product and Gift stock is limited and may sell out at any time. Prices and Prizes are subject to change.
� 2006-2016 www.CableChick.com.au. All rights reserved.

This message was sent to the following email address: [email protected]
We hope you find this message useful, however if you would rather not receive any more
Cable Chick Newsletters, please click here to unsubscribe. Or Log in to manage your Subscriptions.

from file-mimeinfo.

mbeijen avatar mbeijen commented on June 25, 2024

Determining that a file is an HTML file when it is called something and not something.html and it merely contains some tags that look like HTML but not the required <html> - I'm not sure if I'd find it correct, it might lead to other sorts of problems. File::MimeInfo does not need to be bug-compatible with /usr/bin/file. Closing.

from file-mimeinfo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.