mailcap.findmatch(caps, MIMEtype, key='view', filename='/dev/null', plist=[])
Return a 2-tuple; the first element is a string containing the command line to be executed (which can be passed to os.system()), and the second element is the mailcap entry for a given MIME type. If no matching MIME type can be found, (None, None) is returned.
key is the name of the field desired, which represents the type of activity to be performed; the default value is ‘view’, since in the most common case you s