install-mh - initialize the nmh environment
[-help] [-version] [-auto] [-check]
creates the initial setup for a first-time nmh
is installed in two locations for historical reasons.
switch does things as automatically as possible and makes
The user is prompted for the name of the directory to be designated as the
directory. If this directory does not exist, the user is
asked if it should be created. Normally, this directory should be under the
user's home directory, and has the default name of `Mail'
writes an initial .mh_profile
for the user.
As with all nmh
first checks for the
existence of the $MH
environment variable, since that, if set, gives
the profile path. If it isn't set, the $HOME
environment variable is
consulted to determine the user's home directory. If $HOME
is not set,
then the /etc/passwd
file is consulted.
When creating the user's .mh_profile
will check for
the existence of a global profile at /etc/nmh/mh.profile
. If found,
this will be used to initialize the new .mh_profile
switch checks if nmh
is installed. (This can be used by
other programs to determine if nmh
has been installed.)
- The user's profile.
- Used to initialize user's profile.
- To set the user's nmh directory.
, the current folder is changed to
If you only ran install-mh to try out nmh
briefly, you might like to
remove the configuration files it creates. (This is not obligatory --
creates only a few small files so simply leaving them in
place will not cause problems.)
configuration information lives in the user's nmh
directory; you can print its name by running
Basically all plain files in the nmh
directory are configuration files
and can be removed.
directory holds not just configuration files!
Its subdirectories contain all the emails you have written or received with
Don't delete the nmh
directory without carefully checking
that there are no mail files that you might want later!
The only configuration file that lives outside the nmh
directory is your
profile file. You can print its name by running
If you aren't using nmh any more you can delete this file, too.