DELREM(I)                          4/30/76                          DELREM(I)

NAME
	delrem

SYNOPSIS
	delrem

DESCRIPTION
	Delrem is a program for reading and/or deleting reminders whose
	delivery time has not arrived.  A user can examine or delete any
	reminder that he has sent or any reminder directed only to him.
	Superuser can examine or delete any reminder.

	When delrem is invoked, it prints the number of reminders that
	the user can access (N).  The program is driven by a very simple .
	command language.  The commands are:

		headers [list]     print headers
		show    [list]     show headers and messages
		delete  [list]     mark reminders for deletion
		keep    [list]     unmark 'deleted' reminders
		write              update the reminder file
		abort              exit without modifying reminder file
				       (same effect as interrupt, quit,
				       or end of file)

	Only the first letter of a command is significant.

	A list, optional where specified, gives the numbers of the
	reminders to be affected.  The list consists of fields separated
	by commas.  Each field is either an integer or a hyphen-separated
	pair of integers, in which case the field refers to all the
	reminders in the given range.  Blanks and tabs are ignored
	everywhere.  If the list is omitted,  1-N is assumed.

		Examples:
			headers 1,2,7,6,5,3,12
			h1,2,7-5,3,12
			headers 1, 2, 7-5, 3, 12
			hello   1-2, 7 - 5 , 3, 1 2

		    all print the headers of messages 1, 2, 7, 6, 5, 3, and 12
		    in that order.

	Note that deletion is not actually carried out until the write
	command is given.

FILES
	/tmp/rmdfile    file of reminders (read and re-created)
	/tmp/rmdtemp    temporary file used during deletion
	/tmp/rmdlock    lock to prevent simultaneous update of /tmp/rmdfile
			   and /tmp/rmdtemp
	/tmp/d.XXXXXX   temporary file (XXXXXX = process id in octal)

SEE ALSO
	remind(I)

DIAGNOSTICS
	"Syntax error or number out of range" -- A command does not
	exist, a list is not of the proper form, or a number is not
	between 1 and N.

BUGS
	The program can handle only 100 reminders at a time.

REMARKS
	Runs in privileged (superuser) mode so it can access the reminder
	file and recreate it.

AUTHOR
	Steve Zucker
