[New-bugs-announce] [issue38126] mailcap top level wildcard support

pacien report at bugs.python.org
Wed Sep 11 22:18:26 EDT 2019


New submission from pacien <vpmfty.pythonbugs at pacien.net>:

given ~/.mailcap containing:
*/*; xdg-open "%s"

>>> mailcap.findmatch(mailcap.getcaps(), 'application/pdf', filename='thing.pdf')
returns: (None, None)
instead of: ('xdg-open "thing.pdf"', {'view': 'xdg-open "%s"', 'lineno': 0})

---

While top-level wildcards aren't defined in RFC1524, most other tools and programs (including mutt for example) handle them properly.

Entries of the form of "*; someprogram" or "*/*; someprogram" are useful for fallbacks when no other more precise type can be found.

----------
components: email
messages: 352038
nosy: barry, pacien, r.david.murray
priority: normal
severity: normal
status: open
title: mailcap top level wildcard support
type: behavior

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38126>
_______________________________________


More information about the New-bugs-announce mailing list