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.

Author pacien
Recipients barry, pacien, r.david.murray
Date 2019-09-12.02:18:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568254706.48.0.577471820986.issue38126@roundup.psfhosted.org>
In-reply-to
Content
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
2019-09-12 02:18:26paciensetrecipients: + pacien, barry, r.david.murray
2019-09-12 02:18:26paciensetmessageid: <1568254706.48.0.577471820986.issue38126@roundup.psfhosted.org>
2019-09-12 02:18:26pacienlinkissue38126 messages
2019-09-12 02:18:26paciencreate