.\" Copyright (c) 1980, 1990 The Regents of the University of California.
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" @(#)msgs.1 6.9 (Berkeley) 7/30/91
.Nd system messages and junk mail program
is used to read system messages.
sent by mailing to the login `msgs' and should be short
pieces of information which are suitable to be read once by most users
is normally invoked each time you login, by placing it in the file
It will then prompt you with the source and subject of each new message.
If there is no subject line, the first few non-blank lines of the
message will be displayed.
If there is more to the message, you will be told how
long it is and asked whether you wish to see the rest of the message.
The possible responses are:
Type the rest of the message.
and go on to the next message.
Redisplay the last message.
will pick up where it last left off.
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 file name to receive the message replacing
the default ``Messages''.
A copy of the specified message is placed in a temporary
is invoked on that mailbox.
Both `m' and `s' accept a numeric argument in place of the `\-'.
keeps track of the next message you will see by a number in the file
it keeps a set of files whose names are the (sequential) numbers
of the messages they represent.
shows the low and high number of the messages in the directory
can quickly determine if there are no messages for you.
is incorrect it can be fixed by removing it;
file the next time it is run.
option is used for setting up the posting of messages. The line
.Dl msgs: \&"\&| /usr/ucb/msgs \-s\&"
to enable posting of messages.
option is used for performing cleanup on
option should be placed in
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
Options when reading messages include:
Do not to say ``No new messages.''.
file since this is often the case here.
Queries whether there are messages, printing
``There are new messages.'' if there are.
The command ``msgs \-q'' is often used in login scripts.
Print the first part of messages only.
Option causes only locally originated messages to be reported.
A message number can be given
on the command line, causing
to start at the specified message rather than at the next message
prints the first part of all messages.
messages back from the one indicated in the
file, useful for reviews of recent messages.
Pipe long messages through
you can also go to any specific message by typing its number when
requests input as to what to do.
environment variables for the default home directory and
.Bl -tag -width /usr/msgs/* -compact
number of next message to be presented