[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using mimetype and file to guess content-type
From: |
Sergey Poznyakoff |
Subject: |
Re: Using mimetype and file to guess content-type |
Date: |
Tue, 08 Jun 2021 10:53:50 +0200 |
Jean Louis <bugs@gnu.support> ha escrit:
> $ file --mime-type test.gpg
> test.gpg: application/octet-stream
FWIW, on my system, taking an arbitrary gpg encrypted file, I get:
$ file --mime-type transcript.gpg
transcript.gpg: application/octet-stream
and
$ file transcript.gpg
transcript.gpg: PGP Elgamal encrypted session key - keyid: 7EF04638 56DFFBBA
Elgamal Encrypt-Only 1024b.
That's using the recent file magic database.
> Do you think recognition would be "pretty" accurate?
Again, that depends entirely on the file database (in this case:
mime.types) in use.
Regards,
Sergey