Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use the shared-mime-info database for mime type support. #11
Replace the current mime-type support with the shared-mime-info database.
The idea here is to have a list of (mime-type-string => parser-function-pointer). The mime-type logic will then:
Items 2 and 3 will be used as part of the handler lookup to get the parser function. The parser function will then be called to handle the data.
In some cases (email; mht; epub), this will involve recursive calls.
For the OCF handler, the information will need to be returned as RDF metadata to unify the parser interface.