{
    "mode": "info",
    "parameter": "RUN-MAILCAP",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/RUN-MAILCAP/json",
    "generated": "2026-07-05T02:55:19Z",
    "synopsis": "run-mailcap   --action=ACTION   [--option[=value]]   [MIME-TYPE:[ENCOD-\nING:]]FILE [...]\nThe see, edit, compose and print versions are just aliases that default\nto the view, edit, compose, and print actions (respectively).",
    "sections": {
        "NAME": {
            "content": "run-mailcap, view, see, edit, compose, print - execute programs via en-\ntries in the mailcap file\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "run-mailcap   --action=ACTION   [--option[=value]]   [MIME-TYPE:[ENCOD-\nING:]]FILE [...]\n\nThe see, edit, compose and print versions are just aliases that default\nto the view, edit, compose, and print actions (respectively).\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "run-mailcap (or any of its  aliases)  will  use  the  given  action  to\nprocess  each  mime-type/file  in  turn.  Each file is specified as its\nmime-type, its encoding (e.g. compression), and filename together, sep-\narated by colons.  If the mime-type is omitted, an attempt to determine\nthe type is made by trying to match the file's extension with those  in\nthe mime.types files.  If no mime-type is found, a last attempt will be\ndone by running the file command, if available.   If  the  encoding  is\nomitted,  it  will also be determined from the file's extensions.  Cur-\nrently supported encodings are gzip (.gz), bzip2 (.bz2), xz (.xz),  and\ncompress (.Z).  A filename of \"-\" can be used to mean \"standard input\",\nbut then a mime-type must be specified.\n\nBoth the user's files (~/.mailcap; ~/.mime.types) and the system  files\n(/etc/mailcap; /etc/mime.types) are searched in turn for information.\n\nEXAMPLES\nsee picture.jpg\nprint output.ps.gz\ncompose text/html:index.htm\nextract-mail-attachment msg.txt | see image/tiff:gzip:-\n\nOPTIONS\nAll options are in the form --<opt>=<value>.\n\n--action=<action>\nPerforms  the  specified action on the files.  Valid actions are\nview, cat (uses only \"copiousoutput\" rules and sends  output  to\nSTDOUT)  ,  compose, composetyped, edit and print.  If no action\nis specified, the action will be determined by how  the  program\nwas called.\n",
            "subsections": [
                {
                    "name": "--debug",
                    "content": "Turns on extra information to find out what is happening.\n",
                    "long": "--debug"
                },
                {
                    "name": "--nopager",
                    "content": "Ignores  any  \"copiousoutput\" directive and sends output to STD-\nOUT.\n",
                    "long": "--nopager"
                },
                {
                    "name": "--norun",
                    "content": "Displays the found command without actually executing it.\n",
                    "long": "--norun"
                }
            ]
        },
        "SECURITY": {
            "content": "A temporary symbolic link to the  file  is  opened  if  the  file  name\nmatches the Perl regular expression \"[^[:alnum:],.:/@%^+=-]\", in order\nto protect from the injection of shell commands, and to make sure  that\nthe  name  can always be displayed in the current locale.  In addition,\nthe file is opened using its absolute path to prevent the injection  of\ncommand-line  arguments,  for  instance  using file names starting with\ndashes.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "file(1) mailcap(5) mailcap.order(5) update-mime(8)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "run-mailcap  (and   its   aliases)   was   written   by   Brian   White\n<bcwhite@pobox.com>.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "run-mailcap  (and  its  aliases) is in the public domain (the only true\n\"free\").\n\nDebian Project                   1st Jan 2008                   RUN-MAILCAP(1)",
            "subsections": []
        }
    },
    "summary": "run-mailcap, view, see, edit, compose, print - execute programs via en- tries in the mailcap file",
    "flags": [
        {
            "flag": "",
            "long": "--debug",
            "arg": null,
            "description": "Turns on extra information to find out what is happening."
        },
        {
            "flag": "",
            "long": "--nopager",
            "arg": null,
            "description": "Ignores any \"copiousoutput\" directive and sends output to STD- OUT."
        },
        {
            "flag": "",
            "long": "--norun",
            "arg": null,
            "description": "Displays the found command without actually executing it."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "file",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/file/1/json"
        },
        {
            "name": "mailcap",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/mailcap/5/json"
        },
        {
            "name": "mailcap.order",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/mailcap.order/5/json"
        },
        {
            "name": "update-mime",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/update-mime/8/json"
        }
    ]
}