1 .\" $NetBSD: msgs.1,v 1.16 2003/08/07 11:15:17 agc Exp $
3 .\" Copyright (c) 1980, 1990, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)msgs.1 8.2 (Berkeley) 4/28/95
37 .Nd system messages and junk mail program
49 is used to read system messages.
51 sent by mailing to the login `msgs' and should be short
52 pieces of information which are suitable to be read once by most users
56 is normally invoked each time you login, by placing it in the file
62 It will then prompt you with the source and subject of each new message.
63 If there is no subject line, the first few non-blank lines of the
64 message will be displayed.
65 If there is more to the message, you will be told how
66 long it is and asked whether you wish to see the rest of the message.
67 The possible responses are:
70 Type the rest of the message.
75 and go on to the next message.
77 Redisplay the last message.
83 will pick up where it last left off.
85 Append the current message to the file ``Messages'' in the current directory;
86 `s\-' will save the previously displayed message.
88 be followed by a space and a file name to receive the message replacing
89 the default ``Messages''.
91 A copy of the specified message is placed in a temporary
94 is invoked on that mailbox.
96 The specified message is piped through
100 is null or not defined,
102 The commands `m', `p', and `s' all accept a numeric argument in place of the `\-'.
106 keeps track of the next message you will see by a number in the file
108 in your home directory.
111 it keeps a set of files whose names are the (sequential) numbers
112 of the messages they represent.
115 shows the low and high number of the messages in the directory
118 can quickly determine if there are no messages for you.
121 is incorrect it can be fixed by removing it;
125 file the next time it is run.
129 option is used for setting up the posting of messages.
132 .Dl msgs: \&"\&| /usr/bin/msgs \-s\&"
134 should be included in
135 .Pa /etc/mail/aliases
138 to enable posting of messages.
142 option is used for performing cleanup on
146 option should be placed in
149 This will remove all messages over 21 days old.
150 A different expiration may be specified on the command line to override
153 Options when reading messages include:
156 Do not print ``No new messages.''.
159 file since this is often the case here.
161 Queries whether there are messages, printing
162 ``There are new messages.'' if there are.
163 The command ``msgs \-q'' is often used in login scripts.
165 Print the first part of messages only.
167 Disables the ability to save messages or enter the mailer.
171 is set to something secure.
173 Option causes only locally originated messages to be reported.
175 A message number can be given
176 on the command line, causing
178 to start at the specified message rather than at the next message
186 prints the first part of all messages.
190 messages back from the one indicated in the
192 file, useful for reviews of recent messages.
194 Pipe long messages through
198 is null or not defined,
204 you can also go to any specific message by typing its number when
206 requests input as to what to do.
213 environment variables for the default home directory and
216 .Bl -tag -width /var/msgs/* -compact
220 number of next message to be presented