From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/28511 Path: main.gmane.org!not-for-mail From: Daniel Pittman Newsgroups: gmane.emacs.gnus.general Subject: Re: Guessing based on file extension Date: 02 Jan 2000 18:43:49 +1100 Organization: Here, there and everywhere... Sender: owner-ding@hpc.uh.edu Message-ID: <879028ncju.fsf@inanna.danann.net> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035165345 30249 80.91.224.250 (21 Oct 2002 01:55:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:55:45 +0000 (UTC) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id 4A3D2D051E for ; Sun, 2 Jan 2000 02:47:58 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id BAB04284; Sun, 2 Jan 2000 01:47:32 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 02 Jan 2000 01:45:49 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id BAA25319 for ; Sun, 2 Jan 2000 01:45:38 -0600 (CST) Original-Received: from melancholia.danann.net (melancholia.danann.net [203.36.211.210]) by mailhost.sclp.com (Postfix) with ESMTP id 19514D051E for ; Sun, 2 Jan 2000 02:43:58 -0500 (EST) Original-Received: from inanna.danann.net (inanna.danann.net [203.36.211.216]) by melancholia.danann.net (Postfix) with ESMTP id 345F12A812 for ; Sun, 2 Jan 2000 18:43:55 +1100 (EST) Original-Received: by inanna.danann.net (Postfix, from userid 1000) id 29C28280B2; Sun, 2 Jan 2000 18:43:50 +1100 (EST) Original-To: ding@gnus.org In-Reply-To: Lars Magne Ingebrigtsen's message of "02 Jan 2000 08:24:42 +0100" X-Homepage: http://danann.net/ Mail-Copies-To: Never X-spies: Vince Foster class struggle Craig Livingstone security Ft. Meade Delta Force colonel Lon Horiuchi Cocaine Semtex Project Monarch Clinton FSF clones David John Oates Original-Lines: 32 User-Agent: Gnus/5.0803 (Gnus v5.8.3) XEmacs/21.2 (Millenium) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:28511 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:28511 On 02 Jan 2000, Lars Magne Ingebrigtsen wrote: > Fran=E7ois 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. >=20 > On the one hand, this is user friendly. On the other hand, guessing > is yucky.=20=20 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 --=20 The best lack all conviction, while the worst Are full of passionate intensity. -- W.B. Yeats, _The Second Coming_