mailcap
¶
Mailcap file handling. See RFC 1524.
Functions¶
findmatch (caps, MIMEtype[, key, filename, plist]) |
Find a match for a mailcap entry. |
findparam (name, plist) |
|
getcaps () |
Return a dictionary containing the mailcap database. |
listmailcapfiles () |
Return a list of all mailcap files found on the system. |
lookup (caps, MIMEtype[, key]) |
|
parsefield (line, i, n) |
Separate one key-value pair in a mailcap entry. |
parseline (line) |
Parse one entry in a mailcap file and return a dictionary. |
readmailcapfile (fp) |
Read a mailcap file and return a dictionary keyed by MIME type. |
show (caps) |
|
subst (field, MIMEtype, filename[, plist]) |
|
test () |