system messages and junk mail program
utility is used to read system
messages. These messages are sent by mailing to the login `msgs' and should be
short pieces of information which are suitable to be read once by most users
of the system.
utility is normally invoked each
time you login, by placing it in the file
if you use
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
- Type the rest of the message.
- Synonym for y.
- Skip this message and go on to the next message.
- Redisplay the last message.
- Drop out of
msgs; the next time
msgs will pick up where it last left
- 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 mailbox and
is invoked on that mailbox. Both `m' and `s' accept a numeric argument in
place of the `-'.
utility keeps track of the next
message you will see by a number in the file
in your home directory. In the
it keeps a set of files
whose names are the (sequential) numbers of the messages they represent. The
shows the low and
high number of the messages in the directory so that
can quickly determine if there are no
messages for you. If the contents of bounds
is incorrect it can be fixed by removing it;
will make a new
file the next time it is run with
is run with any option other than
, an error will be displayed if
does not exist.
option is used for setting up the
posting of messages. The line
msgs: "| /usr/bin/msgs
should be included in /etc/mail/aliases
to enable posting of messages.
option is used for performing cleanup
. A shell script entry to run
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 the
default. You must be the superuser to use this option.
Options when reading messages include:
- Do not say ``No new messages.''. This is useful in a
.login file since this is often the
- 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.
- Cause only locally originated messages to be reported.
- A message number can be given on the command line, causing
msgs to start at the specified message
rather than at the next message indicated by your
.msgsrc file. Thus
prints the first part of all messages.
msgs -h 1
- Start number messages back from the one
indicated in the .msgsrc 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.
utility uses the
environment variables for the default
home directory and terminal type.
- number of next message to be presented
command appeared in