Lines Matching refs:mailcap
32 """Return a dictionary containing the mailcap database.
35 to a list of dictionaries corresponding to mailcap entries. The list
36 collects all the entries for that MIME type from all available mailcap
43 for mailcap in listmailcapfiles():
45 fp = open(mailcap, 'r')
58 """Return a list of all mailcap files found on the system."""
69 mailcaps = [home + '/.mailcap', '/etc/mailcap',
70 '/usr/etc/mailcap', '/usr/local/etc/mailcap']
76 """Read a mailcap file and return a dictionary keyed by MIME type."""
84 """Read a mailcap file and return a dictionary keyed by MIME type.
88 if a given MIME type appears more than once in the mailcap file.
125 """Parse one entry in a mailcap file and return a dictionary.
156 """Separate one key-value pair in a mailcap entry."""
172 """Find a match for a mailcap entry.
174 Return a tuple containing the command line, and the mailcap entry
181 msg = "Refusing to use mailcap with filename %r. Use a safe temporary filename." % (filename,)
272 print("usage: mailcap [MIMEtype file] ...")