Python stdlib module — mailcap. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.findmatch()Neutralfindmatch(caps, MIMEtype, key, filename, plist)
Find a match for a mailcap entry.
.listmailcapfiles()Neutrallistmailcapfiles()
Return a list of all mailcap files found on the system.
.parseline()Neutralparseline(line)
Parse one entry in a mailcap file and return a dictionary.
.readmailcapfile()Neutralreadmailcapfile(fp)
Read a mailcap file and return a dictionary keyed by MIME type.
| FQN | Field | |
|---|---|---|
| mailcap | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
import mailcap