BSD 3 development
[unix-history] / usr / doc / mail / mail4.nr
CommitLineData
f044c7fb
KS
1.sh 1 "Message lists"
2.pp
3The
4.b type
5and
6.b delete
7commands described in section two take a list of messages as argument,
8as do many of the commands described in section six. This section
9describes the construction of message lists in general.
10.pp
11A
12.i "message list"
13consists of a list of message numbers, ranges, and names,
14separated by spaces or tabs. Message numbers may be either
15decimal numbers, which directly specify messages, or one of the
16special characters
17.q \(ua
18.q "."
19or
20.q "$"
21to specify the first relevant, current, or last
22relevant message, respectively.
23.i Relevant
24here means, for most commands
25.q "not deleted"
26and
27.q "deleted"
28for the
29.b undelete
30command.
31.pp
32A range of messages consists of two message numbers (of the form
33described in the previous paragraph) separated by a dash.
34Thus, to print the first four messages, use
35.(l
36type 1\-4
37.)l
38and to print all the messages from the current message to the last
39message, use
40.(l
41type .\-$
42.)l
43.pp
44A
45.i name
46is a user name. All of the user names given in the message list are
47collected together and each message selected by other means
48is checked to make sure it was sent by one of the named users.
49If the message consists entirely of user names, then every
50message sent by one those users which is
51.i relevant
52(in the sense described earlier)
53is selected. Thus, to print every message sent to you by
54.q root,
55do
56.(l
57type root
58.)l
59.pp
60As a shorthand notation, you can specify simply
61.q *
62to get every
63.i relevant
64(same sense)
65message. Thus,
66.(l
67type *
68.)l
69prints all undeleted messages,
70.(l
71delete *
72.)l
73deletes all undeleted messages, and
74.(l
75undelete *
76.)l
77undeletes all deleted messages.