MHPARAM(1mh)
β¨ NAME β¨
mhparam β bestie, this one prints out your nmh profile and context components π
πΈ SYNOPSIS πΈ
mhparam [-help] [-version] [components] [-all] [-component |
-nocomponent] [-debug]
π¦ DESCRIPTION π¦
okay so here's the tea: mhparam writes the value of the profile component you asked for straight to standard output, and each one gets its own newline. Component name matching is case-insensitive, so don't stress about your shift key. And if the profile component isn't there at all? It just prints the default value β or literally nothing, if there's no default to print. π
If you hand it the -component switch, then the component name shows up right alongside the profile component's value. Wanna turn that off? -nocomponent does exactly that. π«Ά
Here's the little rule that gets people: if you list more than one component in the components list, then -component is on by default. If you only list one component, then -nocomponent is on by default. Slay, the tool reads your mind.
If -all is specified, then all components in the nmh profile get displayed, and every other argument just gets ignored. Periodt. π
mhparam can also spill other info for you, like:
- the nmh version identifier
- where the nmh
bindir,libexecdir,etcdir, anddocdirinstall directories live - all
procsettings - the datalocking method described in
mh-profile(5)
Info about how your nmh installation is configured is up for grabs too, including the default mail spool locking method. And if you wanna test whether the configuration includes support for SASL, TLS, iconv(3), and oauth β the following commands will output a non-null string to indicate support, respectively:
mhparam sasl
mhparam tls
mhparam iconv
mhparam oauth
Conversely, no output means that support isn't included. Not included, not invited, not on the list. π And the -debug switch displays all such other information available from mhparam β like, the whole group chat. π₯
Examples, because seeing it hits different:
$ mhparam path
Mail
$ mhparam mhlproc
/usr/lib/mh/mhl
$ mhparam -component Path
Path: Mail
$ mhparam AliasFile rmmproc
AliasFile: aliases
rmmproc: rmmproc
$ mhparam -nocomponent AliasFile rmmproc
aliases
rmmproc
$ mhparam path nonexistent context
Path: Mail
context: context
$ mhparam version
nmh-1.8
$ mhparam etcdir
/etc/nmh
$ mhparam libexecdir
/usr/lib/mh
$ mhparam spoollocking
fcntl
$ mhparam datalocking
fcntl
$ mhparam sasl
cyrus_sasl
$ mhparam tls
tls
$ mhparam iconv
iconv
$ mhparam oauth
oauth
And mhparam is also super useful in backquoted operations, iykyk:
$ fgrep cornell.edu `mhpath +`/`mhparam aliasfile`
π EXIT STATUS π
The exit status is zero if all components are found, or one if any are missing. So like, one missing component and the whole vibe is off. π
π FILES π
$HOME/.mh_profileβ the user profile- or
$MHβ rather than the standard profile <mh-dir>/contextβ the user context- or
$MHCONTEXTβ rather than the standard context
π PROFILE COMPONENTS π
context:β to determine the context file
π SEE ALSO π
π DEFAULTS π
-nocomponentif only one component is specified-componentif more than one component is specifiedcomponentsdefaults to none
π§ CONTEXT π§
None. Yeah, nothing. Empty. A clean slate bestie. β¨
okay that's the whole page, no cap π thanks for reading all the way to the end, you're literally the main character for that
nmh-1.8 Β· 2017-02-18 β mwah, love u, go print some components π«Άπ
π¦ where this page comes from
- debian trixie: nmh 1.8-3
- ubuntu noble: nmh 1.8-1build4
- ubuntu questing: nmh 1.8-3
- ubuntu resolute: nmh 1.8-4
- ubuntu stonking: nmh 1.8-4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms