BSD 4_3 release
[unix-history] / usr / man / man1 / msgs.1
index 08347c2..cfc4ba6 100644 (file)
@@ -1,4 +1,10 @@
-.TH MSGS 1 "18 January 1983"
+.\" Copyright (c) 1980 Regents of the University of California.
+.\" All rights reserved.  The Berkeley software License Agreement
+.\" specifies the terms and conditions for redistribution.
+.\"
+.\"    @(#)msgs.1      6.3 (Berkeley) 5/9/86
+.\"
+.TH MSGS 1 "May 9, 1986"
 .UC 4
 .SH NAME
 msgs \- system messages and junk mail program
 .UC 4
 .SH NAME
 msgs \- system messages and junk mail program
@@ -11,6 +17,15 @@ number
 ] [
 \-number
 ]
 ] [
 \-number
 ]
+.LP
+.B msgs
+.B \-s
+.LP
+.B msgs
+.B \-c
+[
+\-days
+]
 .SH DESCRIPTION
 .I Msgs
 is used to read system messages.
 .SH DESCRIPTION
 .I Msgs
 is used to read system messages.
@@ -33,7 +48,7 @@ long it is and asked whether you wish to see the rest of the message.
 The possible responses are:
 .TP 7
 .B y
 The possible responses are:
 .TP 7
 .B y
-type the rest of the message
+type the rest of the message.
 .TP 7
 RETURN
 synonym for y.
 .TP 7
 RETURN
 synonym for y.
@@ -53,7 +68,7 @@ the next time you run the program it will pick up where you left off.
 .B s
 append the current message to the file ``Messages'' in the current directory;
 `s\-' will save the previously displayed message. A `s' or `s\-' may
 .B s
 append the current message to the file ``Messages'' in the current directory;
 `s\-' will save the previously displayed message. A `s' or `s\-' may
-be followed by a space and a filename to receive the message replacing
+be followed by a space and a file name to receive the message replacing
 the default ``Messages''.
 .TP 7
 .B m
 the default ``Messages''.
 .TP 7
 .B m
@@ -85,7 +100,30 @@ will make a new
 .I bounds
 file the next time it is run.
 .PP
 .I bounds
 file the next time it is run.
 .PP
-Options to msgs include:
+The
+.B \-s
+option is used for setting up the posting of messages.  The line
+.IP
+.DT
+msgs: "| /usr/ucb/msgs \-s"
+.PP
+should be include in
+.I /usr/lib/aliases
+to enable posting of messages.
+.PP
+The
+.B \-c
+option is used for performing cleanup on
+.I /usr/msgs.
+An entry with the
+.B \-c
+option should be placed in
+.I /usr/lib/crontab
+to run every night.  This will remove all messages over 21 days old.
+A different expiration may be specified on the command line to override
+the default.
+.PP
+Options when reading messages include:
 .TP 7
 .B \-f
 which causes it not to say ``No new messages.''.
 .TP 7
 .B \-f
 which causes it not to say ``No new messages.''.
@@ -148,5 +186,5 @@ William Joy
 .br
 David Wasley
 .SH SEE ALSO
 .br
 David Wasley
 .SH SEE ALSO
-mail(1), more(1)
+aliases(5), crontab(5), mail(1), more(1)
 .SH BUGS
 .SH BUGS