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