]> diplodocus.org Git - nmh/blob - man/nmh.man
Added note that suffixes were removed from filenames of temporary files.
[nmh] / man / nmh.man
1 .TH NMH %manext7% "November 30, 2012" "%nmhversion%"
2 .\"
3 .\" %nmhwarning%
4 .\"
5 .\" Register 'tt' contains the indent for .TP in the COMMANDS section:
6 .nr tt \w'\fImh-sequence\fR(5)\0\0'u
7 .\"
8 .SH NAME
9 nmh \- new MH message system
10 .SH DESCRIPTION
11 .B nmh
12 is the name of a powerful message handling system. Rather than
13 being a single comprehensive program,
14 .B nmh
15 consists of a collection
16 of fairly simple single-purpose programs to send, retrieve, save,
17 and manipulate messages.
18 .PP
19 Unlike most mail clients in UNIX,
20 .B nmh
21 is not a closed system which
22 must be explicitly run, then exited when you wish to return to the shell.
23 You may freely intersperse
24 .B nmh
25 commands with other shell commands,
26 allowing you to read and answer your mail while you have (for example)
27 a compilation running, or search for a file or run programs as needed
28 to find the answer to someone's question before answering their mail.
29 .PP
30 The rest of this manual entry is a quick tutorial which will teach you
31 the basics of
32 .BR nmh .
33 You should read the manual entries for the
34 individual programs for complete documentation.
35 .PP
36 To get started using
37 .BR nmh ,
38 put the directory
39 \*(lq%bindir%\*(rq
40 in your
41 .BR $PATH .
42 Run the
43 .B install-mh
44 command. If you've never used
45 .B nmh
46 before, it will create the necessary default files and directories after
47 asking you if you wish it to do so.
48 .PP
49 .B inc
50 moves mail from your system maildrop into your
51 .B nmh
52 \*(lq+inbox\*(rq
53 folder, breaking it up into separate files and converting it
54 to
55 .B nmh
56 format as it goes. It prints one line for each message it
57 processes, containing the from field, the subject field and as much of
58 the first line of the message as will fit. It leaves the first message
59 it processes as your current message. You'll need to run
60 .B inc
61 each
62 time you wish to incorporate new mail into your
63 .B nmh
64 file.
65 .PP
66 .B scan
67 prints a list of the messages in your current folder.
68 .PP
69 The commands
70 .BR show ,
71 .BR next ,
72 and
73 .B prev
74 are used to read
75 specific messages from the current folder.
76 .B show
77 displays the
78 current message, or a specific message, which may be specified by its
79 number, which you pass as an argument to
80 .BR show .
81 .B next
82 and
83 .B prev
84 display, respectively, the message numerically after or before
85 the current message. In all cases, the message displayed becomes the
86 current message. If there is no current message,
87 .B show
88 may be
89 called with an argument, or
90 .B next
91 may be used to advance to the
92 first message.
93 .PP
94 .B rmm
95 (remove message) deletes the current message. It may be called
96 with message numbers passed as arguments, to delete specific messages.
97 .PP
98 .B repl
99 is used to respond to the current message (by default).
100 It places you in the editor with a prototype response form. While you're
101 in the editor, you may peruse the item you're responding to by reading
102 the file
103 .BR @ .
104 After completing your response, type
105 \*(lql\*(rq
106 to
107 .B list
108 (review) it, or
109 \*(lqs\*(rq
110 to
111 .B send
112 it.
113 .PP
114 .B comp
115 allows you to compose a message by putting you in the editor
116 on a prototype message form, and then lets you send it via the
117 .B whatnow
118 command.
119 .B whatnow
120 also supports easy\-to\-use management of MIME attachments via
121 its
122 .B attach
123 and related responses, as described in its man page.
124 .PP
125 All the
126 .B nmh
127 commands may be run with the single argument
128 .BR \-help ,
129 which causes them to print a list of the arguments they may be invoked
130 with and then exit.
131 .PP
132 All the
133 .B nmh
134 commands may be run with the single argument
135 .BR \-version ,
136 which causes them to print the version number of the
137 .B nmh
138 distribution, and then exit.
139 .PP
140 Commands which take a message number as an argument
141 .RB ( scan ,
142 .BR show ,
143 .BR repl ,
144 \&...) also take one of the words \*(lqfirst\*(rq,
145 \*(lqprev\*(rq, \*(lqcur\*(rq, \*(lqnext\*(rq, or \*(lqlast\*(rq to indicate
146 (respectively) the first, previous, current, next, or last message in
147 the current folder (assuming they are defined).
148 As a shorthand, \*(lq\&.\*(rq is equivalent to \*(lqcur\*(rq.
149 .PP
150 Commands which take a range of message numbers
151 .RB ( rmm ,
152 .BR scan ,
153 .BR show ,
154 \&...) also take any of the abbreviations:
155 .TP \n(ttu
156 .IR <num1> - <num2>
157 Indicates all messages in the range <num1> to <num2>, inclusive.
158 The range must be nonempty.
159 .TP
160 .RI all
161 Indicates all messages, i.e.,
162 .IR first - last .
163 .TP
164 .IR <num> :+ N
165 .PD 0
166 .TP
167 .IR <num> :\-N
168 Up to
169 .I N
170 messages beginning with (or ending with) message
171 .IR num .
172 .I Num
173 may be any of the pre-defined symbols
174 .BR first ,
175 .BR prev ,
176 .BR cur ,
177 .B next
178 or
179 .BR last .
180 .PD
181 .TP
182 .RI first: N
183 .PD 0
184 .TP
185 .RI prev: N
186 .TP
187 .RI next: N
188 .TP
189 .RI last: N
190 The first, previous, next or last
191 messages, if they exist.
192 .PD
193 .PP
194 Commands that take a folder name
195 .RB ( inc ,
196 .BR refile ,
197 .BR scan,
198 \&...) accept the folder name in two formats: \*(lq+folder\*(rq or
199 \*(lq@folder\*(rq. In both cases, \*(lqfolder\*(rq can be a
200 \*(lq/\*(rq-separated path, e.g. \*(lqfoo/bar\*(rq. \*(lq+folder\*(rq
201 specifies a directory path to a folder. If \*(lqfolder\*(rq starts
202 with \*(lq/\*(rq then it's an absolute path from the root directory.
203 If it is \*(lq.\*(rq or \*(lq..\*(rq, or starts with \*(lq./\*(rq or
204 \*(lq../\*(rq, then it's relative to the current working directory.
205 Otherwise it's relative to mh-profile(5)'s
206 .RI \*(lq Path \*(rq,
207 i.e. as given by
208 .RB ` "mhpath +" `.
209 \*(lq@folder\*(rq is a shorthand for \*(lq+curfolder/folder\*(rq; it's
210 a relative path from the current folder. \*(lqcurfolder\*(rq is given
211 by
212 .RB ` mhpath `.
213 For example, assuming a
214 .B Path
215 profile component of Mail,
216 .TP \n(ttu
217 .PD 0
218 .BI "scan " +inbox
219 scans $HOME/Mail/inbox
220 .TP
221 .BI "scan " +work/todo
222 scans $HOME/Mail/work/todo
223 .TP
224 .BI "scan " @todo
225 scans $HOME/Mail/work/todo, if current folder is +work
226 .TP
227 .BI "refile " @../done
228 refiles to $HOME/Mail/work/done, if the current folder is +work/todo
229 .TP
230 .BI "scan " +/tmp
231 scans /tmp
232 .TP
233 .BI "scan " +.
234 scans the current directory
235 .TP
236 .BI "refile " @.
237 refiles current message to end of current folder.
238 .PD
239 .PP
240 There are many other possibilities such as creating multiple folders
241 for different topics, and automatically refiling messages according to
242 subject, source, destination, or content. These are beyond the scope
243 of this manual entry.
244 .ne 4
245 .SH COMMANDS
246 .PP
247 Following is a list of all the
248 .B nmh
249 commands, grouped loosely according to their role.
250 .ne 4
251 .SS
252 Sending
253 .TP \n(ttu
254 .PD 0
255 .IR comp (1)
256 compose a message
257 .TP
258 .IR forw (1)
259 forward messages
260 .TP
261 .IR repl (1)
262 reply to a message
263 .TP
264 .IR whatnow (1)
265 prompting front-end for send
266 .PD
267 .PP
268 Note that although
269 .B whatnow
270 provides much of the primary
271 .B nmh
272 user interface for sending mail, it is almost never invoked manually,
273 but rather is invoked indirectly by one of the above commands, after
274 you've composed a message in your editor, and before you've decided to
275 send it. Here you can add attachments, check the recipient
276 list, decide to quit and send it later, etc.
277 .PP
278 Related utilities:
279 .TP \n(ttu
280 .PD 0
281 .IR ali (1)
282 list mail aliases
283 .TP
284 .IR anno (1)
285 annotate messages
286 .TP
287 .IR whom (1)
288 report to whom a message would go
289 .TP
290 .IR dist (1)
291 redistribute a message to additional addresses
292 .PD
293 .PP
294 Advanced commands, only sometimes invoked directly:
295 .TP \n(ttu
296 .PD 0
297 .IR mhbuild (1)
298 translate MIME composition draft
299 .TP
300 .IR send (1)
301 send a message
302 .TP
303 .IR sendfiles (1)
304 send multiple files in a MIME message
305 .PD
306 .ne 4
307 .SS
308 Incorporating
309 .TP \n(ttu
310 .IR inc (1)
311 incorporate new mail
312 .PP
313 Related utilities:
314 .TP \n(ttu
315 .PD 0
316 .IR burst (1)
317 explode digests into messages
318 .TP
319 .IR msgchk (1)
320 check for messages
321 .TP
322 .IR rcvdist (1)
323 asynchronously redistribute new mail
324 .TP
325 .IR rcvpack (1)
326 append message to file
327 .TP
328 .IR rcvstore (1)
329 asynchronously incorporate new mail
330 .TP
331 .IR slocal (1)
332 asynchronously filter and deliver new mail
333 .PD
334 .ne 4
335 .SS
336 Viewing
337 .TP \n(ttu
338 .PD 0
339 .IR next (1)
340 show the next message
341 .TP
342 .IR prev (1)
343 show the previous message
344 .TP
345 .IR show (1)
346 show(display) messages
347 .TP
348 .IR scan (1)
349 produce a one line per message scan listing
350 .TP
351 .IR fnext (1)
352 select the next folder with new messages
353 .TP
354 .IR fprev (1)
355 select the previous folder with new messages
356 .PD
357 .PP
358 Related utilities, only sometimes invoked directly:
359 .TP \n(ttu
360 .PD 0
361 .IR mhl (1)
362 produce formatted listings of nmh messages
363 .TP
364 .IR mhlist (1)
365 list information about content of MIME messages
366 .TP
367 .IR mhn (1)
368 display/list/store/cache MIME messages
369 .TP
370 .IR mhshow (1)
371 display MIME messages
372 .TP
373 .IR mhstore (1)
374 store contents of MIME messages into files
375 .PD
376 .ne 4
377 .SS
378 Searching
379 .PP
380 Within a folder:
381 .TP \n(ttu
382 .IR pick (1)
383 select messages by content
384 .PP
385 Across folders:
386 .TP \n(ttu
387 .PD 0
388 .IR new (1)
389 list folders with new messages
390 .TP
391 .IR unseen (1)
392 list new messages in a give set of folders
393 .TP
394 .IR flist (1)
395 list folders with messages in given sequence(s)
396 .TP
397 .IR flists (1)
398 list all folders with messages in given sequence(s)
399 .TP
400 .IR folder (1)
401 set/list current folder/message
402 .TP
403 .IR folders (1)
404 list all folders
405 .PD
406 .ne 4
407 .SS
408 Organizing
409 .TP \n(ttu
410 .PD 0
411 .IR mark (1)
412 mark messages
413 .TP
414 .IR refile (1)
415 file messages in other folders
416 .TP
417 .IR rmf (1)
418 remove folder
419 .TP
420 .IR rmm (1)
421 remove messages
422 .TP
423 .IR sortm (1)
424 sort messages
425 .PD
426 .ne 4
427 .SS
428 Convenience Wrappers
429 .TP \n(ttu
430 .PD 0
431 .IR mhmail (1)
432 send or read mail
433 .TP
434 .IR msh (1)
435 nmh shell
436 .PD
437 .ne 4
438 .SS
439 Utilities
440 .TP \n(ttu
441 .PD 0
442 .IR mhparam (1)
443 print nmh profile components
444 .TP
445 .IR mhpath (1)
446 print full pathnames of nmh messages and folders
447 .TP
448 .IR packf (1)
449 compress a folder into a single file
450 .TP
451 .IR prompter (1)
452 prompting editor front end
453 .TP
454 .IR rcvtty (1)
455 report new mail
456 .PD
457 .ne 4
458 .SS
459 Indirectly Invoked Commands
460 .TP \n(ttu
461 .PD 0
462 .IR ap (8)
463 parse addresses RFC 822\-style
464 .TP
465 .IR conflict (8)
466 search for alias/password conflicts
467 .TP
468 .IR dp (8)
469 parse dates RFC 822\-style
470 .TP
471 .IR fmtdump (8)
472 decode
473 .IR mh-format (5)
474 files
475 .TP
476 .IR install\-mh (8)
477 initialize the nmh environment
478 .TP
479 .IR post (8)
480 deliver a message
481 .PD
482 .ne 4
483 .SS
484 Files Used by nmh Commands
485 .TP \n(ttu
486 .PD 0
487 .IR mh\-alias (5)
488 alias file for nmh message system
489 .TP
490 .IR mh\-draft (5)
491 draft folder facility
492 .TP
493 .IR mh\-format (5)
494 format file for nmh message system
495 .TP
496 .IR mh\-mail (5)
497 message format for nmh message system
498 .TP
499 .IR mh\-profile (5)
500 user customization for nmh message system
501 .TP
502 .IR mh\-sequence (5)
503 sequence specification for nmh message system
504 .TP
505 .IR mh\-tailor (5)
506 mail transport customization for nmh message system
507 .PD
508 .ne 4
509 .SH FILES
510 .TP
511 %bindir%
512 contains
513 .B nmh
514 commands
515 .TP
516 %etcdir%
517 contains
518 .B nmh
519 format files
520 .TP
521 %libdir%
522 contains
523 .B nmh
524 library commands
525 .TP
526 $HOME/\&.mh\-profile
527 The user's nmh profile
528 .ne 4
529 .SH "SEE ALSO"
530 .IR install-mh (1),
531 .IR mh-profile (5),
532 .IR mh-chart (7)
533 .ne 4
534 .SH BUGS
535 If problems are encountered with an
536 .B nmh
537 program, the problems should
538 be reported to the local maintainers of
539 .BR nmh .
540 When doing this, the
541 name of the program should be reported, along with the version information
542 for the program.
543 .PP
544 To find out what version of an
545 .B nmh
546 program is being run, invoke
547 the program with the
548 .B \-version
549 switch. This prints
550 the version of
551 .BR nmh ,
552 the host it was compiled on, and the date the
553 program was linked.
554 .PP
555 Send bug reports and suggestions to
556 .IR nmh-workers@nongnu.org .