Gnus development mailing list
 help / color / mirror / Atom feed
From: Daniel Pittman <daniel@danann.net>
Subject: Re: Guessing based on file extension
Date: 02 Jan 2000 18:43:49 +1100	[thread overview]
Message-ID: <879028ncju.fsf@inanna.danann.net> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "02 Jan 2000 08:24:42 +0100"

On 02 Jan 2000, Lars Magne Ingebrigtsen <larsi@gnus.org> wrote:

> 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.
> 
> On the one hand, this is user friendly.  On the other hand, guessing
> is yucky.  

It's somewhat yucky; I can think of quite a number of file-types,
comprising most of what I get sent as attachments, that are identifiable
by extension.

> 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.

An alist of '((".pdf" "application/pdf") (".txt" "text/plain")) would be
good for this; it lets people set it to what they want (including nil)
-- but populate it with a sane set of things by default.

I would applaud it :)

        Daniel

-- 
The best lack all conviction, while the worst
Are full of passionate intensity.
        -- W.B. Yeats, _The Second Coming_



  reply	other threads:[~2000-01-02  7:43 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 [this message]
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
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=879028ncju.fsf@inanna.danann.net \
    --to=daniel@danann.net \
    /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).