New submission from pacien <[email protected]>:
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 <[email protected]>
<https://bugs.python.org/issue38126>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com