This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: mailcap top level wildcard support
Type: behavior Stage:
Components: email Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: barry, pacien, r.david.murray
Priority: normal Keywords:

Created on 2019-09-12 02:18 by pacien, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg352038 - (view) Author: pacien (pacien) * Date: 2019-09-12 02:18
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.
History
Date User Action Args
2022-04-11 14:59:20adminsetgithub: 82307
2019-09-12 02:18:26paciencreate