]> diplodocus.org Git - nmh/blob - man/mhbuild.man
Print information about the compiler toolchain on Darwin and FreeBSD.
[nmh] / man / mhbuild.man
1 .TH MHBUILD %manext1% "March 13, 2014" "%nmhversion%"
2 .\"
3 .\" %nmhwarning%
4 .\"
5 .SH NAME
6 mhbuild \- translate MIME composition draft
7 .SH SYNOPSIS
8 .na
9 .HP 5
10 .B mhbuild
11 .I file
12 .RB [ \-auto " | " \-noauto ]
13 .RB [ \-list " | " \-nolist ]
14 .RB [ \-realsize " | " \-norealsize ]
15 .RB [ \-headers " | " \-noheaders ]
16 .RB [ \-directives " | " \-nodirectives ]
17 .RB [ \-rfc934mode " | " \-norfc934mode ]
18 .RB [ \-contentid " | " \-nocontentid ]
19 .RB [ \-verbose " | " \-noverbose ]
20 .RB [ \-disposition " | " \-nodisposition ]
21 .RB [ \-check " | " \-nocheck ]
22 .RB [ \-headerencoding
23 .IR encoding\-algorithm
24 .RB " | " \-autoheaderencoding ]
25 .RB [ \-maxunencoded
26 .IR line\-length ]
27 .RB [ \-dist ]
28 .RB [ \-version ]
29 .RB [ \-help ]
30 .ad
31 .SH DESCRIPTION
32 The
33 .B mhbuild
34 command will translate a MIME composition draft into
35 a valid MIME message.
36 .PP
37 .B mhbuild
38 creates multi-media messages as specified in RFC 2045
39 to RFC 2049. This includes the encoding of message headers as specified
40 by RFC 2047, and the encoding of MIME parameters as specified in RFC 2231.
41 .PP
42 If you specify the name of the composition file as \*(lq-\*(rq,
43 then
44 .B mhbuild
45 will accept the composition draft on the standard
46 input. If the translation of this input is successful,
47 .B mhbuild
48 will output the new MIME message to the standard output. This argument
49 must be the last argument on the command line.
50 .PP
51 Otherwise if the file argument to
52 .B mhbuild
53 is the name of a valid
54 composition file, and the translation is successful,
55 .B mhbuild
56 will replace the original file with the new MIME message. It will rename
57 the original file to start with the \*(lq,\*(rq character and end with the
58 string \*(lq.orig\*(rq, e.g., if you are editing the file \*(lqdraft\*(rq,
59 it will be renamed to \*(lq,draft.orig\*(rq. This allows you to easily
60 recover the
61 .B mhbuild
62 input file.
63 .SS "Listing the Contents"
64 The
65 .B \-list
66 switch tells
67 .B mhbuild
68 to list the table of contents associated with the MIME message that is created.
69 .PP
70 The
71 .B \-headers
72 switch indicates
73 that a one-line banner should be displayed above the listing. The
74 .B \-realsize
75 switch tells
76 .B mhbuild
77 to evaluate the \*(lqnative\*(rq
78 (decoded) format of each content prior to listing. This provides an
79 accurate count at the expense of a small delay. If the
80 .B \-verbose
81 switch
82 is present, then the listing will show any \*(lqextra\*(rq information
83 that is present in the message, such as comments in the
84 \*(lqContent-Type\*(rq header.
85 .PP
86 If the
87 .B \-disposition
88 switch is present, then the listing will show any relevant information from
89 the \*(lqContent-Disposition\*(rq header.
90 .SS "Simplified Attachment Interface"
91 For users who wish to simply attach files to text content,
92 .B mhbuild
93 will scan the composition file for \*(lqAttach\*(rq headers. An
94 \*(lqAttach\*(rq header contains a filename that will be appended to the
95 message using normal MIME encapsulation rules. One filename is allowed
96 per \*(lqAttach\*(rq header, but multiple \*(lqAttach\*(rq headers are
97 allowed ber composition file.
98 .PP
99 These files will be appended after any other MIME content, including any
100 content specified by
101 .B mhbuild
102 directives (see below). See
103 .IR send (1)
104 for more details.
105 .PP
106 By default, the Content-Disposition will be \*(lqattachment\*(rq.
107 .B mhbuild
108 looks for user profile and mhn.defaults entries of the form
109 .PP
110 .RS 5
111 mhbuild-disposition-<type>/<subtype>
112 .RE
113 or
114 .RS 5
115 mhbuild-disposition-<type>
116 .RE
117 .PP
118 to supply the disposition value. The only supported values are
119 .I attachment
120 and
121 .IR inline.
122 .SS "Translating the Composition File"
123 .B mhbuild
124 is essentially a filter to aid in the composition of MIME
125 messages.
126 .B mhbuild
127 will convert an
128 .B mhbuild
129 \*(lqcomposition file\*(rq
130 into a valid MIME message. A
131 .B mhbuild
132 \*(lqcomposition file\*(rq
133 is just a file containing plain text that is interspersed
134 with various
135 .B mhbuild
136 directives. When this file is processed
137 by
138 .BR mhbuild ,
139 the various directives will be expanded to the
140 appropriate content, and will be encoded according to the MIME standards.
141 The resulting MIME message can then be sent by electronic mail.
142 .PP
143 The formal syntax for a
144 .B mhbuild
145 composition file is defined at the
146 end of this document, but the ideas behind this format are not complex.
147 Basically, the body contains one or more contents. A content consists of
148 either a directive, indicated with a \*(lq#\*(rq as the first character
149 of a line; or, plaintext (one or more lines of text). The continuation
150 character, \*(lq\\\*(lq, may be used to enter a single directive on more
151 than one line, e.g.,
152 .PP
153 .RS 5
154 .nf
155 #image/png \\
156 /home/foobar/junk/picture.png
157 .fi
158 .RE
159 .PP
160 There are five kinds of directives: \*(lqtype\*(rq directives, which
161 name the type and subtype of the content; \*(lqexternal-type\*(rq
162 directives, which also name the type and subtype of the content; the
163 \*(lqmessage\*(rq directive (#forw), which is used to forward one or
164 more messages; the \*(lqbegin\*(rq directive (#begin), which is
165 used to create a multipart content; and the \*(lqon/off/pop\*(rq
166 directives (#on, #off, #pop) which control whether any other
167 directives are honored at all.
168 .PP
169 The
170 .B \-directives
171 switch allows control over whether mhbuild will honor any of the
172 \*(lq#\*(rq-directives. This can also be affected with the #on or
173 #off directives, and #pop, which restores the state of processing to
174 that preceding the most recent #on or #off. (The #on, #off, and #pop
175 directives are always honored, of course.) This allows inclusion of
176 plain text which looks like mhbuild directives, without causing
177 errors:
178 .PP
179 .RS 5
180 .nf
181 #off
182 #include <stdio.h>
183 printf("Hello, World!);
184 #pop
185 .fi
186 .RE
187 .PP
188 Currently the stack depth for the #on/off/pop directives is 32.
189 .PP
190 The \*(lqtype\*(rq directive is used to directly specify the type and
191 subtype of a content. You may only specify discrete types in this manner
192 (can't specify the types multipart or message with this directive).
193 You may optionally specify the name of a file containing the contents
194 in \*(lqnative\*(rq (decoded) format. If this filename starts with the
195 \*(lq|\*(rq character, then it represents a command to execute whose
196 output is captured accordingly.
197 For example,
198 .PP
199 .RS 5
200 .nf
201 #audio/basic |raw2audio -F < /usr/lib/sound/giggle.au
202 .fi
203 .RE
204 .PP
205 If a filename is not given,
206 .B mhbuild
207 will look for information in the
208 user's profile to determine how the different contents should be composed.
209 This is accomplished by consulting a composition string, and executing
210 it under
211 .BR /bin/sh ,
212 with the standard output set to the content.
213 If the
214 .B \-verbose
215 switch is given,
216 .B mhbuild
217 will echo any commands that are used to create contents in this way.
218 .PP
219 The composition string may contain the following escapes:
220 .PP
221 .RS 5
222 .nf
223 .ta \w'%P 'u
224 %a Insert parameters from directive
225 %f Insert filename containing content
226 %F %f, and stdout is not re-directed
227 %s Insert content subtype
228 %% Insert character %
229 .fi
230 .RE
231 .PP
232 First,
233 .B mhbuild
234 will look for an entry of the form:
235 .PP
236 .RS 5
237 mhbuild-compose-<type>/<subtype>
238 .RE
239 .PP
240 to determine the command to use to compose the content. If this isn't
241 found,
242 .B mhbuild
243 will look for an entry of the form:
244 .PP
245 .RS 5
246 mhbuild-compose-<type>
247 .RE
248 .PP
249 to determine the composition command. If this isn't found,
250 .B mhbuild
251 will complain.
252 .PP
253 An example entry might be:
254 .PP
255 .RS 5
256 mhbuild-compose-audio/basic: record | raw2audio -F
257 .RE
258 .PP
259 Because commands like these will vary, depending on the display
260 environment used for login, composition strings for different
261 contents should probably be put in the file specified by the
262 .B $MHBUILD
263 environment variable, instead of directly in your
264 user profile.
265 .PP
266 The \*(lqexternal-type\*(rq directives are used to provide a MIME
267 reference to a content, rather than enclosing the contents itself
268 (for instance, by specifying an ftp site). Hence, instead of
269 providing a filename as with the type directives, external-parameters
270 are supplied. These look like regular parameters, so they must be
271 separated accordingly. For example,
272 .PP
273 .RS 5
274 .nf
275 #@application/octet-stream; \\
276 type=tar; \\
277 conversions=compress \\
278 [this is the nmh distribution] \\
279 {attachment; filename="nmh.tar.gz"} \\
280 name="nmh.tar.gz"; \\
281 directory="/pub/nmh"; \\
282 site="ftp.math.gatech.edu"; \\
283 access-type=anon-ftp; \\
284 mode="image"
285 .fi
286 .RE
287 .PP
288 You must give a description string to separate the content parameters
289 from the external-parameters (although this string may be empty).
290 This description string is specified by enclosing it within
291 \*(lq[]\*(rq. A disposition string, to appear in a
292 \*(lqContent-Disposition\*(rq header, may appear in the optional
293 \*(lq{}\*(rq.
294 .PP
295 These parameters are of the form:
296 .PP
297 .RS 5
298 .nf
299 .ta \w'access-type= 'u
300 access-type= usually \fIanon-ftp\fR, \fImail-server\fR, or \fIurl\fR
301 name= filename
302 permission= read-only or read-write
303 site= hostname
304 directory= directoryname (optional)
305 mode= usually \fIascii\fR or \fIimage\fR (optional)
306 size= number of octets
307 server= mailbox
308 subject= subject to send
309 body= command to send for retrieval
310 url= URL of content
311 .fi
312 .RE
313 .PP
314 A mimimum \*(lqexternal\-type\*(rq directive for the
315 .B url
316 .I access\-type
317 would be as follows:
318 .PP
319 .RS 3
320 .nf
321 #@application/octet-stream [] access-type=url; \\
322 url="http://download.savannah.gnu.org/releases/nmh/nmh-1.5.tar.gz"
323 .fi
324 .RE
325 .PP
326 Any long URLs will be wrapped according to RFC 2231 rules.
327 .PP
328 The \*(lqmessage\*(rq directive (#forw) is used to specify a message or
329 group of messages to include. You may optionally specify the name of
330 the folder and which messages are to be forwarded. If a folder is not
331 given, it defaults to the current folder. Similarly, if a message is not
332 given, it defaults to the current message. Hence, the message directive
333 is similar to the
334 .B forw
335 command, except that the former uses
336 the MIME rules for encapsulation rather than those specified in RFC 934.
337 For example,
338 .PP
339 .RS 5
340 .nf
341 #forw +inbox 42 43 99
342 .fi
343 .RE
344 .PP
345 If you include a single message, it will be included directly as a content
346 of type \*(lqmessage/rfc822\*(rq. If you include more than one message,
347 then
348 .B mhbuild
349 will add a content of type \*(lqmultipart/digest\*(rq
350 and include each message as a subpart of this content.
351 .PP
352 If you are using this directive to include more than one message, you
353 may use the
354 .B \-rfc934mode
355 switch. This switch will indicate that
356 .B mhbuild
357 should attempt to utilize the MIME encapsulation rules
358 in such a way that the \*(lqmultipart/digest\*(rq that is created
359 is (mostly) compatible with the encapsulation specified in RFC 934.
360 If given, then RFC 934 compliant user-agents should be able to burst the
361 message on reception\0--\0providing that the messages being encapsulated
362 do not contain encapsulated messages themselves. The drawback of this
363 approach is that the encapsulations are generated by placing an extra
364 newline at the end of the body of each message.
365 .PP
366 The \*(lqbegin\*(rq directive is used to create a multipart content.
367 When using the \*(lqbegin\*(rq directive, you must specify at least one
368 content between the begin and end pairs.
369 .PP
370 .RS 5
371 .nf
372 #begin
373 This will be a multipart with only one part.
374 #end
375 .fi
376 .RE
377 .PP
378 If you use multiple directives in a composition draft,
379 .B mhbuild
380 will
381 automatically encapsulate them inside a multipart content. Therefore the
382 \*(lqbegin\*(rq directive is only necessary if you wish to use nested
383 multiparts, or create a multipart message containing only one part.
384 .PP
385 For all of these directives, the user may include a brief description
386 of the content between the \*(lq[\*(rq character and the \*(lq]\*(rq
387 character. This description will be copied into the
388 \*(lqContent-Description\*(rq header when the directive is processed.
389 .PP
390 .RS 5
391 .nf
392 #forw [important mail from Bob] +bob 1 2 3 4 5
393 .fi
394 .RE
395 .PP
396 Similarly, a disposition string may optionally be provided between
397 \*(lq{\*(rq and \*(lq}\*(rq characters; it will be copied into the
398 \*(lqContent-Disposition\*(rq header when the directive is processed.
399 If a disposition string is provided that does not contain a filename
400 parameter, and a filename is provided in the directive, it will be
401 added to the \*(lqContent-Disposition\*(rq header. For example, the
402 following directive:
403 .PP
404 .RS 5
405 .nf
406 #text/plain; charset=iso-8859-1 <>{attachment} /tmp/summary.txt
407 .fi
408 .RE
409 .PP
410 creates these message part headers:
411 .PP
412 .RS 5
413 .nf
414 Content-Type: text/plain; charset="iso-8859-1"
415 Content-Disposition: attachment; filename="summary.txt"
416 .fi
417 .RE
418 .PP
419 By default,
420 .B mhbuild
421 will generate a unique \*(lqContent-ID:\*(rq for each directive,
422 corresponding to each message part; however, the user may override
423 this by defining the ID using the \*(lq<\*(rq and \*(lq>\*(rq
424 characters. The
425 .B \-nocontentid
426 switch suppresses creation of all \*(lqContent-ID:\*(rq headers,
427 even in the top level of the message.
428 .PP
429 Normally
430 .B mhbuild
431 will choose an appropriate Content\-Transfer\-Encoding based on the content
432 and the MIME Content\-Type. However, you can override that in an
433 .B mhbuild
434 directive by specifying \*(lq*\*(rq and the encoding. Acceptable encoding
435 values are \*(lq8bit\*(rq, \*(lqqp\(*rq (for quoted\-printable), and
436 \*(lqb64\*(rq (for base64 encoding). It should be noted that undesired
437 results may occur if 8bit or quoted\-printable is selected for binary
438 content, due to the translation between Unix line endings and the line
439 endings use by the mail transport system.
440 .PP
441 In addition to the various directives, plaintext can be present.
442 Plaintext is gathered, until a directive is found or the draft is
443 exhausted, and this is made to form a text content. If the plaintext
444 must contain a \*(lq#\*(rq at the beginning of a line, simply double it,
445 e.g.,
446 .PP
447 .RS 5
448 ##when sent, this line will start with only one #
449 .RE
450 .PP
451 If you want to end the plaintext prior to a directive, e.g., to have two
452 plaintext contents adjacent, simply insert a line containing a single
453 \*(lq#\*(rq character, e.g.,
454 .PP
455 .RS 5
456 .nf
457 this is the first content
458 #
459 and this is the second
460 .fi
461 .RE
462 .PP
463 Finally, if the plaintext starts with a line of the form:
464 .PP
465 .RS 5
466 Content-Description: text
467 .RE
468 .PP
469 then this will be used to describe the plaintext content.
470 You MUST follow this line with a blank line before starting
471 your text.
472 .PP
473 By default, plaintext is captured as a text/plain content. You can
474 override this by starting the plaintext with \*(lq#<\*(rq followed by
475 a content-type specification. For example, e.g.,
476 .PP
477 .RS 5
478 .nf
479 #<text/enriched
480 this content will be tagged as text/enriched
481 #
482 and this content will be tagged as text/plain
483 #
484 #<application/x-patch [this is a patch]
485 and this content will be tagged as application/x-patch
486 .fi
487 .RE
488 .PP
489 Note that if you use the \*(lq#<\*(rq plaintext-form, then the
490 content-description must be on the same line which identifies the content
491 type of the plaintext.
492 .PP
493 When composing a text content, you may indicate the relevant character
494 set by adding the \*(lqcharset\*(rq parameter to the directive.
495 .PP
496 .RS 5
497 #<text/plain; charset=iso-8859-5
498 .RE
499 .PP
500 If a text content contains any 8\-bit characters (characters with the
501 high bit set) and the character set is not specified as above, then
502 .B mhbuild
503 will assume the character set is of the type given by the
504 standard
505 .IR locale (1)
506 environment variables. If these environment variables are not
507 set, then the character set will be labeled as \*(lqx-unknown\*(rq.
508 .PP
509 If a text content contains only 7\-bit characters and the character set
510 is not specified as above, then the character set will be labeled as
511 \*(lqus-ascii\*(rq.
512 .PP
513 By default text content with the high bit set is encoded with a 8bit
514 Content\-Transfer\-Encoding. If the text has lines longer than the value
515 of
516 .B \-maxunencoded
517 (which defaults to 78) then the text is encoded using the quoted\-printable
518 encoding.
519 .PP
520 The
521 .B \-headerencoding
522 switch will indicate which algorithm to use when encoding any message headers
523 that contain 8\-bit characters. The valid arguments are
524 .I base64
525 for based\-64 encoding and
526 .I quoted
527 for quoted\-printable encoding. The
528 .B \-autoheaderencoding
529 switch will instruct
530 .B mhbuild
531 to automatically pick the algorithm that results in a shorter encoded string.
532 .PP
533 Putting this all together,
534 here is an example of a more complicated message draft. The
535 following draft will expand into a multipart/mixed message
536 containing five parts:
537 .PP
538 .RS 5
539 .nf
540 To: nobody@nowhere.org
541 cc:
542 Subject: Look and listen to me!
543 --------
544 The first part will be text/plain
545 #<text/enriched
546 The second part will be text/enriched
547 #
548 This third part will be text/plain
549 #audio/basic [silly giggle] \\
550 |raw2audio -F < /usr/lib/sounds/giggle.au
551 #image/gif [photo of foobar] \\
552 /home/foobar/lib/picture.gif
553 .fi
554 .RE
555 .SS "Integrity Check"
556 If
557 .B mhbuild
558 is given the
559 .B \-check
560 switch, then it will also associate an integrity check with each
561 \*(lqleaf\*(rq content. This will add a Content-MD5 header field to
562 the content, along with the md5 sum of the unencoded contents, per RFC
563 1864. This may be used by the receiver of the message to verify that
564 the contents of the message were not changed in transport.
565 .SS "Transfer Encodings"
566 After
567 .B mhbuild
568 constructs the new MIME message by parsing directives,
569 including files, etc., it scans the contents of the message to determine
570 which transfer encoding to use. It will check for 8bit data, long lines,
571 spaces at the end of lines, and clashes with multipart boundaries. It will
572 then choose a transfer encoding appropriate for each content type.
573 .PP
574 If an integrity check is being associated with each content by using
575 the
576 .B \-check
577 switch, then
578 .B mhbuild
579 will encode each content with
580 a transfer encoding, even it the content contains only 7\-bit data. This
581 is to increase the likelihood that the content is not changed while in
582 transport.
583 .SS "Invoking mhbuild"
584 Typically,
585 .B mhbuild
586 is invoked by the
587 .B whatnow
588 program. This
589 command will expect the body of the draft to be formatted as an
590 .B mhbuild
591 composition file. Once you have composed this input file
592 using a command such as
593 .BR comp ,
594 .BR repl ,
595 or
596 .BR forw ,
597 you invoke
598 .B mhbuild
599 at the \*(lqWhat now\*(rq prompt with
600 .PP
601 .RS 5
602 What now? mime
603 .RE
604 .PP
605 prior to sending the draft. This will cause
606 .B whatnow
607 to execute
608 .B mhbuild
609 to translate the composition file into MIME format.
610 .PP
611 Normally it is an error to invoke
612 .B mhbuild
613 on file that already in MIME format. The
614 .B \-auto
615 switch will cause
616 .B mhbuild
617 to exit without error if the input file already has valid MIME headers.
618 The use of
619 .B \-auto
620 also enables the
621 .B \-nodirectives
622 switch.
623 .PP
624 Finally, you should consider adding this line to your profile:
625 .PP
626 .RS 5
627 lproc: show
628 .RE
629 .PP
630 This way, if you decide to
631 .B list
632 after invoking
633 .BR mime ,
634 the command
635 .PP
636 .RS 5
637 What now? list
638 .RE
639 .PP
640 will work as you expect.
641 .PP
642 The
643 .B \-dist
644 switch is intended to be used by
645 .BR dist .
646 It will cause mhbuild to not generate any MIME headers in the composition
647 file (such as \*(lqMIME-Version\*(rq or \*(lqContent-Type\*(rq), but it
648 will still encode message headers according to RFC 2047.
649 .SS "User Environment"
650 Because the environment in which
651 .B mhbuild
652 operates may vary for a
653 user,
654 .B mhbuild
655 will look for the environment variable
656 .BR $MHBUILD .
657 If present, this specifies the name of an additional user profile which
658 should be read. Hence, when a user logs in on a particular machine,
659 this environment variable should be set to refer to a file containing
660 definitions useful for that machine.
661 .PP
662 Finally,
663 .B mhbuild
664 will attempt to consult
665 .PP
666 .RS 5
667 %etcdir%/mhn.defaults
668 .RE
669 .PP
670 if it exists.
671 .PP
672 See "Profile Lookup" in
673 .IR mh-profile (5)
674 for the profile search order, and for how duplicate entries are treated.
675 .SS "Syntax of Composition Files"
676 The following is the formal syntax of a
677 .B mhbuild
678 \*(lqcomposition file\*(rq.
679 .PP
680 .RS 5
681 .nf
682 body ::= 1*(content | EOL)
683
684 content ::= directive | plaintext
685
686 directive ::= "#" type "/" subtype
687 0*(";" attribute "=" value)
688 [ "(" comment ")" ]
689 [ "<" id ">" ]
690 [ "[" description "]" ]
691 [ "{" disposition "}" ]
692 [ "*8bit" | "*qp" | "*b64" ]
693 [ filename ]
694 EOL
695
696 | "#@" type "/" subtype
697 0*(";" attribute "=" value)
698 [ "(" comment ")" ]
699 [ "<" id ">" ]
700 [ "[" description "]" ]
701 [ "{" disposition "}" ]
702 [ "*8bit" | "*qp" | "*b64" ]
703 external-parameters
704 EOL
705
706 | "#forw"
707 [ "<" id ">" ]
708 [ "[" description "]" ]
709 [ "{" disposition "}" ]
710 [ "+"folder ] [ 0*msg ]
711 EOL
712
713 | "#begin"
714 [ "<" id ">" ]
715 [ "[" description "]" ]
716 [ "{" disposition "}" ]
717 [ "alternative"
718 | "parallel"
719 | something-else ]
720 EOL
721 1*body
722 "#end" EOL
723
724 plaintext ::= [ "Content-Description:"
725 description EOL EOL ]
726 1*line
727 [ "#" EOL ]
728
729 | "#<" type "/" subtype
730 0*(";" attribute "=" value)
731 [ "(" comment ")" ]
732 [ "[" description "]" ]
733 [ "{" disposition "}" ]
734 [ "*8bit" | "*qp" | "*b64" ]
735 EOL
736 1*line
737 [ "#" EOL ]
738
739 line ::= "##" text EOL
740 -- interpreted as "#"text EOL
741 | text EOL
742 .fi
743 .RE
744 .SH FILES
745 .B mhbuild
746 looks for additional user profile files and mhn.defaults in multiple
747 locations: absolute pathnames are accessed directly, tilde expansion
748 is done on usernames, and files are searched for in the user's
749 .I Mail
750 directory as specified in their profile. If not found there, the directory
751 .RI \*(lq %etcdir% \*(rq
752 is checked.
753 .PP
754 .fc ^ ~
755 .nf
756 .ta \w'%etcdir%/ExtraBigFileName 'u
757 ^$HOME/\&.mh\(ruprofile~^The user profile
758 ^$MHBUILD~^Additional profile entries
759 ^%etcdir%/mhn.defaults~^System default MIME profile entries
760 .fi
761 .SH "PROFILE COMPONENTS"
762 .fc ^ ~
763 .nf
764 .ta 2.4i
765 .ta \w'ExtraBigProfileName 'u
766 ^Path:~^To determine the user's nmh directory
767 ^Current\-Folder:~^To find the default current folder
768 ^mhbuild-compose-<type>*~^Template for composing contents
769 .fi
770 .SH "SEE ALSO"
771 .IR mhlist (1),
772 .IR mhshow (1),
773 .IR mhstore (1)
774 .PP
775 .I "Proposed Standard for Message Encapsulation"
776 (RFC 934),
777 .PP
778 .I "The Content-MD5 Header Field"
779 (RFC 1864),
780 .PP
781 .I "Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies"
782 (RFC 2045),
783 .PP
784 .I "Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types"
785 (RFC 2046),
786 .PP
787 .I "Multipurpose Internet Mail Extensions (MIME) Part Three: Message Header Extensions for Non-ASCII Text"
788 (RFC 2047),
789 .PP
790 .I "Multipurpose Internet Mail Extensions (MIME) Part Four: Registration Procedures"
791 (RFC 2048),
792 .PP
793 .I "Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples"
794 (RFC 2049),
795 .PP
796 .I "Definition of the URL MIME External-Body Access-Type"
797 (RFC 2017),
798 .PP
799 .I "MIME Parameter Value and Encoded Word Extensions: Character Sets, Languages, and Continuations"
800 (RFC 2231)
801 .SH DEFAULTS
802 .nf
803 .RB ` \-headers '
804 .RB ` \-realsize '
805 .RB ` \-norfc934mode '
806 .RB ` \-contentid '
807 .RB ` \-nocheck '
808 .RB ` \-noverbose '
809 .RB ` \-nodisposition '
810 .RB ` \-autoheaderencoding '
811 .RB ` "\-maxunencoded\ 78"'
812 .fi