macros for different classes of network
[unix-history] / .ref-BSD-3 / usr / man / man1 / msgs.1
CommitLineData
bac65f5d
BJ
1.TH MSGS 1 2/24/79
2.UC
3.SH NAME
4msgs \- system messages and junk mail program
5.SH SYNOPSIS
6.B msgs
7[
8.B \-f
9] [
10.B \-q
11] [
12.B \-h
13] [
14number
15] [
16\-number
17]
18.SH DESCRIPTION
19.I Msgs
20is used to read system messages.
21These messages are
22sent by mailing to the login `msgs' and are short
23pieces of information which are suitable to be read once by most users
24of the system.
25.PP
26.I Msgs
27is normally invoked each time you login, by placing it in the file
28.I \&.login
29.I (\&.profile
30if you use
31.IR /bin/sh ).
32It will then prompt you with the first portion of each new message.
33If the message is longer than a couple of lines you will be told how
34long it is and asked whether you wish to see the whole message.
35You can type return, or `y' to see the message, or `n' to skip it
36and go on to the next message.
37An interrupt drops you out of
38.I msgs;
39the next time you run the program it will pick up where you left off.
40.PP
41.I Msgs
42keeps track of the next message you will see by number in the file
43.I \&.msgsrc
44in your home directory.
45In the directory
46.I /usr/msgs
47it keeps a set of files whose names are the (sequential) numbers
48of the messages they represent.
49The file
50.I /usr/msgs/bounds
51shows the low and high number of the messages in the directory
52so that
53.I msgs
54can quickly determine if there are no messages for you.
55If this file
56.I bounds
57is incorrect it can be fixed by removing it;
58.I msgs
59will make a new
60.I bounds
61file the next time it is run.
62.PP
63Options to msgs include
64.B \-f
65which causes it not to say ``No messages.''.
66This is useful in your
67.I \&.login
68file since this is often the case here.
69If you prefer to learn of new messages without running the program
70you can put the command ``msgs \-q'' in your
71.I \&.login
72file.
73This queries whether there are messages, printing
74``There are new messages.'' if there are.
75The
76.B \-h
77option causes
78.I msgs
79to print the first part of messages only.
80This is most useful when a message number is also given
81on the command line, causing
82.I msgs
83to start at the specified message rather than at the next message
84your
85.I \&.msgsrc
86file indicates.
87Thus
88.IP
89msgs \-h 1
90.PP
91prints the first part of all messages.
92The
93.I "\-number"
94option will start
95.I number
96messages back from the one indicated in your
97.I \&.msgsrc
98file, useful for reviews of recent messages.
99Within
100.I msgs
101you can also go to any specific message by typing its number when
102.I msgs
103requests input as to what to do.
104.SH FILES
105/usr/msgs/* database
106.br
107~/.msgsrc number of next message to be presented
108.SH AUTHOR
109William Joy
110.SH SEE ALSO
111mail(1)
112.SH BUGS