{
    "mode": "man",
    "parameter": "ap",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/ap/8/json",
    "generated": "2026-06-14T05:53:30Z",
    "synopsis": "/usr/lib/mh/ap [-help] [-version] [-form formatfile] [-format string] [-width columns] addrs\n...",
    "sections": {
        "NAME": {
            "content": "ap - nmh parser of RFC 822-style addresses\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "/usr/lib/mh/ap [-help] [-version] [-form formatfile] [-format string] [-width columns] addrs\n...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "ap is a program that parses addresses according to the ARPA Internet standard.  It  also  un‐\nderstands  many  non-standard formats.  It is useful for seeing how nmh will interpret an ad‐\ndress.\n\nThe ap program treats each argument as one or more addresses, and prints those addresses  out\nin the official RFC 822 format.  Hence, it is usually best to enclose each argument in quotes\nfor the shell.\n\nTo override the output format used by ap, the -format string or  -format  file  switches  are\nused.   This  permits individual fields of the address to be extracted with ease.  The string\nis simply a format string, and the file is simply a format file.  See  mh-format(5)  for  the\ndetails.\n\nIn addition to the standard escapes, ap also recognizes the following additional escape:\n\nEscape  Returns  Description\nerror   string   A diagnostic if the parse failed\n\nHere is the default format string used by ap:\n\n%<{error}%{error}: %{text}%|%(putstr(proper{text}))%>\n\nwhich  says  that if an error was detected, print the error, a `:', and the address in error.\nOtherwise, output the RFC 822-proper format of the address.\n",
            "subsections": []
        },
        "FILES": {
            "content": "$HOME/.mhprofile   The user's profile.\n/etc/nmh/mts.conf   The mts configuration file.\n",
            "subsections": []
        },
        "PROFILE COMPONENTS": {
            "content": "None\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "fmttest(1), dp(8)\n\nStandard for the Format of ARPA Internet Text Messages (RFC 822)\n",
            "subsections": []
        },
        "DEFAULTS": {
            "content": "-format             As described above.\n-width              The width of the terminal.\n",
            "subsections": []
        },
        "CONTEXT": {
            "content": "None\n\n\n\nnmh-1.7.1                                    2013-12-05                                      AP(8mh)",
            "subsections": []
        }
    },
    "summary": "ap - nmh parser of RFC 822-style addresses",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "fmttest",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/fmttest/1/json"
        },
        {
            "name": "dp",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/dp/8/json"
        }
    ]
}