Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mailcap top level wildcard support #82307

Closed
pacien mannequin opened this issue Sep 12, 2019 · 2 comments
Closed

mailcap top level wildcard support #82307

pacien mannequin opened this issue Sep 12, 2019 · 2 comments
Labels
topic-email type-bug An unexpected behavior, bug, or error

Comments

@pacien
Copy link
Mannequin

pacien mannequin commented Sep 12, 2019

BPO 38126
Nosy @warsaw, @bitdancer, @pacien

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2019-09-12.02:18:26.454>
labels = ['type-bug', 'expert-email']
title = 'mailcap top level wildcard support'
updated_at = <Date 2019-09-12.02:18:26.454>
user = 'https://github.com/pacien'

bugs.python.org fields:

activity = <Date 2019-09-12.02:18:26.454>
actor = 'pacien'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['email']
creation = <Date 2019-09-12.02:18:26.454>
creator = 'pacien'
dependencies = []
files = []
hgrepos = []
issue_num = 38126
keywords = []
message_count = 1.0
messages = ['352038']
nosy_count = 3.0
nosy_names = ['barry', 'r.david.murray', 'pacien']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue38126'
versions = []

@pacien
Copy link
Mannequin Author

pacien mannequin commented Sep 12, 2019

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.

@pacien pacien mannequin added topic-email type-bug An unexpected behavior, bug, or error labels Sep 12, 2019
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@brettcannon
Copy link
Member

Closing as mailcap is slated for deprecation (#91217).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-email type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant