Received: (at submit) by bugs.debian.org; 27 Jul 2000 21:46:46 +0000 From wohler@newt.com Thu Jul 27 16:46:46 2000 Return-path: Received: from adsl-209-233-16-176.dsl.snfc21.pacbell.net (gbr.newt.com) [209.233.16.176] by master.debian.org with esmtp (Exim 3.12 2 (Debian)) id 13HvUL-0007ls-00; Thu, 27 Jul 2000 16:46:45 -0500 Received: from gbr (gbr.newt.com [209.233.16.176]) by gbr.newt.com (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id OAA30122 for ; Thu, 27 Jul 2000 14:46:43 -0700 Message-Id: <200007272146.OAA30122@gbr.newt.com> X-Authentication-Warning: gbr.newt.com: Host gbr.newt.com [209.233.16.176] claimed to be gbr Subject: emacs20: mailcap-parse-mailcaps reverses priorities in /etc/mailcap To: submit@bugs.debian.org Date: Thu, 27 Jul 2000 14:46:43 -0700 From: Bill Wohler Delivered-To: submit@bugs.debian.org Package: emacs20 Version: 20.7-2 Severity: normal In /etc/mailcap, the highest priority entries come first, followed by lower priority entries. The mailcap-parse-mailcaps parsing scheme doesn't seem to check for existing entries before adding entries to its internal cache (which should be updated if the mailcap files change, by the way). For example, my /etc/mailcap contains the following three entries for text/html: text/html; gnome-help-browser '%s';test=test "$DISPLAY" != "" text/html; /usr/bin/lynx -force_html '%s'; needsterminal; description=HTML Text; nametemplate=%s.html text/html; /usr/bin/lynx -dump -force_html '%s'; copiousoutput; description=HTML Text; nametemplate=%s.html When I use `b' in gnus to display a text/html body part, the last, lowest priority entry `lynx -dump -force_html %s' was used rather than `gnome-help-browser %s' at the top of the file. However, you don't have to run gnus to reproduce the problem; simply run (mailcap-mime-info "text/html"). I worked around the problem by removing the two lynx entries from /etc/mailcap. -- System Information Debian Release: 2.2 Kernel Version: Linux uluru 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i686 unknown Versions of the packages emacs20 depends on: ii emacsen-common 1.4.12 Common facilities for all emacsen. ii libc6 2.1.3-10 GNU C Library: Shared libraries and Timezone ii liblockfile1 1.01 Shared library with NFS-safe locking functio ii libncurses5 5.0-6 Shared libraries for terminal handling ii xlib6g 3.3.6-9 shared libraries required by X clients