[New-bugs-announce] [issue14977] mailcap does not respect precedence in the presence of wildcards

Emmanuel Beffara report at bugs.python.org
Fri Jun 1 11:28:53 CEST 2012


New submission from Emmanuel Beffara <manu at beffara.org>:

According to RFC 1542, the first matching entry in mailcap files should be used for handling a given type. The mailcap module does not respect this rule when wildcards are used in some rules, because the "lookup" function always checks entries for a specific type (say image/jpeg) before checking the generic ones (image/*). As a consequence, if a user overrides system defaults using a generic type, this choice is not satisfied, and the behaviour is inconsistent with other tools using mailcap (including the standard "run-mailcap").

----------
components: Library (Lib)
messages: 162064
nosy: manu-beffara
priority: normal
severity: normal
status: open
title: mailcap does not respect precedence in the presence of wildcards
type: behavior

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14977>
_______________________________________


More information about the New-bugs-announce mailing list