Gnus development mailing list
 help / color / mirror / Atom feed
From: "François Pinard" <pinard@iro.umontreal.ca>
Subject: Re: Guessing based on file extension
Date: 04 Jan 2000 14:41:02 -0500	[thread overview]
Message-ID: <oqyaa5bp69.fsf@titan.progiciels-bpi.ca> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "02 Jan 2000 08:24:42 +0100"

Lars Magne Ingebrigtsen <larsi@gnus.org> écrit:

> François suggested the following definition of this function [...]
> If the type is "application/octet-stream", then we look at the thing
> after the dot, and use that as the "real" type.

The few replies we saw show that opinions seem to be a bit split, and it
might be difficult to reach a real consensus.  On the other hand, status
quo, just for avoiding the choice, might not be the ideal solution either.

> On the one hand, this is user friendly.  On the other hand, guessing is
> yucky.  One could add a used config variable to control whether to do it
> or not, but if that defaults to nil, then that won't be very used friendly.

One negative side-effect would be that, if Gnus gets too clever at deciding
the MIME type despite application/octet-stream, Gnus users might lean more
easily towards just letting it default in, or might use Gnus as a proof
of concept against more proper usage.  But as a receiving user, I would
like that Gnus be more helpful at recognising types despite the laziness
of the submitter programs, and use proper in-lining whenever possible.

Simon Josefsson <jas@pdc.kth.se> writes:

> [...] viewing the attachment as a application/ms-word file might be the
> Wrong Thing under some circumstances and leave the choice to the user.

This is probably an orthogonal issue, so we have to be careful here at
seeing both aspects well separate, with clear mind.  The bad of a thing
is not necessarily the bad of the other.

If someone wants to prohibit automatic in-lining of application/ms-word
MIME entities, say (I do not even know if Gnus currently allows it, but
just let's suppose it can, for the argument), then the Gnus behaviour is
already fine-tunable.  Lars gave us a lot of variables to customise how
various MIME types get in-lined, preferred, and displayed.  Let's presume
Gnus has already been set to user's taste, in this area.

What would be interesting, in practice, is letting Gnus derive the MIME
type from the file extension, given we have application/octet-stream.
The customisation will then apply over that derived MIME type, as usual.

It is surely sad that so many messages use that application/octet-stream as
a catch-all type.  As a user receiving many such messages, I would prefer
that Gnus does not make me more sad than the situation is already.  It could
help better, and the little code I submitted is an attempt in that direction.

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard





  parent reply	other threads:[~2000-01-04 19:41 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
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 [this message]
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=oqyaa5bp69.fsf@titan.progiciels-bpi.ca \
    --to=pinard@iro.umontreal.ca \
    /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).