[issue45141] mailcap.getcaps() from given file(s)

2021-09-08 Thread pacien
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/issu

[issue45141] mailcap.getcaps() from given file(s)

2021-09-08 Thread pacien
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

[issue38126] mailcap top level wildcard support

2019-09-11 Thread pacien
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"', {&#