SIGNATURE/Local-Mailbox are not used by post, but just by front
[mmh] / man / mh-profile.man
1 .\"
2 .\" %nmhwarning%
3 .\"
4 .TH MH-PROFILE %manext5% "%nmhdate%" MH.6.8 [%nmhversion%]
5 .SH NAME
6 mh-profile \- user profile customization for nmh message handler
7 .SH SYNOPSIS
8 .I $HOME/.mh\(ruprofile
9 .SH DESCRIPTION
10 Each user of
11 .B nmh
12 is expected to have a file named
13 .I \&.mh\(ruprofile
14 in his or her home directory.  This file contains
15 a set of user parameters used by some or all of the
16 .B nmh
17 family of programs.  Each entry in the file is of the format
18 .PP
19 .RS 5
20 .IR profile\-component ": " value
21 .RE
22 .PP
23 If the text of profile entry is long, you may extend it across several
24 real lines by indenting the continuation lines with leading spaces or tabs.
25 Comments may be introduced by a line starting with `#:':
26 .PP
27 .RS 5
28 .IR # ": "
29 This is a comment.
30 .RE
31 .PP
32 Blank lines are not permitted in
33 .IR \&.mh\(ruprofile.
34
35 .SS "Standard Profile Entries"
36 The possible profile components are exemplified below.  The only mandatory
37 entry is `Path:'.  The others are optional; some have default values if
38 they are not present.  In the notation used below, (profile, default)
39 indicates whether the information is kept in the user's
40 .B nmh
41 profile or
42 .B nmh
43 context, and indicates what the default value is.
44 .PP
45 .BR Path :
46 Mail
47 .RS 5
48 Locates
49 .B nmh
50 transactions in directory \*(lqMail\*(rq.  This is the
51 only mandatory profile entry.  (profile, no default)
52 .RE
53 .PP
54 .BR context :
55 context
56 .RS 5
57 Declares the location of the
58 .B nmh
59 context file.  This is overridden by the environment variable
60 .BR $MHCONTEXT .
61 See the
62 .B HISTORY
63 section below.
64 (profile, default: <nmh\-dir>/context)
65 .RE
66 .PP
67 .BR Current\-Folder :
68 inbox
69 .RS 5
70 Keeps track of the current open folder.
71 (context, default: folder specified by \*(lqInbox\*(rq)
72 .RE
73 .PP
74 .BR Inbox :
75 inbox
76 .RS 5
77 Defines the name of your default inbox.
78 (profile, default: inbox)
79 .RE
80 .PP
81 .BR Previous\-Sequence :
82 .I pseq
83 .RS 5
84 Names the sequence or sequences which should be defined as the `msgs' or
85 `msg' argument given to any
86 .B nmh
87 command.  If not present or empty,
88 no such sequences are defined.  Otherwise, for each name given, the
89 sequence is first zero'd and then each message is added to the sequence.
90 Read the
91 .BR mh\-sequence (5)
92 man page for the details about this sequence. (profile, no default)
93 .RE
94 .PP
95 .BR Sequence\-Negation :
96 not
97 .RS 5
98 Defines the string which, when prefixed to a sequence name, negates
99 that sequence.  Hence, \*(lqnotseen\*(rq means all those messages that
100 are not a member of the sequence \*(lqseen\*(rq.  Read the
101 .BR mh\-sequence (5)
102 man page for the details.  (profile, no default)
103 .RE
104 .PP
105 .BR Unseen\-Sequence :
106 unseen
107 .RS 5
108 Names the sequence or sequences which should be defined as those
109 messages which are unread.  The commands
110 .BR inc ,
111 .BR rcvstore ,
112 .BR mhshow ,
113 and
114 .B show
115 will add or remove messages from these
116 sequences when they are incorporated or read.  If not present or
117 empty, no such sequences are defined.  Otherwise, each message is
118 added to, or removed from, each sequence name given.  Read the
119 .BR mh\-sequence (5)
120 man page for the details about this sequence.
121 (profile, no default)
122 .RE
123 .PP
124 .BR mh\-sequences :
125 \&.mh\(rusequences
126 .RS 5
127 The name of the file in each folder which defines public sequences.
128 To disable the use of public sequences, leave the value portion of this
129 entry blank.  (profile, default: \&.mh\(rusequences)
130 .RE
131 .PP
132 .BI atr\- seq \- folder :
133 172\0178\-181\0212
134 .RS 5
135 Keeps track of the private sequence called \*(lqseq\*(rq in the specified
136 folder.  Private sequences are generally used for read\-only folders.
137 See the
138 .BR mh\-sequence (5)
139 man page for details about private sequences.
140 (context, no default)
141 .RE
142 .PP
143 .BR Editor :
144 /usr/bin/vi
145 .RS 5
146 Defines the editor to be used by the commands
147 .BR comp ,
148 .BR dist ,
149 .BR forw ,
150 and
151 .BR repl .
152 (profile, default: %default_editor%)
153 .RE
154 .PP
155 .BR automimeproc :
156 .RS 5
157 If defined and set to 1, then the
158 .B whatnow
159 program will automatically
160 invoke the buildmimeproc (discussed below) to process each message as a MIME
161 composition draft before it is sent.
162 (profile, no default)
163 .RE
164 .PP
165 .BR Msg\-Protect :
166 600
167 .RS 5
168 An octal number which defines the permission bits for new message files.
169 See
170 .BR chmod (1)
171 for an explanation of the octal number.
172 (profile, default: 0600)
173 .RE
174 .PP
175 .BR Folder\-Protect :
176 700
177 .RS 5
178 An octal number which defines the permission bits for new folder
179 directories.  See
180 .BR chmod (1)
181 for an explanation of the octal number.
182 (profile, default: 700)
183 .RE
184 .PP
185 .IR program :
186 .I default switches
187 .RS 5
188 Sets default switches to be used whenever the mh program
189 .I program
190 is invoked.  For example, one could override the \*(lqEditor:\*(rq profile
191 component when replying to messages by adding a component such as:
192 .PP
193 .RS 5
194 repl: \-editor /bin/ed
195 .RE
196 .PP
197 (profile, no defaults)
198 .RE
199 .PP
200 .IB lasteditor "-next:"
201 .I nexteditor
202 .RS 5
203 Names \*(lqnexteditor\*(rq to be the default editor after using
204 \*(lqlasteditor\*(rq.  This takes effect at \*(lqWhat now?\*(rq prompt
205 in
206 .BR comp ,
207 .BR dist ,
208 .BR forw ,
209 and
210 .BR repl .
211 After editing
212 the draft with \*(lqlasteditor\*(rq, the default editor is set to be
213 \*(lqnexteditor\*(rq.  If the user types \*(lqedit\*(rq without any
214 arguments to \*(lqWhat now?\*(rq, then \*(lqnexteditor\*(rq is used.
215 (profile, no default)
216 .RE
217 .PP
218 .BR Folder\-Stack :
219 .I folders
220 .RS 5
221 The contents of the folder-stack for the
222 .B folder
223 command.
224 (context, no default)
225 .RE
226 .PP
227 .BR Local\-Mailbox :
228 Your Username <user@some.host>
229 .RS 5
230 Tells the various MH tools what your local mailbox is.  If set, will be used
231 by the default component files by tools like
232 .B comp
233 and
234 .B repl
235 to construct your default \*(lqFrom\*(rq header.  The text used here will
236 be copied exactly to your From: header, so it should already be RFC-822
237 compliant.  If this is set, the
238 .B Signature
239 profile entry is NOT used, so it should include a signature as well.  (profile,
240 default: userid@local.hostname)
241 .RE
242 .PP
243 .BR Alternate\-Mailboxes :
244 mh@uci\-750a, bug-mh*
245 .RS 5
246 Tells
247 .B repl
248 and
249 .B scan
250 which addresses are really yours.
251 In this way,
252 .B repl
253 knows which addresses should be included in the
254 reply, and
255 scan
256 knows if the message really originated from you.
257 Addresses must be separated by a comma, and the hostnames listed should
258 be the \*(lqofficial\*(rq hostnames for the mailboxes you indicate, as
259 local nicknames for hosts are not replaced with their official site names.
260 For each address, if a host is not given, then that address on any host is
261 considered to be you.  In addition, an asterisk (`*') may appear at either
262 or both ends of the mailbox and host to indicate wild-card matching.
263 (profile, default: your user-id)
264 .RE
265 .PP
266 .BR Aliasfile :
267 aliases
268 .I other-alias
269 .RS 5
270 Indicates aliases files for
271 .BR ali ,
272 .BR whom ,
273 and
274 .BR send .
275 This may be used instead of the
276 .B \-alias
277 .I file
278 switch.  (profile, no default)
279 .RE
280 .PP
281 .BR Draft\-Folder :
282 drafts
283 .RS 5
284 Indicates a default draft folder for
285 .BR comp ,
286 .BR dist ,
287 .BR forw ,
288 .BR refile ,
289 and
290 .BR repl .
291 Read the
292 .BR mh\-draft (5)
293 man page for details. (profile, no default)
294 .RE
295 .PP
296 .BI digest\-issue\- list :
297 1
298 .RS 5
299 Tells
300 .B forw
301 the last issue of the last volume sent for the digest
302 .IR list .
303 (context, no default)
304 .RE
305 .PP
306 .BI digest\-volume\- list :
307 1
308 .RS 5
309 Tells
310 .B forw
311 the last volume sent for the digest
312 .IR list .
313 (context, no default)
314 .RE
315 .PP
316 .BR MailDrop :
317 \&.mail
318 .RS 5
319 Tells
320 .B inc
321 your maildrop, if different from the default.  This is
322 superseded by the environment variable
323 .BR $MAILDROP .
324 (profile, default: %mailspool%/$USER)
325 .RE
326 .PP
327 .BR Signature :
328 RAND MH System (agent: Marshall Rose)
329 .RS 5
330 Tells front-end programs such as
331 .BR comp,
332 .BR forw,
333 and
334 .B repl
335 your mail signature.  This is superseded by the
336 environment variable
337 .BR $SIGNATURE .
338 If
339 .B $SIGNATURE
340 is not set and this profile entry is not present, the \*(lqgcos\*(rq field of
341 the \fI/etc/passwd\fP file will be used.
342 Your signature will be added to the address
343 .B send
344 puts in the \*(lqFrom:\*(rq header; do not include an address in the
345 signature text.  The \*(lqLocal\-Mailbox\*(rq profile component
346 supersedes all of this.  (profile, no default)
347 .RE
348
349 .SS "Process Profile Entries"
350 The following profile elements are used whenever an
351 .B nmh
352 program invokes some other program such as
353 .BR more .
354 The
355 .I \&.mh\(ruprofile
356 can be used to select alternate programs if the
357 user wishes.  The default values are given in the examples.
358 .RE
359 .PP
360 .BR buildmimeproc :
361 %bindir%/mhbuild
362 .RS 5
363 This is the program used by
364 .B whatnow
365 to process drafts which are MIME composition files.
366 .RE
367 .PP
368 .BR fileproc :
369 %bindir%/refile
370 .RS 5
371 This program is used to refile or link a message to another folder.
372 It is used by
373 .B send
374 to file a copy of a message into a folder given
375 by a \*(lqFcc:\*(rq field.  It is used by the draft folder facility in
376 .BR comp ,
377 .BR dist ,
378 .BR forw ,
379 and
380 .B repl
381 to refile a draft
382 message into another folder.  It is used to refile a draft message in
383 response to the
384 .B refile
385 directive at the \*(lqWhat now?\*(rq prompt.
386 .RE
387 .PP
388 .BR formatproc :
389 .RS 5
390 Program called by
391 .B mhl
392 to filter a component when it is tagged with the \*(lqformat\*(rq variable
393 in the mhl filter.  See
394 .BR mhl (5)
395 for more information.
396 .RE
397 .PP
398 .BR incproc :
399 %bindir%/inc
400 .RS 5
401 Program called by
402 .B mhmail
403 to incorporate new mail when it
404 is invoked with no arguments.
405 .RE
406 .PP
407 .BR installproc :
408 %libdir%/install\-mh
409 .RS 5
410 This program is called to initialize the environment for
411 new users of
412 .BR nmh .
413 .RE
414 .PP
415 .BR lproc :
416 %default_pager%
417 .RS 5
418 This program is used to list the contents of a message in response
419 to the
420 .B list
421 directive at the \*(lqWhat now?\*(rq prompt.  It is
422 also used by the draft folder facility in
423 .BR comp ,
424 .BR dist ,
425 .BR forw ,
426 and
427 .B repl
428 to display the draft message.
429 .RE
430 .PP
431 .BR mailproc :
432 %bindir%/mhmail
433 .RS 5
434 This is the program used to automatically mail various messages
435 and notifications.  It is used by
436 .B conflict
437 when using the
438 .B \-mail
439 option.  It is used by
440 .B send
441 to post failure notices.
442 It is used to retrieve an external-body with access-type `mail-server'
443 (such as when storing the body with
444 .BR mhstore ).
445 .RE
446 .PP
447 .BR mhlproc :
448 %libdir%/mhl
449 .RS 5
450 This is the program used to filter messages in various ways.  It
451 is used by
452 .B mhshow
453 to filter and display the message headers
454 of MIME messages.  When the
455 .B \-format
456 or
457 .B \-filter
458 option is used
459 by
460 .B forw
461 or
462 .BR repl ,
463 the
464 .I mhlproc
465 is used to filter the
466 message that you are forwarding, or to which you are replying.
467 When the
468 .B \-filter
469 option is given to
470 .BR send ,
471 the
472 .I mhlproc
473 is used to filter the copy of the message
474 that is sent to \*(lqBcc:\*(rq recipients.
475 .RE
476 .PP
477 .BR moreproc :
478 %default_pager%
479 .RS 5
480 This is the program used by
481 .B mhl
482 to page the
483 .B mhl
484 formatted message when displaying to a terminal.  It is also the default
485 program used by
486 .B mhshow
487 to display message bodies (or message parts) of type text/plain.
488 .RE
489 .PP
490 .BR mshproc :
491 %bindir%/msh
492 .RS 5
493 Currently not used.
494 .RE
495 .PP
496 .BR packproc :
497 %bindir%/packf
498 .RS 5
499 Currently not used.
500 .RE
501 .PP
502 .BR postproc :
503 %libdir%/post
504 .RS 5
505 This is the program used by
506 .BR send ,
507 .BR mhmail ,
508 .BR rcvdist ,
509 and
510 .B viamail
511 (used by the
512 .B sendfiles
513 shell script) to
514 post a message to the mail transport system.  It is also called by
515 .B whom
516 (called with the switches
517 .B \-whom
518 and
519 .BR \-library )
520 to do address verification.
521 .RE
522 .PP
523 .BR rmmproc :
524 none
525 .RS 5
526 This is the program used by
527 .B rmm
528 and
529 .B refile
530 to delete a message from a folder.
531 .RE
532 .PP
533 .BR sendproc :
534 %bindir%/send
535 .RS 5
536 This is the program to use by
537 .B whatnow
538 to actually send the message
539 .RE
540 .PP
541 .BR showmimeproc :
542 %bindir%/mhshow
543 .RS 5
544 This is the program used by
545 .B show
546 to process and display non-text (MIME) messages.
547 .RE
548 .PP
549 .BR showproc :
550 %libdir%/mhl
551 .RS 5
552 This is the program used by
553 .B show
554 to filter and display text (non-MIME) messages.
555 .RE
556 .PP
557 .BR whatnowproc :
558 %bindir%/whatnow
559 .RS 5
560 This is the program invoked by
561 .BR comp ,
562 .BR forw ,
563 .BR dist ,
564 and
565 .B repl
566 to query about the disposition of a composed draft message.
567 .RE
568 .PP
569 .BR whomproc :
570 %bindir%/whom
571 .RS 5
572 This is the program used by
573 .B whatnow
574 to determine to whom a message would be sent.
575 .RE
576
577 .SS "Environment Variables"
578 The operation of
579 .B nmh
580 and its commands it also controlled by the
581 presence of certain environment variables.
582 .PP
583 Many of these environment variables are used internally by the
584 \*(lqWhat now?\*(rq interface.  It's amazing all the information
585 that has to get passed via environment variables to make the
586 \*(lqWhat now?\*(rq interface look squeaky clean to the
587 .B nmh
588 user, isn't it?  The reason for all this is that the
589 .B nmh
590 user
591 can select
592 .B any
593 program as the
594 .IR whatnowproc ,
595 including
596 one of the standard shells.  As a result, it's not possible to pass
597 information via an argument list. The convention is that environment
598 variables whose names are all upper-case are user-settable; those
599 whose names are lower-case only are used internally by nmh and should
600 not generally be set by the user.
601 .PP
602 .B $MH
603 .RS 5
604 With this environment variable, you can specify a profile
605 other than
606 .I \&.mh\(ruprofile
607 to be read by the
608 .B nmh
609 programs
610 that you invoke.  If the value of
611 .B $MH
612 is not absolute, (i.e., does
613 not begin with a \*(lq/\*(rq), it will be presumed to start from the current
614 working directory.  This is one of the very few exceptions in
615 .B nmh
616 where non-absolute pathnames are not considered relative to the user's
617 .B nmh
618 directory.
619 .RE
620 .PP
621 .B $MHCONTEXT
622 .RS 5
623 With this environment variable, you can specify a
624 context other than the normal context file (as specified in
625 the
626 .B nmh
627 profile).  As always, unless the value of
628 .B $MHCONTEXT
629 is absolute, it will be presumed to start from your
630 .B nmh
631 directory.
632 .RE
633 .PP
634 .B $MHBUILD
635 .RS 5
636 With this environment variable, you can specify an
637 additional user profile (file) to be read by
638 .BR mhbuild ,
639 in addition to the mhn.defaults profile.
640 .RE
641 .PP
642 .B $MHN
643 .RS 5
644 With this environment variable, you can specify an
645 additional user profile (file) to be read by
646 .BR mhn ,
647 in addition to the mhn.defaults profile.
648 .B mhn
649 is deprecated, so this support for this variable will
650 be removed from a future nmh release.
651 .RE
652 .PP
653 .B $MHSHOW
654 .RS 5
655 With this environment variable, you can specify an
656 additional user profile (file) to be read by
657 .BR mhshow ,
658 in addition to the mhn.defaults profile.
659 .RE
660 .PP
661 .B $MHSTORE
662 .RS 5
663 With this environment variable, you can specify an
664 additional user profile (file) to be read by
665 .BR mhstore ,
666 in addition to the mhn.defaults profile.
667 .RE
668 .PP
669 .B $MM_CHARSET
670 .RS 5
671 With this environment variable, you can specify
672 the native character set you are using.  You must be able to display
673 this character set on your terminal.
674 .PP
675 This variable is checked to see if a RFC-2047 header field should be
676 decoded (in
677 .BR inc ,
678 .BR scan ,
679 .BR mhl ).
680 This variable is
681 checked by
682 .B show
683 to see if the
684 .I showproc
685 or
686 .I showmimeproc
687 should
688 be called, since showmimeproc will be called if a text message uses
689 a character set that doesn't match
690 .BR $MM_CHARSET .
691 This variable is
692 checked by
693 .B mhshow
694 for matches against the charset parameter
695 of text contents to decide it the text content can be displayed
696 without modifications to your terminal.  This variable is checked by
697 .B mhbuild
698 to decide what character set to specify in the charset
699 parameter of text contents containing 8\-bit characters.
700 .PP
701 When decoding text in such an alternate character set,
702 .B nmh
703 must be able to determine which characters are alphabetic, which
704 are control characters, etc.  For many operating systems, this
705 will require enabling the support for locales (such as setting
706 the environment variable
707 .B $LC_CTYPE
708 to iso_8859_1).
709 .RE
710 .PP
711 .B $NOMHNPROC
712 .RS 5
713 If this variable is set,
714 .B show
715 will next test for MIME messages.  This mechanism is obsolete;
716 use the
717 .B \-nocheckmime
718 switch to
719 .B show
720 instead.
721 .RE
722 .PP
723 .B $MAILDROP
724 .RS 5
725 This variable tells
726 .B inc
727 the default maildrop. This supersedes the \*(lqMailDrop\*(rq profile entry.
728 .RE
729 .PP
730 .B $MAILHOST
731 .RS 5
732 This variable tells
733 .B inc
734 the POP host to query for mail to incorporate.  See the
735 inc(1) man page for more information.
736 .RE
737 .PP
738 .B $USERNAME_EXTENSION
739 .RS 5
740 This variable is for use with username_extension masquerading.  See the
741 mh-tailor(5) man page.
742 .RE
743 .PP
744 .B $SIGNATURE
745 .RS 5
746 This variable tells
747 .B send
748 and
749 .B post
750 your mail signature. This supersedes the \*(lqSignature\*(rq profile entry,
751 and is not used when the \*(lqLocal\-Mailbox\*(rq profile component is set.
752 .RE
753 .PP
754 .B $USER
755 .RS 5
756 This variable tells
757 .B repl
758 your user name and
759 .B inc
760 your default maildrop:  see the \*(lqMailDrop\*(rq profile entry.
761 .RE
762 .PP
763 .B $HOME
764 .RS 5
765 This variable tells all
766 .B nmh
767 programs your home directory
768 .RE
769 .PP
770 .B $TERM
771 .RS 5
772 This variable tells
773 .B nmh
774 your terminal type.
775 .PP
776 The environment variable
777 .B $TERMCAP
778 is also consulted.  In particular,
779 these tell
780 .B scan
781 and
782 .B mhl
783 how to clear your terminal, and how
784 many columns wide your terminal is.  They also tell
785 .B mhl
786 how many
787 lines long your terminal screen is.
788 .RE
789 .PP
790 .B $MHMTSCONF
791 .RS 5
792 If this variable is set to a non-null value, it specifies the
793 name of the mail transport configuration file to use by
794 .BR post ,
795 .BR inc ,
796 and other programs that interact with the mail transport system,
797 instead of the default.  See mh-tailor(5).
798 .RE
799 .PP
800 .B $MHMTSUSERCONF
801 .RS 5
802 If this variable is set to a non-null value, it specifies the name of
803 a mail transport configuration file to be read in addition to the
804 default.  See mh-tailor(5).
805 .RE
806 .PP
807 .B $MHTMPDIR
808 .B $TMPDIR
809 .B $TMP
810 .RS 5
811 These variables are searched, in order, for the directory in which to
812 create some temporary files.
813 .RE
814 .PP
815 .B $MM_NOASK
816 .RS 5
817 Setting this variable is set to 1 has the same effect as specifying
818 the
819 .B \-nolist
820 and
821 .B \-nopause
822 switches to
823 .BR mhbuild ,
824 .BR mhn ,
825 and
826 .BR mhshow .
827 OBSOLETE:  will be removed in a future version of nmh.
828 .RE
829 .PP
830 .B $MHLDEBUG
831 .RS 5
832 If this variable is set to a non-null value,
833 .B mhl
834 will emit debugging information.
835 .RE
836 .PP
837 .B $MHPDEBUG
838 .RS 5
839 If this variable is set to a non-null value,
840 .B pick
841 will emit a representation of the search pattern.
842 .RE
843 .PP
844 .B $MHPOPDEBUG
845 .RS 5
846 If this variable is set to a non-null value,
847 .B msgchck
848 and
849 .B inc
850 will display their interaction with the POP server.
851 This mechanism is obsolete; use the
852 .B \-snoop
853 switch instead.
854 .RE
855 .PP
856 .B $MHWDEBUG
857 .RS 5
858 If this variable is set to a non-null value,
859 .B nmh
860 commands that use the
861 .BR Alternate\-Mailboxes
862 profile entry will display debugging information
863 about the values in that entry.
864 .RE
865 .PP
866 .B $editalt
867 .RS 5
868 This is the alternate message.
869 .PP
870 This is set by
871 .B dist
872 and
873 .B repl
874 during edit sessions so you can
875 peruse the message being distributed or replied to.  The message is also
876 available through a link called \*(lq@\*(rq in the current directory if
877 your current working directory and the folder the message lives in are
878 on the same UNIX filesystem.
879 .RE
880 .PP
881 .B $mhdraft
882 .RS 5
883 This is the path to the working draft.
884 .PP
885 This is set by
886 .BR comp ,
887 .BR dist ,
888 .BR forw ,
889 and
890 .B repl
891 to tell the
892 .I whatnowproc
893 which file to ask \*(lqWhat now?\*(rq
894 questions about.
895 .RE
896 .PP
897 .B $mhaltmsg
898 .RS 5
899 .B dist
900 and
901 .B repl
902 set
903 .B $mhaltmsg
904 to tell the
905 .I whatnowproc
906 about an alternate message associated with the
907 draft (the message being distributed or replied to).
908 .RE
909 .PP
910 .B $mhfolder
911 .RS 5
912 This is the folder containing the alternate message.
913 .PP
914 This is set by
915 .B dist
916 and
917 .B repl
918 during edit sessions so you
919 can peruse other messages in the current folder besides the one being
920 distributed or replied to.  The environment variable
921 .B $mhfolder
922 is also set by
923 .BR show ,
924 .BR prev ,
925 and
926 .B next
927 for use by
928 .BR mhl .
929 .RE
930 .PP
931 .B $mhdist
932 .RS 5
933 .B dist
934 sets
935 .B $mhdist
936 to tell the
937 .I whatnowproc
938 that message re-distribution is occurring.
939 .RE
940 .PP
941 .B $mheditor
942 .RS 5
943 This is set by
944 .BR comp ,
945 .BR repl ,
946 .BR forw ,
947 and
948 .B dist
949 to tell the
950 .I whatnowproc
951 the user's choice of
952 editor (unless overridden by
953 .BR \-noedit ).
954 .RE
955 .PP
956 .B $mhuse
957 .RS 5
958 This may be set by
959 .BR comp .
960 .RE
961 .PP
962 .B $mhmessages
963 .RS 5
964 This is set by
965 .BR dist ,
966 .BR forw ,
967 and
968 .B repl
969 if annotations are to occur.
970 .RE
971 .PP
972 .B $mhannotate
973 .RS 5
974 This is set by
975 .BR dist ,
976 .BR forw ,
977 and
978 .B repl
979 if annotations are to occur.
980 .RE
981 .PP
982 .B $mhinplace
983 .RS 5
984 This is set by
985 .BR dist ,
986 .BR forw ,
987 and
988 .B repl
989 if annotations are to occur.
990 .RE
991
992 .SH FILES
993 .fc ^ ~
994 .nf
995 .ta \w'%etcdir%/ExtraBigFileName  'u
996 ^$HOME/\&.mh\(ruprofile~^The user profile
997 ^or $MH~^Rather than the standard profile
998 ^<mh\-dir>/context~^The user context
999 ^or $MHCONTEXT~^Rather than the standard context
1000 ^<folder>/\&.mh\(rusequences~^Public sequences for <folder>
1001 .fi
1002
1003 .SH "SEE ALSO"
1004 nmh(1), environ(5), mh-sequence(5)
1005
1006 .SH HISTORY
1007 The
1008 .I \&.mh\(ruprofile
1009 contains only static information, which
1010 .B nmh
1011 programs will
1012 .B NOT
1013 update.  Changes in context are made to the
1014 .I context
1015 file kept in the users
1016 .B nmh
1017 directory.
1018 This includes, but is not limited to: the \*(lqCurrent\-Folder\*(rq entry
1019 and all private sequence information.  Public sequence information is
1020 kept in each folder in the file determined by the \*(lqmh\-sequences\*(rq
1021 profile entry (default is
1022 .IR \&.mh\(rusequences ).
1023 .PP
1024 The
1025 .I \&.mh\(ruprofile
1026 may override the path of the
1027 .I context
1028 file, by specifying a \*(lqcontext\*(rq entry (this must be in
1029 lower-case).  If the entry is not absolute (does not start with a
1030 \*(lq/\*(rq), then it is interpreted relative to the user's
1031 .B nmh
1032 directory.  As a result, you can actually have more than one set of
1033 private sequences by using different context files.
1034
1035 .SH BUGS
1036 The shell quoting conventions are not available in the
1037 .IR \&.mh\(ruprofile .
1038 Each token is separated by whitespace.
1039 .PP
1040 There is some question as to what kind of arguments should be placed
1041 in the profile as options.  In order to provide a clear answer, recall
1042 command line semantics of all
1043 .B nmh
1044 programs: conflicting switches
1045 (e.g.
1046 .B \-header
1047 and
1048 .BR \-noheader )
1049 may occur more than one time on the
1050 command line, with the last switch taking effect.  Other arguments, such
1051 as message sequences, filenames and folders, are always remembered on
1052 the invocation line and are not superseded by following arguments of
1053 the same type.  Hence, it is safe to place only switches (and their
1054 arguments) in the profile.
1055 .PP
1056 If one finds that an
1057 .B nmh
1058 program is being invoked again and again
1059 with the same arguments, and those arguments aren't switches, then there
1060 are a few possible solutions to this problem.  The first is to create a
1061 (soft) link in your
1062 .I $HOME/bin
1063 directory to the
1064 .B nmh
1065 program
1066 of your choice.  By giving this link a different name, you can create
1067 a new entry in your profile and use an alternate set of defaults for
1068 the
1069 .B nmh
1070 command.  Similarly, you could create a small shell script
1071 which called the
1072 .B nmh
1073 program of your choice with an alternate set
1074 of invocation line switches (using links and an alternate profile entry
1075 is preferable to this solution).
1076 .PP
1077 Finally, the
1078 .B csh
1079 user could create an alias for the command of the form:
1080 .PP
1081 .RS 5
1082 alias cmd 'cmd arg1 arg2 ...'
1083 .RE
1084 .PP
1085 In this way, the user can avoid lengthy type-in to the shell, and still
1086 give
1087 .B nmh
1088 commands safely.  (Recall that some
1089 .B nmh
1090 commands
1091 invoke others, and that in all cases, the profile is read, meaning that
1092 aliases are disregarded beyond an initial command invocation)