1 .\" Copyright (c) 1980, 1990, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)msgs.1 8.2 (Berkeley) 4/28/95
33 .\" $FreeBSD: src/usr.bin/msgs/msgs.1,v 1.9.2.7 2002/07/15 07:19:24 keramida Exp $
34 .\" $DragonFly: src/usr.bin/msgs/msgs.1,v 1.2 2003/06/17 04:29:29 dillon Exp $
41 .Nd system messages and junk mail program
55 utility is used to read system messages.
57 sent by mailing to the login `msgs' and should be short
58 pieces of information which are suitable to be read once by most users
63 utility is normally invoked each time you login, by placing it in the file
69 It will then prompt you with the source and subject of each new message.
70 If there is no subject line, the first few non-blank lines of the
71 message will be displayed.
72 If there is more to the message, you will be told how
73 long it is and asked whether you wish to see the rest of the message.
74 The possible responses are:
77 Type the rest of the message.
82 and go on to the next message.
84 Redisplay the last message.
90 will pick up where it last left off.
92 Append the current message to the file ``Messages'' in the current directory;
93 `s\-' will save the previously displayed message.
95 be followed by a space and a file name to receive the message replacing
96 the default ``Messages''.
98 A copy of the specified message is placed in a temporary
101 is invoked on that mailbox.
102 Both `m' and `s' accept a numeric argument in place of the `\-'.
107 utility keeps track of the next message you will see by a number in the file
109 in your home directory.
112 it keeps a set of files whose names are the (sequential) numbers
113 of the messages they represent.
116 shows the low and high number of the messages in the directory
119 can quickly determine if there are no messages for you.
122 is incorrect it can be fixed by removing it;
126 file the next time it is run with the
131 is run with any option other than
133 an error will be displayed if
139 option is used for setting up the posting of messages.
142 .Dl msgs: \&"\&| /usr/bin/msgs \-s\&"
144 should be included in
145 .Pa /etc/mail/aliases
148 to enable posting of messages.
152 option is used for performing cleanup on
154 A shell script entry to run
158 option should be placed in
159 .Pa /etc/periodic/daily
163 This will remove all messages over 21 days old.
164 A different expiration may be specified on the command line to override
166 You must be the superuser to use this option.
168 Options when reading messages include:
171 Do not say ``No new messages.''.
174 file since this is often the case here.
176 Queries whether there are messages, printing
177 ``There are new messages.'' if there are.
178 The command ``msgs \-q'' is often used in login scripts.
180 Print the first part of messages only.
182 Cause only locally originated messages to be reported.
184 A message number can be given
185 on the command line, causing
187 to start at the specified message rather than at the next message
195 prints the first part of all messages.
199 messages back from the one indicated in the
201 file, useful for reviews of recent messages.
203 Pipe long messages through
209 you can also go to any specific message by typing its number when
211 requests input as to what to do.
219 environment variables for the default home directory and
222 .Bl -tag -width /var/msgs/* -compact
226 number of next message to be presented