[issue38126] mailcap top level wildcard support
New submission from pacien : 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 <https://bugs.python.org/issue38126> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45141] mailcap.getcaps() from given file(s)
New submission from pacien : Currently, `mailcap.getcaps()` can only be used to load mailcap dictionaries from files located at some specific hard-coded paths. It is however also desirable to use the mailcap parser to load files located elsewhere. An optional parameter could be added to this function to explicitly specify the mailcap file(s) to read. -- components: email messages: 401420 nosy: barry, pacien, r.david.murray priority: normal severity: normal status: open title: mailcap.getcaps() from given file(s) type: enhancement ___ Python tracker <https://bugs.python.org/issue45141> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45141] mailcap.getcaps() from given file(s)
Change by pacien : -- keywords: +patch pull_requests: +26664 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28245 ___ Python tracker <https://bugs.python.org/issue45141> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com