212f392c4d74fe9fa67d1f0f839a933c6f78aed5
[mmh] / man / mmh-intro.man7
1 .\"
2 .\" %nmhwarning%
3 .\"
4 .TH NMH %manext7% "%nmhdate%" MH.6.8 [%nmhversion%]
5 .SH NAME
6 mmh \- Introduction to the Modern MH message system
7 .SH DESCRIPTION
8 .B mmh
9 is a powerful message handling system, based on
10 .BR nmh ,
11 which in turn bases on MH, the Rand Corporation's Message Handler.
12 .PP
13 Rather than
14 being a single comprehensive program,
15 .B mmh
16 consists of a collection
17 of fairly simple single-purpose programs to send, retrieve, organize,
18 and manipulate messages.
19 .PP
20 Unlike most other mail clients,
21 .B mmh
22 is not a closed system which
23 must be explicitly run, then exited when you wish to return to the shell.
24 Instead, you may freely intersperse
25 .B mmh
26 commands with other shell commands,
27 allowing you to read and answer your mail while you
28 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 mmh .
34 You should read the manual entries for the
35 individual programs for complete documentation.
36 .PP
37 To get started using
38 .BR mmh ,
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 mmh
53 command.  If you've never used
54 .B mmh
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 mmh
61 `+inbox' folder, converting it to the MH format (one file per message). 
62 It prints one line for each message it
63 processes, containing the date, from and subject fields.
64 It leaves the first message it processes as your current message.
65 You'll need to run
66 .B inc
67 each time you wish to incorporate new mail into your
68 .B mmh
69 mail storage.
70 .PP
71 .B scan
72 prints a list of the messages in your current folder.
73 .PP
74 The commands:
75 .BR show ,
76 .BR next ,
77 and
78 .B prev
79 are used to read
80 specific messages from the current folder.
81 .B show
82 displays the
83 current message, or a specific message, which may be specified by its
84 number, which you pass as an argument to
85 .BR show .
86 .B next
87 and
88 .B prev
89 display, respectively, the message numerically after or before
90 the current message.  In all cases, the message displayed becomes the
91 current message.  If there is no current message,
92 .B show
93 may be
94 called with an argument, or
95 .B next
96 may be used to advance to the
97 first message.
98 .PP
99 .B rmm
100 (remove message) deletes the current message.  It may be called
101 with message numbers passed as arguments, to delete specific messages.
102 .PP
103 .B repl
104 is used to respond to the current message (by default).
105 It places you in the editor with a prototype response form.  While you're
106 in the editor, you may peruse the item you're responding to by reading
107 the file
108 .IR @ .
109 After completing your response, type
110 .B l
111 to
112 .B list
113 (review) it, or
114 .B s
115 to
116 .B send
117 it.
118 .PP
119 .B comp
120 allows you to compose a message by putting you in the editor
121 on a prototype message form, and then lets you send it.
122 .PP
123 All the
124 .B mmh
125 commands may be run with the single argument:
126 .BR \-help ,
127 which causes them to print a list of the arguments they may be invoked
128 with and then exit.
129 .PP
130 Commands which take a message number as an argument (
131 .BR scan ,
132 .BR show ,
133 .BR repl ,
134 \&...)  also take one of the words: \*(lqfirst\*(rq,
135 \*(lqprev\*(rq, \*(lqcur\*(rq, \*(lqnext\*(rq, or \*(lqlast\*(rq to indicate
136 (respectively) the first, previous, current, next, or last message in
137 the current folder (assuming they are defined).
138
139 Commands which take a range of message numbers (
140 .BR rmm ,
141 .BR scan ,
142 .BR show ,
143 \&...)  also take any of the abbreviations:
144 .PP
145 .RS 5
146 .IP \fI<num1>\fR\-\fI<num2>\fR 15
147 Indicates all messages in the range <num1> to <num2>, inclusive. The range must be nonempty.
148 .IP \fI<num>\fR:+\fIN\fR 15
149 .IP \fI<num>\fR:\-\fIN\fR 15
150 Up to
151 .I N
152 messages beginning with (or ending with) message
153 .IR num .
154 .I Num
155 may be any of the pre-defined symbols:
156 .IR first ,
157 .IR prev ,
158 .IR cur ,
159 .I next
160 or
161 .IR last .
162 .IP first:\fIN\fR 15
163 .IP prev:\fIN\fR 15
164 .IP next:\fIN\fR 15
165 .IP last:\fIN\fR 15
166 The first, previous, next or last
167 messages, if they exist.
168 .RE
169 .PP
170 There are many other possibilities such as creating multiple folders
171 for different topics, and automatically refiling messages according to
172 subject, source, destination, or content.  These are beyond the scope
173 of this manual entry.
174 .PP
175 Following is a list of all the
176 .B mmh
177 commands:
178 .PP
179 .RS 5
180 .fc ^ ~
181 .nf
182 .ta 1.5i
183 ^ali(1)~^\- list mail aliases
184 ^anno(1)~^\- annotate messages
185 ^burst(1)~^\- explode digests into messages
186 ^comp(1)~^\- compose a message
187 ^dist(1)~^\- redistribute a message to additional addresses
188 ^flist(1)~^\- list folders with messages in given sequence(s)
189 ^flists(1)~^\- list all folders with messages in given sequence(s)
190 ^folder(1)~^\- set/list current folder/message
191 ^folders(1)~^\- list all folders
192 ^forw(1)~^\- forward messages
193 ^inc(1)~^\- incorporate new mail
194 ^mark(1)~^\- mark messages
195 ^mhbuild(1)~^\- translate MIME composition draft
196 ^mhl(1)~^\- produce formatted listings of mmh messages
197 ^mhlist(1)~^\- list information about content of MIME messages
198 ^mhmail(1)~^\- send mail (mailx replacement)
199 ^mhparam(1)~^\- print mmh profile components
200 ^mhpath(1)~^\- print full pathnames of mmh messages and folders
201 ^mhstore(1)~^\- store contents of MIME messages into files
202 ^mmh(1)~^\- initialize the mmh environment
203 ^msgchk(1)~^\- check for messages
204 ^next(1)~^\- show the next message
205 ^packf(1)~^\- pack a folder into mbox format
206 ^pick(1)~^\- select messages by content
207 ^prev(1)~^\- show the previous message
208 ^prompter(1)~^\- prompting editor front end
209 ^rcvdist(1)~^\- asynchronously redistribute new mail
210 ^rcvpack(1)~^\- asynchronously append a message to an mbox file
211 ^rcvstore(1)~^\- asynchronously incorporate new mail
212 ^refile(1)~^\- file messages in other folders
213 ^repl(1)~^\- reply to a message
214 ^rmf(1)~^\- remove folder
215 ^rmm(1)~^\- remove messages
216 ^scan(1)~^\- produce a one line per message scan listing
217 ^send(1)~^\- send a message
218 ^sendfiles(1)~^\- send multiple files and directories in MIME message
219 ^show(1)~^\- display MIME messages
220 ^slocal(1)~^\- asynchronously filter and deliver new mail
221 ^sortm(1)~^\- sort messages
222 ^whatnow(1)~^\- prompting front\-end for send
223 .sp
224 ^ap(8)~^\- parse addresses 822\-style
225 ^dp(8)~^\- parse dates 822\-style
226 ^fmtdump(8)~^\- decode \fImmh\fP format files
227 ^post(8)~^\- deliver a message
228 .fi
229 .RE
230 .PP
231 Theses are descriptions of files and concepts:
232 .PP
233 .RS 5
234 .fc ^ ~
235 .nf
236 .ta 1.5i
237 ^mh\-alias(5)~^\- alias file for mmh message system
238 ^mh\-format(5)~^\- format file for mmh message system
239 ^mh\-mail(5)~^\- message format for mmh message system
240 ^mh\-profile(5)~^\- user customization for mmh message system
241 ^mh\-tailor(5)~^\- mail transport customization for mmh message system
242 .sp
243 ^mmh(7)~^\- introduction to the mmh message system
244 ^mh\-draft(7)~^\- draft folder facility
245 ^mh\-sequence(7)~^\- sequence specification for mmh message system
246 .RE
247
248 .SH FILES
249 .fc ^ ~
250 .nf
251 .ta \w'%etcdir%/ExtraBigFileName  'u
252 ^%bindir%~^contains \fImmh\fR commands
253 ^%etcdir%~^contains \fImmh\fR format files
254 ^%libdir%~^contains \fImmh\fR library commands
255 ^$HOME/.mmh~^The user's mmh directory
256 ^$HOME/.mmh/profile~^The user's profile
257 ^$HOME/.mmh/context~^The user's context
258 ^$HOME/Mail~^The user's mail storage
259 .fi
260
261 .SH "PROFILE COMPONENTS"
262 .fc ^ ~
263 .nf
264 .ta 2.4i
265 .ta \w'LongName  'u
266 ^Path:~^To determine the user's mail storage
267 .fi
268
269 .SH HISTORY
270 .B mmh
271 is an experimental version of
272 .BR nmh ,
273 the New Mail Handler.
274 Its name ``mmh'' stands primarily for ``meillo's MH'',
275 but also for modern, minimalistic, and non-compatible Mail Handler.
276
277 .SH BUGS
278 If you encounter problems with an
279 .B mmh
280 program, please report them.
281 When doing this, include the version information, which you can obtain
282 by invoking the program with the
283 .B \-Version
284 switch.
285 .PP
286 Send bug reports and suggestions to
287 .IR "markus schnalke <meillo@marmaro.de>" ,
288 or (as a fall-back) to
289 .IR nmh-workers@nongnu.org .
290 .SH "SEE ALSO"
291 mh-chart(1)