1 .TH MHPARAM %manext1% 2017-02-18 "%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 along with the profile
28 components value. This can be disabled with the switch
31 If more than one component is specified in the
35 is on by default. If only one component is specified, then the switch
41 is specified, then all components in the nmh profile are displayed
42 and other arguments are ignored.
45 can provide other information, such as the
47 version identifier, the locations of the nmh
53 install directories, all
57 method described in the
59 man page. Information about the configuration of the
61 installation is also available, including the default mail spool
62 locking method. To test whether the configuration includes
63 support for SASL, TLS,
65 and oauth, the following commands, respectively, will output a non-null
66 string to indicate support:
77 Conversely, no output means that the specified support is not included.
80 switch displays all such other information available from
83 Note that the internal
85 component has been replaced by
87 The old form is deprecated and will be removed in a future release.
93 .ta \w'AliasFile:'u+2n
100 % mhparam \-component Path
103 % mhparam AliasFile rmmproc
107 % mhparam \-nocomponent AliasFile rmmproc
111 % mhparam path nonexistent context
124 % mhparam spoollocking
127 % mhparam datalocking
145 is also useful in backquoted operations:
149 % fgrep cornell.edu `mhpath +`/`mhparam aliasfile`
153 returns the number of components that were not found,
154 but limits the return value to 120 to avoid ambiguity,
155 e.g.\& 127 is used by shells to indicate `command not found',
156 and 256 would wrap to 0, falsely indicating success.
161 .ta \w'ExtraBigProfileName 'u
162 ^$HOME/.mh_profile~^The user profile
163 ^or $MH~^Rather than the standard profile
164 ^<mh-dir>/context~^The user context
165 ^or $MHCONTEXT~^Rather than the standard context
167 .SH "PROFILE COMPONENTS"
171 .ta \w'ExtraBigProfileName 'u
172 ^context:~^To determine the context file
178 .RB ` \-nocomponent "' if only one component is specified"
179 .RB ` \-component "' if more than one component is specified"
180 .RB ` components "' defaults to none"