source: trunk/third/nmh/man/mhpath.man @ 12455

Revision 12455, 3.0 KB checked in by danw, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12454, which included commits to RCS files with non-trunk default branches.
Line 
1.\"
2.\" %nmhwarning%
3.\" $Id: mhpath.man,v 1.1.1.1 1999-02-07 18:14:21 danw Exp $
4.\"
5.\" include the -mh macro file
6.so %etcdir%/tmac.h
7.\"
8.TH MHPATH %manext1% MH.6.8 [%nmhversion%]
9.SH NAME
10mhpath \- print full pathnames of nmh messages and folders
11.SH SYNOPSIS
12.in +.5i
13.ti -.5i
14mhpath
15\%[+folder] \%[msgs]
16\%[\-version]
17\%[\-help]
18.in -.5i
19.SH DESCRIPTION
20\fIMhpath\fR expands and sorts the message list `msgs' and writes the full
21pathnames of the messages to the standard output separated by newlines.
22If no `msgs' are specified, \fImhpath\fR outputs the folder pathname
23instead.  If the only argument is `+', your nmh \fIPath\fR is output;
24this can be useful is shell scripts.
25
26Contrasted with other nmh commands, a message argument to \fImhpath\fR
27may often be intended for \fIwriting\fR.  Because of this:
28.sp
291) the name \*(lqnew\*(rq has been added to \fImhpath\fR's list of
30reserved message names (the others are \*(lqfirst\*(rq, \*(lqlast\*(rq,
31\*(lqprev\*(rq, \*(lqnext\*(rq, \*(lqcur\*(rq, and \*(lqall\*(rq).
32The new message is equivalent to the message after the last message
33in a folder (and equivalent to 1 in a folder without messages).
34The \*(lqnew\*(rq message may not be used as part of a message range.
35.sp
362) Within a message list, the following designations may refer to messages
37that do not exist: a single numeric message name, the single message name
38\*(lqcur\*(rq, and (obviously) the single message name \*(lqnew\*(rq.
39All other message designations must refer to at least one existing
40message.
41.sp
423) An empty folder is not in itself an error.
43
44Message numbers greater than the highest existing message in a folder
45as part of a range designation are replaced with the next free message
46number.
47
48Examples: The current folder foo contains messages 3 5 6.
49Cur is 4.
50
51.nf
52.in +.5i
53% mhpath
54/r/phyl/Mail/foo
55
56% mhpath all
57/r/phyl/Mail/foo/3
58/r/phyl/Mail/foo/5
59/r/phyl/Mail/foo/6
60
61% mhpath 2001
62/r/phyl/Mail/foo/7
63
64% mhpath 1\-2001
65/r/phyl/Mail/foo/3
66/r/phyl/Mail/foo/5
67/r/phyl/Mail/foo/6
68
69% mhpath new
70/r/phyl/Mail/foo/7
71
72% mhpath last new
73/r/phyl/Mail/foo/6
74/r/phyl/Mail/foo/7
75
76% mhpath last\-new
77bad message list \*(lqlast\-new\*(rq.
78
79% mhpath cur
80/r/phyl/Mail/foo/4
81
82% mhpath 1\-2
83no messages in range \*(lq1\-2\*(rq.
84
85% mhpath first:2
86/r/phyl/Mail/foo/3
87/r/phyl/Mail/foo/5
88
89% mhpath 1 2
90/r/phyl/Mail/foo/1
91/r/phyl/Mail/foo/2
92.in -.5i
93.fi
94
95\fImhpath\fR is also useful in back\-quoted operations:
96
97.nf
98.in +.5i
99% cd `mhpath +inbox`
100
101% echo `mhpath +`
102/r/phyl/Mail
103.in -.5i
104.fi
105.Fi
106^$HOME/\&.mh\(ruprofile~^The user profile
107.Pr
108^Path:~^To determine the user's nmh directory
109.Ps
110^Current\-Folder:~^To find the default current folder
111.Sa
112folder(1)
113.De
114`+folder' defaults to the current folder
115.Ds
116`msgs' defaults to none
117.Co
118None
119.Bu
120Like all nmh commands, \fImhpath\fR expands and sorts \%[msgs].  So don't
121expect
122
123.ti +.5i
124mv `mhpath 501 500`
125
126to move 501 to 500.
127Quite the reverse.  But
128
129.ti +.5i
130mv `mhpath 501` `mhpath 500`
131
132will do the trick.
133
134Out of range message 0 is treated far more severely than large out of
135range message numbers.
136.En
Note: See TracBrowser for help on using the repository browser.