NHM
---

Syntax:
	NHM <command> ...
 
NHM is the "News & History Manager". This program is a "collection" of
several small utilities.

NHM can understand the following commands:

active
	Check the current ACTIVE file and print it

check
	Check the consistency of the history file
	
expire=<n>
	Expires all history records that are older than <n> days
	
help
	Print a short command summary

list[=<ptn>]
	List newsgroups fitting the pattern <ptn>. <ptn> defaults to *,
	matching all newsgroups.
	
newgroup=<grp>
	Create a new (empty) newsgroup named <grp>
	
prompt
	Enter interactive mode (see below)

read=<file>
	Read commands from <file>. Caution: you must give an absolute
	path name!
	
rebuild
	Throw away the old history file and create a new one. The new
	history will have records for all articles currently in the
	article tree.
	
rehash
	Reorganise the history, keeping the existing records
	
rmgroup=<grp>
	Remove the group name <grp> from the article tree and the NEWS.DEF
	file

synch
	Write a new NEWS.DEF file, thus resynching the article numbers
	in that file and in the article tree
	
sys
	Check the current SYS file and print it

The interactive mode lets you execute many commands in a single NHM run.
If you call NHM with the argument "prompt", you get an NHM prompt. You
can now enter commands, one or several per line. There is an additional
command, "quit", to leave interactive mode.

For example:

	shell>NHM prompt
	[...Some initialization messages...]
	NHM>expire=30 rehash check active sys
	[...crunch, crunch, crunch, crunch, crunch...]
	NHM>rmgroup=local.tesst newgroup=local.test
	[...crunch, crunch...]
	NHM>quit
	shell>
