{
    "content": [
        {
            "type": "text",
            "text": "# mailcap (pydoc)\n\n**Summary:** mailcap - Mailcap file handling.  See RFC 1524.\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **MODULE REFERENCE** (8 lines)\n- **FUNCTIONS** (1 lines) — 2 subsections\n  - findmatch (7 lines)\n  - getcaps (8 lines)\n- **DATA** (2 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nmailcap - Mailcap file handling.  See RFC 1524.\n\n### MODULE REFERENCE\n\nhttps://docs.python.org/3.10/library/mailcap.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n\n### FUNCTIONS\n\n#### findmatch\n\nFind a match for a mailcap entry.\n\nReturn a tuple containing the command line, and the mailcap entry\nused; (None, None) if no match is found.  This may invoke the\n'test' command of several matching entries before deciding which\nentry to use.\n\n#### getcaps\n\nReturn a dictionary containing the mailcap database.\n\nThe dictionary maps a MIME type (in all lowercase, e.g. 'text/plain')\nto a list of dictionaries corresponding to mailcap entries.  The list\ncollects all the entries for that MIME type from all available mailcap\nfiles.  Each dictionary contains key-value pairs for that MIME type,\nwhere the viewing command is stored with the key \"view\".\n\n### DATA\n\nall = ['getcaps', 'findmatch']\n\n### FILE\n\n/usr/lib/python3.10/mailcap.py\n\n"
        }
    ],
    "structuredContent": {
        "command": "mailcap",
        "section": "",
        "mode": "pydoc",
        "summary": "mailcap - Mailcap file handling.  See RFC 1524.",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "MODULE REFERENCE",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "findmatch",
                        "lines": 7
                    },
                    {
                        "name": "getcaps",
                        "lines": 8
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}