{
    "mode": "man",
    "parameter": "mhparam",
    "section": "1mh",
    "url": "https://www.chedong.com/phpMan.php/man/mhparam/1mh/json",
    "generated": "2026-05-30T07:09:39Z",
    "synopsis": "mhparam [-help] [-version] [components] [-all] [-component | -nocomponent] [-debug]",
    "sections": {
        "NAME": {
            "content": "mhparam - print nmh profile and context components\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "mhparam [-help] [-version] [components] [-all] [-component | -nocomponent] [-debug]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "mhparam writes the value of the specified profile component to the standard output, separated\nby newlines.  Component name matching is case-insensitive.  If the profile component  is  not\npresent, the default value (or nothing, if there is no default) is printed.\n\nIf  the  switch -component is given, then the component name is displayed along with the pro‐\nfile components value.  This can be disabled with the switch -nocomponent.\n\nIf more than one component is specified in the components list, then the switch -component is\non by default.  If only one component is specified, then the switch -nocomponent is on by de‐\nfault.\n\nIf -all is specified, then all components in the nmh profile are displayed  and  other  argu‐\nments are ignored.\n\nmhparam  can  provide other information, such as the nmh version identifier, the locations of\nthe nmh bindir, libexecdir, etcdir, and docdir install directories, all  proc  settings,  and\nthe  datalocking  method described in the mh-profile(5) man page.  Information about the con‐\nfiguration of the nmh installation is also available, including the default mail spool  lock‐\ning  method.  To test whether the configuration includes support for SASL, TLS, iconv(3), and\noauth, the following commands, respectively, will output a non-null string to  indicate  sup‐\nport:\n\nmhparam sasl\nmhparam tls\nmhparam iconv\nmhparam oauth\n\nConversely,  no  output  means that the specified support is not included.  The -debug switch\ndisplays all such other information available from mhparam.\n\nNote that the internal libdir component has been replaced by libexecdir.   The  old  form  is\ndeprecated and will be removed in a future release.\n\nExamples:\n\n% mhparam path\nMail\n\n% mhparam mhlproc\n/usr/lib/mh/mhl\n\n% mhparam -component Path\nPath: Mail\n\n% mhparam AliasFile rmmproc\nAliasFile: aliases\nrmmproc: rmmproc\n\n% mhparam -nocomponent AliasFile rmmproc\naliases\nrmmproc\n\n% mhparam path nonexistent context\nPath: Mail\ncontext: context\n\n% mhparam version\nnmh-1.7.1\n\n% mhparam etcdir\n/etc/nmh\n\n% mhparam libexecdir\n/usr/lib/mh\n\n% mhparam spoollocking\nfcntl\n\n% mhparam datalocking\nfcntl\n\n% mhparam sasl\ncyrussasl\n\n% mhparam tls\ntls\n\n% mhparam iconv\niconv\n\n% mhparam oauth\noauth\n\nmhparam is also useful in backquoted operations:\n\n% fgrep cornell.edu `mhpath +`/`mhparam aliasfile`\n",
            "subsections": []
        },
        "EXIT STATUS": {
            "content": "mhparam  returns the number of components that were not found, but limits the return value to\n120 to avoid ambiguity, e.g. 127 is used by shells to indicate `command not found',  and  256\nwould wrap to 0, falsely indicating success.\n",
            "subsections": []
        },
        "FILES": {
            "content": "$HOME/.mhprofile    The user profile\nor $MH               Rather than the standard profile\n<mh-dir>/context     The user context\nor $MHCONTEXT        Rather than the standard context\n",
            "subsections": []
        },
        "PROFILE COMPONENTS": {
            "content": "context:             To determine the context file\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "mh-profile(5)\n",
            "subsections": []
        },
        "DEFAULTS": {
            "content": "`-nocomponent' if only one component is specified\n`-component' if more than one component is specified\n`components' defaults to none\n",
            "subsections": []
        },
        "CONTEXT": {
            "content": "None\n\n\n\nnmh-1.7.1                                    2017-02-18                                 MHPARAM(1mh)",
            "subsections": []
        }
    },
    "summary": "mhparam - print nmh profile and context components",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "mh-profile",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/mh-profile/5/json"
        }
    ]
}