Message352038
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. |
|
Date |
User |
Action |
Args |
2019-09-12 02:18:26 | pacien | set | recipients:
+ pacien, barry, r.david.murray |
2019-09-12 02:18:26 | pacien | set | messageid: <1568254706.48.0.577471820986.issue38126@roundup.psfhosted.org> |
2019-09-12 02:18:26 | pacien | link | issue38126 messages |
2019-09-12 02:18:26 | pacien | create | |
|