8 date 92.02.11.22.40.23; author jromine; state Exp;
13 date 90.04.05.15.08.26; author sources; state Exp;
18 date 90.03.22.11.31.28; author sources; state Exp;
23 date 90.03.20.19.42.07; author sources; state Exp;
28 date 90.03.20.17.36.23; author sources; state Exp;
33 date 89.11.17.16.25.35; author sources; state Exp;
38 date 89.11.17.16.23.44; author sources; state Exp;
53 .\" @@(#)$Id: mhpath.rf,v 1.6 1990/04/05 15:08:26 sources Exp jromine $
56 mhpath \- print full pathnames of MH messages and folders
62 \fIMhpath\fR expands and sorts the message list `msgs' and writes
63 the full pathnames of the messages to the standard output
64 separated by newlines.
65 If no `msgs' are specified,
66 \fImhpath\fR outputs the folder pathname instead.
67 If the only argument is `+', your MH \fIPath\fR is output;
68 this can be useful is shell scripts.
70 Contrasted with other MH commands, a message argument to \fImhpath\fR
71 may often be intended for \fIwriting\fR.
74 1) the name \*(lqnew\*(rq has been added to \fImhpath\fR's list of
75 reserved message names
76 (the others are \*(lqfirst\*(rq, \*(lqlast\*(rq, \*(lqprev\*(rq,
77 \*(lqnext\*(rq, \*(lqcur\*(rq, and \*(lqall\*(rq).
78 The new message is equivalent to the message after the
79 last message in a folder
80 (and equivalent to 1 in a folder without messages).
81 The \*(lqnew\*(rq message may not be used as part of a message range.
83 2) Within a message list,
84 the following designations may refer to messages that do not exist:
85 a single numeric message name,
86 the single message name \*(lqcur\*(rq,
87 and (obviously) the single message name \*(lqnew\*(rq.
88 All other message designations must refer to at least one existing message.
90 3) An empty folder is not in itself an error.
92 Message numbers greater than the highest existing message in a folder as
93 part of a range designation are replaced with the next free message number.
95 Examples: The current folder foo contains messages 3 5 6.
124 bad message list \*(lqlast\-new\*(rq.
130 no messages in range \*(lq1\-2\*(rq.
142 \fIMHpath\fR is also useful in back\-quoted operations:
153 ^$HOME/\&.mh\(ruprofile~^The user profile
155 ^Path:~^To determine the user's MH directory
157 ^Current\-Folder:~^To find the default current folder
161 `+folder' defaults to the current folder
163 `msgs' defaults to none
167 Like all MH commands, \fImhpath\fR expands and sorts \%[msgs].
174 Quite the reverse. But
177 mv `mhpath 501` `mhpath 500`
181 Out of range message 0 is treated far more severely than large out of
182 range message numbers.
203 @put things back, do .NA stuff another way
217 .TH MHPATH 1 @@(MHCENTERFOOT) @@(MHLEFTFOOT)
227 @fixup for makewhatis
232 .TH MHPATH 1 [mh.6] MH