new subnets, interface addressing
[unix-history] / usr / src / usr.bin / msgs / msgs.1
CommitLineData
60c31fc3
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
2b266726 5.\" @(#)msgs.1 6.1 (Berkeley) %G%
60c31fc3 6.\"
2b266726 7.TH MSGS 1 ""
60c31fc3
KM
8.UC 4
9.SH NAME
10msgs \- system messages and junk mail program
11.SH SYNOPSIS
12.B msgs
13[
14.B \-fhlpq
15] [
16number
17] [
18\-number
19]
20.SH DESCRIPTION
21.I Msgs
22is used to read system messages.
23These messages are
24sent by mailing to the login `msgs' and should be short
25pieces of information which are suitable to be read once by most users
26of the system.
27.PP
28.I Msgs
29is normally invoked each time you login, by placing it in the file
30.I \&.login
31.I (\&.profile
32if you use
33.IR /bin/sh ).
34It will then prompt you with the source and subject of each new message.
35If there is no subject line, the first few non-blank lines of the
36message will be displayed.
37If there is more to the message, you will be told how
38long it is and asked whether you wish to see the rest of the message.
39The possible responses are:
40.TP 7
41.B y
42type the rest of the message
43.TP 7
44RETURN
45synonym for y.
46.TP 7
47.B n
48skip this message
49and go on to the next message.
50.TP 7
51.B \-
52redisplay the last message.
53.TP 7
54.B q
55drops you out of
56.I msgs;
57the next time you run the program it will pick up where you left off.
58.TP 7
59.B s
60append the current message to the file ``Messages'' in the current directory;
61`s\-' will save the previously displayed message. A `s' or `s\-' may
62be followed by a space and a filename to receive the message replacing
63the default ``Messages''.
64.TP 7
65.B m
66or `m\-' causes a copy of the specified message to be placed in a temporary
67mailbox and
68.IR mail (1)
69to be invoked on that mailbox.
70Both `m' and `s' accept a numeric argument in place of the `\-'.
71.PP
72.I Msgs
73keeps track of the next message you will see by a number in the file
74.I \&.msgsrc
75in your home directory.
76In the directory
77.I /usr/msgs
78it keeps a set of files whose names are the (sequential) numbers
79of the messages they represent.
80The file
81.I /usr/msgs/bounds
82shows the low and high number of the messages in the directory
83so that
84.I msgs
85can quickly determine if there are no messages for you.
86If the contents of
87.I bounds
88is incorrect it can be fixed by removing it;
89.I msgs
90will make a new
91.I bounds
92file the next time it is run.
93.PP
94Options to msgs include:
95.TP 7
96.B \-f
97which causes it not to say ``No new messages.''.
98This is useful in your
99.I \&.login
100file since this is often the case here.
101.TP 7
102.B \-q
103Queries whether there are messages, printing
104``There are new messages.'' if there are.
105The command ``msgs \-q'' is often used in login scripts.
106.TP 7
107.B \-h
108causes
109.I msgs
110to print the first part of messages only.
111.TP 7
112.B \-l
113option causes only locally originated messages to be reported.
114.TP 7
115\fInum\fR
116A message number can be given
117on the command line, causing
118.I msgs
119to start at the specified message rather than at the next message
120indicated by your
121.I \&.msgsrc
122file.
123Thus
124.IP "" 7
125 msgs \-h 1
126.IP "" 7
127prints the first part of all messages.
128.TP 7
129.I "\-number"
130will cause
131.I msgs
132to start
133.I number
134messages back from the one indicated by your
135.I \&.msgsrc
136file, useful for reviews of recent messages.
137.TP 7
138.B \-p
139causes long messages to be piped through
140.IR more (1).
141.PP
142Within
143.I msgs
144you can also go to any specific message by typing its number when
145.I msgs
146requests input as to what to do.
147.SH FILES
148.ta 2i
149/usr/msgs/* database
150.br
151~/.msgsrc number of next message to be presented
152.SH AUTHORS
153William Joy
154.br
155David Wasley
156.SH SEE ALSO
157mail(1), more(1)
158.SH BUGS