3 mhpath \- print full pathnames of MH messages and folders
5 mhpath \%[+folder] \%[msgs] \%[\-help]
7 \fIMhpath\fR expands and sorts the message list \%[msgs] and writes
8 the full pathnames of the messages to the standard output
11 If no ``msgs'' are specified, \fImhpath\fR outputs the folder (directory)
12 pathname (current folder default).
14 Contrasted with other MH commands, a message argument to \fImhpath\fR
15 may often be intended for \fIwriting\fR.
16 Because of this: 1) the name
17 "new" has been added to \fImhpath\fR's list of reserved message names
18 (the others are first, last, prev, next, cur, all).
19 New is last + 1 (where last is 0 in a messageless folder).
20 New may not be used as part of a message range.
21 2) Within a message list,
22 the following designations may refer to messages that do not exist:
23 a single numeric message name,
24 the single message name cur, and (obviously) the single message name new.
25 All other message designations must refer to at least one existing message.
26 3) An empty folder is not in itself an error.
28 Message numbers greater than 999 as part of a range designation
29 are replaced with 999. Explicit single message numbers greater
30 than 999, or message number 0 in any context, are errors.
32 Examples: The current folder foo contains messages 3 5 6.
44 \ Message 1000 out of range 1-999
59 \ Bad message list "last-new".
65 \ No messages in range "1-2".
76 \ Bad message list "0".
79 \ Bad message list "0-last".
81 \ --Backquoted Operations--
83 \ % cd `mhpath +inbox`
86 \ <CMD> run cat `mhpath cur`
91 $HOME/\*.mh\(ruprofile The user profile
92 .SH PROFILE COMPONENTS
93 Path: To determine the user's MH directory
95 Current-Folder: To find the default current folder
97 `+folder' defaults to current
99 `msgs' defaults to NULL
101 The folder and the current message are unaffected.
103 Like all MH commands, \fImhpath\fR expands and sorts \%[msgs].
106 \ mv `mhpath 501 500`
109 Quite the reverse. But
111 \ mv `mhpath 501` `mhpath 500`
115 Out of range message 0 is treated far more severely than large out of
116 range message numbers.