-
Notifications
You must be signed in to change notification settings - Fork 3
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
Allow compound (AND) conditions in mc.ext to disambiguate overloaded extensions #4141
Comments
I think we should port mc.ext to ini format. Ini allows us to make any complicated logic easier than current format.
will be like following:
|
|
In #2118 ossi argued for an own mailcap parser and migration of mc.ext to mailcap:
https://tools.ietf.org/rfc/rfc1524.txt
If one goes as far as to say, that we want to change the format, maybe this should be carefully considered again.
I've briefly looked at mailcap spec, and so far I'm not sure if we can actually convert mc.ext to it - it doesn't offer any way to filter by extension or specify compound conditions - like mime-type AND extension :-( |
yes, but it shouldn't be required - the mailcap approach completely separates type detection and type handling. mc.ext is so messy because it does both.
but let's not get carried away in this rather specific ticket, as i don't suppose anyone is volunteering for a massive rewrite of that infra right now. my proposal to support ANDs is a rather minimal approach that should be doable with just a few LOC (it's not even necessary to support arbitrarily many conditions, only a single additional one), and i'd give that a shot myself. feel free to spin off a big-picture ticket as a successor to #2118. |
Branch: 4141_mc.ext.ini
mx.ext was moved to INI format from custom one (yet another step to format unification). This allows to implement a task written in the ticket sunmmary. |
|
Merged to master: [3a3811c].
|
|
Important
This issue was migrated from Trac:
zaytsev
(@zyv)ossi
(@ossilator)It would be awesome if someone did something to ts - right now it is always regarded as a video file. This might have been reasonable before the advent of TypeScript, but now most of TS-files are actually code.
Spun off from #4128. Relates #2118.
The text was updated successfully, but these errors were encountered: