findmatch(caps, MIMEtype, key='view', filename='/dev/null', plist=[])
Find a match for a mailcap entry.
Return a tuple containing the command line, and the mailcap entry
used; (None, None) if no match is found. This may invoke the
test
command of several matching entries before deciding which
entry to use.