4 .TH MHPATH %manext1% "%nmhdate%" MH.6.8 [%nmhversion%]
6 mhpath \- print full pathnames of nmh messages and folders
18 expands and sorts the message list `msgs' and writes the full
19 pathnames of the messages to the standard output separated by newlines.
20 If no `msgs' are specified,
22 outputs the current mail folder's pathname
23 instead. If the only argument is `+', your mail storage location
24 (`Path') is output; this can be useful in shell scripts.
28 commands, a message argument to
30 may often be intended for writing. Because of this:
33 the name `b' has been added to
36 reserved message names (the others are `f', `l',
37 `p', `n', `c', and `a').
38 The `b' (beyond) message is equivalent to the message after the last message
39 in a folder (and equivalent to 1 in a folder without messages).
40 The `b' message may not be used as part of a message range.
42 Within a message list, the following designations may refer to messages
43 that do not exist: a single numeric message name, the single message name
44 `c', and (obviously) the single message name `b'.
45 All other message designations must refer to at least one existing
46 message, if the folder contains messages.
48 An empty folder is not in itself an error.
50 Message numbers greater than the highest existing message in a folder
51 as part of a range designation are replaced with the next free message
54 Examples: The current folder foo contains messages 3 5 6.
83 bad message list `l\-b'.
89 no messages in range `1\-2'.
102 is also useful in back\-quoted operations:
117 .ta \w'%etcdir%/ExtraBigFileName 'u
118 ^$HOME/.mmh/profile~^The user profile
121 .SH "PROFILE COMPONENTS"
125 .ta \w'ExtraBigProfileName 'u
126 ^Path:~^To determine the user's mail storage
127 ^Current\-Folder:~^To find the default current folder
135 .RB ` +folder "' defaults to the current folder"
136 .RB ` msgs "' defaults to none"
159 Quite the reverse. But
163 mv `mhpath 501` `mhpath 500`
169 Out of range message 0 is treated far more severely than large out of
170 range message numbers.