1 .TH MHPARAM %manext1% "May 21, 2016" "%nmhversion%"
6 mhparam \- print nmh profile and context components
15 .RB [ \-component " | " \-nocomponent ]
20 writes the value of the specified profile component to the standard
21 output separated by newlines. Component name matching is
22 case-insensitive. If the profile component is not present, the
23 default value (or nothing if there is no default) is printed.
27 is given, then the component name is displayed
28 along with the profile components value. This can be disabled with the
32 If more than one component is specified in the
37 is on by default. If only one component is
38 specified, then the switch
44 is specified, then all components in the nmh profile are
45 displayed and other arguments are ignored.
48 can provide other information, such as the
50 version identifier, the locations of the nmh
56 install directories, all
60 method described in the
62 man page. Information about the configuration of the
64 installation is also available, including the default mail spool
65 locking method. To test whether the configuration includes
66 support for SASL, TLS,
68 and oauth, the following commands, respectively, will output a non-null
69 string to indicate support:
80 Conversely, no output means that the specified support is not included.
83 switch displays all such other information available from
86 Note that the internal
88 component has been replaced by
90 The old form is deprecated and will be removed in a future release.
96 .ta \w'AliasFile:'u+2n
103 % mhparam \-component Path
106 % mhparam AliasFile rmmproc
110 % mhparam \-nocomponent AliasFile rmmproc
114 % mhparam path nonexistent context
127 % mhparam spoollocking
130 % mhparam datalocking
148 is also useful in backquoted operations:
152 % fgrep cornell.edu `mhpath +`/`mhparam aliasfile`
156 returns the number of components that were not found,
157 but limits just the return value to 120 to avoid ambiguity,
158 e.g.\& 127 is used by shells to indicate `command not found',
159 and 256 would wrap to 0, falsely indicating success.
164 .ta \w'ExtraBigProfileName 'u
165 ^$HOME/.mh_profile~^The user profile
166 ^or $MH~^Rather than the standard profile
167 ^<mh-dir>/context~^The user context
168 ^or $MHCONTEXT~^Rather than the standard context
170 .SH "PROFILE COMPONENTS"
174 .ta \w'ExtraBigProfileName 'u
175 ^context:~^To determine the context file
181 .RB ` \-nocomponent "' if only one component is specified"
182 .RB ` \-component "' if more than one component is specified"
183 .RB ` components "' defaults to none"