Gnus development mailing list
 help / color / mirror / Atom feed
From: Alan Shutko <ats@acm.org>
Subject: Re: Guessing based on file extension
Date: 02 Jan 2000 11:09:50 -0500	[thread overview]
Message-ID: <m3ogb4jvzl.fsf@acm.org> (raw)
In-Reply-To: Hans de Graaff's message of "02 Jan 2000 09:02:53 +0100"

Hans de Graaff <graaff@xs4all.nl> writes:

> If application/octet-stream is all we have then gussing may be the
> best way to go. Perhaps we could save the first part of the file and
> run it through 'file' to see what kind of file it really is? That
> would be more foolproof at least than only looking at the file
> extension.

On my system, both Word documents and Excel documents turn up as
"Microsoft Office Document"s in file, but I want to use different
programs to view them.  (On other Unix systems, they don't tend to
have anything meaningful turn up in file.)

Given that it's usually Microsoft OS programs which say everything is
application/octet-stream, and all _they_ do upon receiving the
document is look at the file extension, I don't see a major problem
with doing the same thing.  (I mean, they don't even look at the
content-type when it _is_ meaningful.)

-- 
Alan Shutko <ats@acm.org> - In a variety of flavors!
In most instances, all an argument proves is that two people are present.



  reply	other threads:[~2000-01-02 16:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-02  7:24 Lars Magne Ingebrigtsen
2000-01-02  7:43 ` Daniel Pittman
2000-01-02  8:02 ` Hans de Graaff
2000-01-02 16:09   ` Alan Shutko [this message]
2000-01-02 22:42     ` Hans de Graaff
2000-01-02 15:35 ` Per Abrahamsen
2000-01-02 16:11   ` Steinar Bang
2000-01-02 21:24 ` Simon Josefsson
2000-01-03 12:05   ` Steinar Bang
2000-01-04 19:41 ` François Pinard
2000-01-04 23:32   ` Kai Großjohann
2000-01-05  0:02   ` Stainless Steel Rat
2000-01-05  7:47   ` Steinar Bang
2000-01-05 18:29     ` Kim-Minh Kaplan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3ogb4jvzl.fsf@acm.org \
    --to=ats@acm.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).