4c2b59a8608fa5d0347078e79c94c6e1e327422f
[mmh] / man / nmh.man
1 .\"
2 .\" %nmhwarning%
3 .\"
4 .TH NMH %manext1% "%nmhdate%" MH.6.8 [%nmhversion%]
5 .SH NAME
6 nmh \- new MH message system
7 .SH SYNOPSIS
8 any
9 .B nmh
10 command
11 .SH DESCRIPTION
12 .B nmh
13 is the name of a powerful message handling system.  Rather than
14 being a single comprehensive program,
15 .B nmh
16 consists of a collection
17 of fairly simple single-purpose programs to send, retrieve, save,
18 and manipulate messages.
19 .PP
20 Unlike most mail clients in UNIX,
21 .B nmh
22 is not a closed system which
23 must be explicitly run, then exited when you wish to return to the shell.
24 You may freely intersperse
25 .B nmh
26 commands with other shell commands,
27 allowing you to read and answer your mail while you have (for example)
28 a compilation running, or search for a file or run programs as needed
29 to find the answer to someone's question before answering their mail.
30 .PP
31 The rest of this manual entry is a quick tutorial which will teach you
32 the basics of
33 .BR nmh .
34 You should read the manual entries for the
35 individual programs for complete documentation.
36 .PP
37 To get started using
38 .BR nmh ,
39 put the directory
40 .I %bindir%
41 on your
42 .BR $PATH .
43 This is best done in one of the files:
44 .IR \&.profile ,
45 .IR \&.login ,
46 .IR \&.bashrc ,
47 or
48 .I \&.cshrc
49 in your home directory.  (Check the
50 manual entry for the shell you use, in case you don't know how to
51 do this.)  Run the
52 .B install-mh
53 command.  If you've never used
54 .B nmh
55 before, it will create the necessary default files and directories after
56 asking you if you wish it to do so.
57 .PP
58 .B inc
59 moves mail from your system maildrop into your
60 .B nmh
61 `+inbox' folder, breaking it up into separate files and converting it
62 to
63 .B nmh
64 format as it goes.  It prints one line for each message it
65 processes, containing the from field, the subject field and as much of
66 the first line of the message as will fit.  It leaves the first message
67 it processes as your current message.  You'll need to run
68 .B inc
69 each
70 time you wish to incorporate new mail into your
71 .B nmh
72 file.
73 .PP
74 .B scan
75 .B prints a list of the messages in your current folder.
76 .PP
77 The commands:
78 .BR show ,
79 .BR next ,
80 and
81 .B prev
82 are used to read
83 specific messages from the current folder.
84 .B show
85 displays the
86 current message, or a specific message, which may be specified by its
87 number, which you pass as an argument to
88 .BR show .
89 .B next
90 and
91 .B prev
92 display, respectively, the message numerically after or before
93 the current message.  In all cases, the message displayed becomes the
94 current message.  If there is no current message,
95 .B show
96 may be
97 called with an argument, or
98 .B next
99 may be used to advance to the
100 first message.
101 .PP
102 .B rmm
103 (remove message) deletes the current message.  It may be called
104 with message numbers passed as arguments, to delete specific messages.
105 .PP
106 .B repl
107 is used to respond to the current message (by default).
108 It places you in the editor with a prototype response form.  While you're
109 in the editor, you may peruse the item you're responding to by reading
110 the file
111 .IR @ .
112 After completing your response, type
113 .B l
114 to
115 .B list
116 (review) it, or
117 .B s
118 to
119 .B send
120 it.
121 .PP
122 .B comp
123 allows you to compose a message by putting you in the editor
124 on a prototype message form, and then lets you send it.
125 .PP
126 All the
127 .B nmh
128 commands may be run with the single argument:
129 .BR \-help ,
130 which causes them to print a list of the arguments they may be invoked
131 with and then exit.
132 .PP
133 All the
134 .B nmh
135 commands may be run with the single argument:
136 .BR \-version ,
137 which cause them to print the version number of the
138 .B nmh
139 distribution, and then exit.
140 .PP
141 Commands which take a message number as an argument (
142 .BR scan ,
143 .BR show ,
144 .BR repl ,
145 \&...)  also take one of the words: \*(lqfirst\*(rq,
146 \*(lqprev\*(rq, \*(lqcur\*(rq, \*(lqnext\*(rq, or \*(lqlast\*(rq to indicate
147 (respectively) the first, previous, current, next, or last message in
148 the current folder (assuming they are defined).
149
150 Commands which take a range of message numbers (
151 .BR rmm ,
152 .BR scan ,
153 .BR show ,
154 \&...)  also take any of the abbreviations:
155 .PP
156 .RS 5
157 .IP \fI<num1>\fR\-\fI<num2>\fR 15
158 Indicates all messages in the range <num1> to <num2>, inclusive. The range must be nonempty.
159 .IP \fI<num>\fR:+\fIN\fR 15
160 .IP \fI<num>\fR:\-\fIN\fR 15
161 Up to
162 .I N
163 messages beginning with (or ending with) message
164 .IR num .
165 .I Num
166 may be any of the pre-defined symbols:
167 .IR first ,
168 .IR prev ,
169 .IR cur ,
170 .I next
171 or
172 .IR last .
173 .IP first:\fIN\fR 15
174 .IP prev:\fIN\fR 15
175 .IP next:\fIN\fR 15
176 .IP last:\fIN\fR 15
177 The first, previous, next or last
178 messages, if they exist.
179 .RE
180 .PP
181 There are many other possibilities such as creating multiple folders
182 for different topics, and automatically refiling messages according to
183 subject, source, destination, or content.  These are beyond the scope
184 of this manual entry.
185 .PP
186 Following is a list of all the
187 .B nmh
188 commands:
189 .PP
190 .RS 5
191 .fc ^ ~
192 .nf
193 .ta 1.5i
194 ^ali(1)~^\- list mail aliases
195 ^anno(1)~^\- annotate messages
196 ^burst(1)~^\- explode digests into messages
197 ^comp(1)~^\- compose a message 
198 ^dist(1)~^\- redistribute a message to additional addresses
199 ^flist(1)~^\- list folders with messages in given sequence(s)
200 ^flists(1)~^\- list all folders with messages in given sequence(s)
201 ^folder(1)~^\- set/list current folder/message
202 ^folders(1)~^\- list all folders
203 ^forw(1)~^\- forward messages
204 ^inc(1)~^\- incorporate new mail
205 ^mark(1)~^\- mark messages
206 ^mhbuild(1)~^\- translate MIME composition draft
207 ^mhl(1)~^\- produce formatted listings of nmh messages
208 ^mhlist(1)~^\- list information about content of MIME messages
209 ^mhmail(1)~^\- send or read mail
210 ^mhn(1)~^\- display/list/store/cache MIME messages
211 ^mhparam(1)~^\- print nmh profile components
212 ^mhpath(1)~^\- print full pathnames of nmh messages and folders
213 ^mhshow(1)~^\- display MIME messages
214 ^mhstore(1)~^\- store contents of MIME messages into files
215 ^msgchk(1)~^\- check for messages
216 ^next(1)~^\- show the next message
217 ^packf(1)~^\- compress a folder into a single file
218 ^pick(1)~^\- select messages by content
219 ^prev(1)~^\- show the previous message
220 ^prompter(1)~^\- prompting editor front end
221 ^rcvdist(1)~^\- asynchronously redistribute new mail
222 ^rcvpack(1)~^\- append message to file
223 ^rcvstore(1)~^\- asynchronously incorporate new mail
224 ^rcvtty(1)~^\- report new mail
225 ^refile(1)~^\- file messages in other folders
226 ^repl(1)~^\- reply to a message
227 ^rmf(1)~^\- remove folder
228 ^rmm(1)~^\- remove messages
229 ^scan(1)~^\- produce a one line per message scan listing
230 ^send(1)~^\- send a message
231 ^sendfiles(1)~^\- send multiple files and directories in MIME message
232 ^show(1)~^\- show(display) messages
233 ^slocal(1)~^\- asynchronously filter and deliver new mail
234 ^sortm(1)~^\- sort messages
235 ^whatnow(1)~^\- prompting front\-end for send
236 ^whom(1)~^\- report to whom a message would go
237 .sp
238 ^mh\-alias(5)~^\- alias file for nmh message system
239 ^mh\-draft(5)~^\- draft folder facility
240 ^mh\-format(5)~^\- format file for nmh message system
241 ^mh\-mail(5)~^\- message format for nmh message system
242 ^mh\-profile(5)~^\- user customization for nmh message system
243 ^mh\-sequence(5)~^\- sequence specification for nmh message system
244 ^mh\-tailor(5)~^\- mail transport customization for nmh message system
245 .sp
246 ^ap(8)~^\- parse addresses 822\-style
247 ^conflict(8)~^\- search for alias/password conflicts
248 ^dp(8)~^\- parse dates 822\-style
249 ^fmtdump(8)~^\- decode \fInmh\fP format files
250 ^install\-mh(8)~^\- initialize the nmh environment
251 ^post(8)~^\- deliver a message
252 .fi
253 .RE
254
255 .SH FILES
256 .fc ^ ~
257 .nf
258 .ta \w'%etcdir%/ExtraBigFileName  'u
259 ^%bindir%~^contains \fInmh\fR commands
260 ^%etcdir%~^contains \fInmh\fR format files
261 ^%libdir%~^contains \fInmh\fR library commands
262 ^$HOME/\&.mh\(ruprofile~^The user profile
263 .fi
264
265 .SH "PROFILE COMPONENTS"
266 .fc ^ ~
267 .nf
268 .ta 2.4i
269 .ta \w'ExtraBigProfileName  'u
270 ^Path:~^To determine the user's nmh directory
271 .fi
272
273 .SH BUGS
274 If problems are encountered with an
275 .B nmh
276 program, the problems should
277 be reported to the local maintainers of
278 .BR nmh .
279 When doing this, the
280 name of the program should be reported, along with the version information
281 for the program.
282 .br
283 To find out what version of an
284 .B nmh
285 program is being run, invoke
286 the program with the
287 .B \-version
288 switch.  This information includes
289 the version of
290 .BR nmh ,
291 the host it was generated on, and the date the
292 program was loaded.
293 .PP
294 Send bug reports and suggestions to
295 .IR nmh-workers@nongnu.org .
296 .SH "SEE ALSO"
297 mh-chart(1)