From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86911 Path: news.gmane.org!not-for-mail From: Dave Abrahams Newsgroups: gmane.emacs.gnus.general Subject: Giving priority to wildcard MIME types Date: Mon, 22 Feb 2016 14:19:27 -0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1456179710 6864 80.91.229.3 (22 Feb 2016 22:21:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2016 22:21:50 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M35133@lists.math.uh.edu Mon Feb 22 23:21:38 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aXyrK-00041T-JH for ding-account@gmane.org; Mon, 22 Feb 2016 23:21:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.86) (envelope-from ) id 1aXyqY-0007Q6-2k; Mon, 22 Feb 2016 16:20:50 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86) (envelope-from ) id 1aXyqW-0007Pd-2b for ding@lists.math.uh.edu; Mon, 22 Feb 2016 16:20:48 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1aXyqV-0007Uq-17 for ding@lists.math.uh.edu; Mon, 22 Feb 2016 16:20:47 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1aXyqT-0003PO-LN for ding@gnus.org; Mon, 22 Feb 2016 23:20:45 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aXyqT-0003ID-5T for ding@gnus.org; Mon, 22 Feb 2016 23:20:45 +0100 Original-Received: from 17.212.145.127 ([17.212.145.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Feb 2016 23:20:45 +0100 Original-Received: from dave by 17.212.145.127 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Feb 2016 23:20:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 17.212.145.127 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:WlnCbdrm89QYoAgX28sY2ELRz1k= X-Spam-Score: 1.7 (+) X-Spam-Report: SpamAssassin (3.4.1 2015-04-28) analysis follows Bayesian score: 0.1719 Ham tokens: 0.000-38--1669h-0s--0d--wildcard, 0.000-6--265h-0s--0d--HX-Complaints-To:sk:usenet@, 0.000-5--202h-0s--0d--H*RU:plane.gmane.org, 0.000-5--202h-0s--0d--H*RU:sk:1AlnuQ-, 0.000-5--202h-0s--0d--Hx-spam-relays-external:main.gmane.org Spam tokens: 0.992-14958--654h-10464s--0d--HTo:D*gnus.org, 0.992-15749--732h-11047s--0d--H*RU:quimby.gnus.org, 0.992-15749--732h-11047s--0d--Hx-spam-relays-external:quimby.gnus.org, 0.991-15669--851h-11073s--0d--Hx-spam-relays-internal:80.91.231.51, 0.991-15669--851h-11073s--0d--Hx-spam-relays-internal:quimby.gnus.org Autolearn status: no autolearn_force=no -1.0 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [80.91.229.3 listed in list.dnswl.org] 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 BAYES_20 BODY: Bayes spam probability is 5 to 20% [score: 0.1719] 1.5 FSL_HELO_BARE_IP_2 No description available. List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86911 Archived-At: So, mailcap-mime-data comes prepopulated with all kinds of stuff that's not appropriate for any normal installation on my platform (Mac OS X), and I want to override it all by using wildcards in my ~/.mailcap file: ,----[ .mailcap ] | # After editing: `M-x mailcap-parse-mailcaps' | | */*; open %s | application/*; open %s `---- The problem is, mailcap-possible-viewers is designed to always list the non-wildcard matches (which are in mailcap-mime-data) first, which means I have to manually create “open %s” lines in ~/.mailcap for each mime type in that list. There's got to be a better way... doesn't there? -- -Dave