From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67733 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Auto-overriding *.pdf application/octet-stream MIME type? Date: Mon, 03 Nov 2008 12:31:13 +0100 Message-ID: <873ai9dp1a.fsf@mocca.josefsson.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225711959 10902 80.91.229.12 (3 Nov 2008 11:32:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2008 11:32:39 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16184@lists.math.uh.edu Mon Nov 03 12:33:40 2008 connect(): Connection refused Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kwxgd-0000yo-7G for ding-account@gmane.org; Mon, 03 Nov 2008 12:33:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1KwxeS-00080r-V4; Mon, 03 Nov 2008 05:31:21 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KwxeR-00080f-NG for ding@lists.math.uh.edu; Mon, 03 Nov 2008 05:31:19 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1KwxeO-0000Sx-Qu for ding@lists.math.uh.edu; Mon, 03 Nov 2008 05:31:19 -0600 Original-Received: from yxa-v.extundo.com ([83.241.177.39] ident=Debian-exim) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1KwxeW-00080p-00 for ; Mon, 03 Nov 2008 12:31:24 +0100 Original-Received: from c80-216-18-41.bredband.comhem.se ([80.216.18.41] helo=mocca.josefsson.org) by yxa-v.extundo.com with esmtpsa (TLS-1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.63) (envelope-from ) id 1KwxeM-0006pH-9q for ding@gnus.org; Mon, 03 Nov 2008 12:31:14 +0100 X-Hashcash: 1:22:081103:ding@gnus.org::/MLmWy53cmdPJkyU:55C8 OpenPGP: id=B565716F; url=http://josefsson.org/key.txt Mail-Copies-To: nobody User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED,AWL autolearn=ham version=3.2.3 (2007-08-08) host=yxa-v.extundo.com X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67733 Archived-At: What do people think about a variable that can be used to auto-override MIME types based on filename extensions? I get a lot of *.pdf marked as application/octet-stream and selecting 'View as Type' feels dull. Something like this: (setq mm-content-type-mapping '(("application/octet-stream" "*.pdf" "application/pdf"))) The cells would be of the form (INCOMING-TYPE EXTENSION MAPPED-TYPE), and either of INCOMING-TYPE or EXTENSION can be nil to match anything. I've seen the mm-tweak-* variables, but they are 1) not customizable, and 2) not easy to use to achieve the common *.pdf to application/pdf mapping. At least as far as I could tell? /Simon