5 .\" include the -mh macro file
8 .TH MHPATH %manext1% MH.6.8 [%nmhversion%]
10 mhpath \- print full pathnames of nmh messages and folders
20 \fIMhpath\fR expands and sorts the message list `msgs' and writes the full
21 pathnames of the messages to the standard output separated by newlines.
22 If no `msgs' are specified, \fImhpath\fR outputs the folder pathname
23 instead. If the only argument is `+', your nmh \fIPath\fR is output;
24 this can be useful is shell scripts.
26 Contrasted with other nmh commands, a message argument to \fImhpath\fR
27 may often be intended for \fIwriting\fR. Because of this:
29 1) the name \*(lqnew\*(rq has been added to \fImhpath\fR's list of
30 reserved message names (the others are \*(lqfirst\*(rq, \*(lqlast\*(rq,
31 \*(lqprev\*(rq, \*(lqnext\*(rq, \*(lqcur\*(rq, and \*(lqall\*(rq).
32 The new message is equivalent to the message after the last message
33 in a folder (and equivalent to 1 in a folder without messages).
34 The \*(lqnew\*(rq message may not be used as part of a message range.
36 2) Within a message list, the following designations may refer to messages
37 that do not exist: a single numeric message name, the single message name
38 \*(lqcur\*(rq, and (obviously) the single message name \*(lqnew\*(rq.
39 All other message designations must refer to at least one existing
42 3) An empty folder is not in itself an error.
44 Message numbers greater than the highest existing message in a folder
45 as part of a range designation are replaced with the next free message
48 Examples: The current folder foo contains messages 3 5 6.
77 bad message list \*(lqlast\-new\*(rq.
83 no messages in range \*(lq1\-2\*(rq.
95 \fImhpath\fR is also useful in back\-quoted operations:
106 ^$HOME/\&.mh\(ruprofile~^The user profile
108 ^Path:~^To determine the user's nmh directory
110 ^Current\-Folder:~^To find the default current folder
114 `+folder' defaults to the current folder
116 `msgs' defaults to none
120 Like all nmh commands, \fImhpath\fR expands and sorts \%[msgs]. So don't
127 Quite the reverse. But
130 mv `mhpath 501` `mhpath 500`
134 Out of range message 0 is treated far more severely than large out of
135 range message numbers.