New submission from Emmanuel Beffara <m...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14977>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to