Removed note from BUGS section of several man pages saying
[mmh] / man / mh-profile.man
1 .TH MH-PROFILE %manext5% "November 6, 2012" "%nmhversion%"
2 .\"
3 .\" %nmhwarning%
4 .\"
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 The shell quoting conventions are not available in the
35 .IR \&.mh\(ruprofile ;
36 each token is separated by whitespace.
37 .SS "Standard Profile Entries"
38 The possible profile components are exemplified below.  The only mandatory
39 entry is `Path:'.  The others are optional; some have default values if
40 they are not present.  In the notation used below, (profile, default)
41 indicates whether the information is kept in the user's
42 .B nmh
43 profile or
44 .B nmh
45 context, and indicates what the default value is.  Note that a profile
46 component can only appear once.  Multiple appearances with trigger a
47 warning that all appearances after the first are ignored.
48 .PP
49 .BR Path :
50 Mail
51 .RS 5
52 Locates
53 .B nmh
54 transactions in directory \*(lqMail\*(rq.  This is the
55 only mandatory profile entry.  (profile, no default)
56 .RE
57 .PP
58 .BR context :
59 context
60 .RS 5
61 Declares the location of the
62 .B nmh
63 context file.  This is overridden by the environment variable
64 .BR $MHCONTEXT .
65 See the
66 .B HISTORY
67 section below.
68 (profile, default: <nmh\-dir>/context)
69 .RE
70 .PP
71 .BR Current\-Folder :
72 inbox
73 .RS 5
74 Keeps track of the current open folder.
75 (context, default: folder specified by \*(lqInbox\*(rq)
76 .RE
77 .PP
78 .BR Inbox :
79 inbox
80 .RS 5
81 Defines the name of your default inbox.
82 (profile, default: inbox)
83 .RE
84 .PP
85 .BR Previous\-Sequence :
86 .I pseq
87 .RS 5
88 Names the sequence or sequences which should be defined as the `msgs' or
89 `msg' argument given to any
90 .B nmh
91 command.  If not present or empty,
92 no such sequences are defined.  Otherwise, for each name given, the
93 sequence is first zero'd and then each message is added to the sequence.
94 Read the
95 .IR mh\-sequence (5)
96 man page for the details about this sequence. (profile, no default)
97 .RE
98 .PP
99 .BR Sequence\-Negation :
100 not
101 .RS 5
102 Defines the string which, when prefixed to a sequence name, negates
103 that sequence.  Hence, \*(lqnotseen\*(rq means all those messages that
104 are not a member of the sequence \*(lqseen\*(rq.  Read the
105 .IR mh\-sequence (5)
106 man page for the details.  (profile, no default)
107 .RE
108 .PP
109 .BR Unseen\-Sequence :
110 unseen
111 .RS 5
112 Names the sequence or sequences which should be defined as those
113 messages which are unread.  The commands
114 .BR inc ,
115 .BR rcvstore ,
116 .BR mhshow ,
117 and
118 .B show
119 will add or remove messages from these
120 sequences when they are incorporated or read.  If not present or
121 empty, no such sequences are defined.  Otherwise, each message is
122 added to, or removed from, each sequence name given.  Read the
123 .IR mh\-sequence (5)
124 man page for the details about this sequence.
125 (profile, no default)
126 .RE
127 .PP
128 .BR mh\-sequences :
129 \&.mh\(rusequences
130 .RS 5
131 The name of the file in each folder which defines public sequences.
132 To disable the use of public sequences, leave the value portion of this
133 entry blank.  (profile, default: \&.mh\(rusequences)
134 .RE
135 .PP
136 .BI atr\- seq \- folder :
137 172\0178\-181\0212
138 .RS 5
139 Keeps track of the private sequence called \*(lqseq\*(rq in the specified
140 folder.  Private sequences are generally used for read\-only folders.
141 See the
142 .IR mh\-sequence (5)
143 man page for details about private sequences.
144 (context, no default)
145 .RE
146 .PP
147 .BR Editor :
148 /usr/bin/vi
149 .RS 5
150 Defines the editor to be used by the commands
151 .BR comp ,
152 .BR dist ,
153 .BR forw ,
154 and
155 .BR repl .
156 (profile, default: %default_editor%)
157 .RE
158 .PP
159 .BR automimeproc :
160 .RS 5
161 If defined and set to 1, then the
162 .B whatnow
163 program will automatically
164 invoke the buildmimeproc (discussed below) to process each message as a MIME
165 composition draft before it is sent.
166 (profile, no default)
167 .RE
168 .PP
169 .BR Msg\-Protect :
170 600
171 .RS 5
172 An octal number which defines the permission bits for new message files.
173 See
174 .IR chmod (1)
175 for an explanation of the octal number.  Note that some filesystems,
176 such as FAT32, do not support removal of read file permissions.
177 (profile, default: 0600)
178 .RE
179 .PP
180 .BR Folder\-Protect :
181 700
182 .RS 5
183 An octal number which defines the permission bits for new folder
184 directories.  See
185 .IR chmod (1)
186 for an explanation of the octal number.
187 (profile, default: 700)
188 .RE
189 .PP
190 .IR program :
191 .I default switches
192 .RS 5
193 Sets default switches to be used whenever the mh program
194 .I program
195 is invoked.  For example, one could override the \*(lqEditor:\*(rq profile
196 component when replying to messages by adding a component such as:
197 .PP
198 .RS 5
199 repl: \-editor /bin/ed
200 .RE
201 .PP
202 (profile, no defaults)
203 .RE
204 .PP
205 .IB lasteditor "-next:"
206 .I nexteditor
207 .RS 5
208 Names \*(lqnexteditor\*(rq to be the default editor after using
209 \*(lqlasteditor\*(rq.  This takes effect at \*(lqWhat now?\*(rq prompt
210 in
211 .BR comp ,
212 .BR dist ,
213 .BR forw ,
214 and
215 .BR repl .
216 After editing
217 the draft with \*(lqlasteditor\*(rq, the default editor is set to be
218 \*(lqnexteditor\*(rq.  If the user types \*(lqedit\*(rq without any
219 arguments to \*(lqWhat now?\*(rq, then \*(lqnexteditor\*(rq is used.
220 (profile, no default)
221 .RE
222 .PP
223 .BR Folder\-Stack :
224 .I folders
225 .RS 5
226 The contents of the folder-stack for the
227 .B folder
228 command.
229 (context, no default)
230 .RE
231 .PP
232 .BR Local\-Mailbox :
233 Your Username <user@some.host>
234 .RS 5
235 Tells the various MH tools what your local mailbox is.  If set, will be used
236 by the default component files by tools like
237 .B comp
238 and
239 .B repl
240 to construct your default \*(lqFrom\*(rq header.  The text used here will
241 be copied exactly to your From: header, so it should already be RFC-822
242 compliant.  If this is set, the
243 .B Signature
244 profile entry is NOT used, so it should include a signature as well.  (profile,
245 default: userid@local.hostname)
246 .RE
247 .PP
248 .BR Alternate\-Mailboxes :
249 mh@uci\-750a, bug-mh*
250 .RS 5
251 Tells
252 .B repl
253 and
254 .B scan
255 which addresses are really yours.
256 In this way,
257 .B repl
258 knows which addresses should be included in the
259 reply, and
260 scan
261 knows if the message really originated from you.
262 Addresses must be separated by a comma, and the hostnames listed should
263 be the \*(lqofficial\*(rq hostnames for the mailboxes you indicate, as
264 local nicknames for hosts are not replaced with their official site names.
265 For each address, if a host is not given, then that address on any host is
266 considered to be you.  In addition, an asterisk (`*') may appear at either
267 or both ends of the mailbox and host to indicate wild-card matching.
268 (profile, default: your user-id)
269 .RE
270 .PP
271 .BR Aliasfile :
272 aliases
273 .I other-alias
274 .RS 5
275 Indicates aliases files for
276 .BR ali ,
277 .BR whom ,
278 and
279 .BR send .
280 This may be used instead of the
281 .B \-alias
282 .I file
283 switch.  (profile, no default)
284 .RE
285 .PP
286 .BR Draft\-Folder :
287 drafts
288 .RS 5
289 Indicates a default draft folder for
290 .BR comp ,
291 .BR dist ,
292 .BR forw ,
293 .BR refile ,
294 and
295 .BR repl .
296 Read the
297 .IR mh\-draft (5)
298 man page for details. (profile, no default)
299 .RE
300 .PP
301 .BI digest\-issue\- list :
302 1
303 .RS 5
304 Tells
305 .B forw
306 the last issue of the last volume sent for the digest
307 .IR list .
308 (context, no default)
309 .RE
310 .PP
311 .BI digest\-volume\- list :
312 1
313 .RS 5
314 Tells
315 .B forw
316 the last volume sent for the digest
317 .IR list .
318 (context, no default)
319 .RE
320 .PP
321 .BR MailDrop :
322 \&.mail
323 .RS 5
324 Tells
325 .B inc
326 your maildrop, if different from the default.  This is
327 superseded by the environment variable
328 .BR $MAILDROP .
329 (profile, default: %mailspool%/$USER)
330 .RE
331 .PP
332 .BR Signature :
333 RAND MH System (agent: Marshall Rose)
334 .RS 5
335 Tells front-end programs such as
336 .BR comp,
337 .BR forw,
338 and
339 .B repl
340 your mail signature.  This is superseded by the
341 environment variable
342 .BR $SIGNATURE .
343 If
344 .B $SIGNATURE
345 is not set and this profile entry is not present, the \*(lqgcos\*(rq field of
346 the \fI/etc/passwd\fP file will be used.
347 Your signature will be added to the address
348 .B send
349 puts in the \*(lqFrom:\*(rq header; do not include an address in the
350 signature text.  The \*(lqLocal\-Mailbox\*(rq profile component
351 supersedes all of this.  (profile, no default)
352 .RE
353 .SS "Process Profile Entries"
354 The following profile elements are used whenever an
355 .B nmh
356 program invokes some other program such as
357 .BR more .
358 The
359 .I \&.mh\(ruprofile
360 can be used to select alternate programs if the
361 user wishes.  The default values are given in the examples.
362 .RE
363 .PP
364 .BR buildmimeproc :
365 %bindir%/mhbuild
366 .RS 5
367 This is the program used by
368 .B whatnow
369 to process drafts which are MIME composition files.
370 .RE
371 .PP
372 .BR fileproc :
373 %bindir%/refile
374 .RS 5
375 This program is used to refile or link a message to another folder.
376 It is used by
377 .B send
378 to file a copy of a message into a folder given
379 by a \*(lqFcc:\*(rq field.  It is used by the draft folder facility in
380 .BR comp ,
381 .BR dist ,
382 .BR forw ,
383 and
384 .B repl
385 to refile a draft
386 message into another folder.  It is used to refile a draft message in
387 response to the
388 .B refile
389 directive at the \*(lqWhat now?\*(rq prompt.
390 .RE
391 .PP
392 .BR formatproc :
393 .RS 5
394 Program called by
395 .B mhl
396 to filter a component when it is tagged with the \*(lqformat\*(rq variable
397 in the mhl filter.  See
398 .IR mhl (5)
399 for more information.
400 .RE
401 .PP
402 .BR incproc :
403 %bindir%/inc
404 .RS 5
405 Program called by
406 .B mhmail
407 to incorporate new mail when it
408 is invoked with no arguments.
409 .RE
410 .PP
411 .BR installproc :
412 %libdir%/install\-mh
413 .RS 5
414 This program is called to initialize the environment for
415 new users of
416 .BR nmh .
417 .RE
418 .PP
419 .BR lproc :
420 %default_pager%
421 .RS 5
422 This program is used to list the contents of a message in response
423 to the
424 .B list
425 directive at the \*(lqWhat now?\*(rq prompt.  It is
426 also used by the draft folder facility in
427 .BR comp ,
428 .BR dist ,
429 .BR forw ,
430 and
431 .B repl
432 to display the draft message.
433 (Note that
434 .B $PAGER
435 supersedes the default built-in pager command.)
436 .RE
437 .PP
438 .BR mailproc :
439 %bindir%/mhmail
440 .RS 5
441 This is the program used to automatically mail various messages
442 and notifications.  It is used by
443 .B conflict
444 when using the
445 .B \-mail
446 option.  It is used by
447 .B send
448 to post failure notices.
449 It is used to retrieve an external-body with access-type `mail-server'
450 (such as when storing the body with
451 .BR mhstore ).
452 .RE
453 .PP
454 .BR mhlproc :
455 %libdir%/mhl
456 .RS 5
457 This is the program used to filter messages in various ways.  It
458 is used by
459 .B mhshow
460 to filter and display the message headers
461 of MIME messages.  When the
462 .B \-format
463 or
464 .B \-filter
465 option is used
466 by
467 .B forw
468 or
469 .BR repl ,
470 the
471 .I mhlproc
472 is used to filter the
473 message that you are forwarding, or to which you are replying.
474 When the
475 .B \-filter
476 option is given to
477 .BR send ,
478 the
479 .I mhlproc
480 is used to filter the copy of the message
481 that is sent to \*(lqBcc:\*(rq recipients.
482 .RE
483 .PP
484 .BR moreproc :
485 %default_pager%
486 .RS 5
487 This is the program used by
488 .B mhl
489 to page the
490 .B mhl
491 formatted message when displaying to a terminal.  It is also the default
492 program used by
493 .B mhshow
494 to display message bodies (or message parts) of type text/plain.
495 (Note that
496 .B $PAGER
497 supersedes the default built-in pager command.)
498 .RE
499 .PP
500 .BR mshproc :
501 %bindir%/msh
502 .RS 5
503 Currently not used.
504 .RE
505 .PP
506 .BR packproc :
507 %bindir%/packf
508 .RS 5
509 Currently not used.
510 .RE
511 .PP
512 .BR postproc :
513 %libdir%/post
514 .RS 5
515 This is the program used by
516 .BR send ,
517 .BR mhmail ,
518 .BR rcvdist ,
519 and
520 .B viamail
521 (used by the
522 .B sendfiles
523 shell script) to
524 post a message to the mail transport system.  It is also called by
525 .B whom
526 (called with the switches
527 .B \-whom
528 and
529 .BR \-library )
530 to do address verification.
531 .RE
532 .PP
533 .BR rmmproc :
534 none
535 .RS 5
536 This is the program used by
537 .B rmm
538 and
539 .B refile
540 to delete a message from a folder.
541 .RE
542 .PP
543 .BR sendproc :
544 %bindir%/send
545 .RS 5
546 This is the program to use by
547 .B whatnow
548 to actually send the message
549 .RE
550 .PP
551 .BR showmimeproc :
552 %bindir%/mhshow
553 .RS 5
554 This is the program used by
555 .B show
556 to process and display non-text (MIME) messages.
557 .RE
558 .PP
559 .BR showproc :
560 %libdir%/mhl
561 .RS 5
562 This is the program used by
563 .B show
564 to filter and display text (non-MIME) messages.
565 .RE
566 .PP
567 .BR whatnowproc :
568 %bindir%/whatnow
569 .RS 5
570 This is the program invoked by
571 .BR comp ,
572 .BR forw ,
573 .BR dist ,
574 and
575 .B repl
576 to query about the disposition of a composed draft message.
577 .RE
578 .PP
579 .BR whomproc :
580 %bindir%/whom
581 .RS 5
582 This is the program used by
583 .B whatnow
584 to determine to whom a message would be sent.
585 .RE
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 .SH FILES
968 .fc ^ ~
969 .nf
970 .ta \w'%etcdir%/ExtraBigFileName  'u
971 ^$HOME/\&.mh\(ruprofile~^The user profile
972 ^or $MH~^Rather than the standard profile
973 ^<mh\-dir>/context~^The user context
974 ^or $MHCONTEXT~^Rather than the standard context
975 ^<folder>/\&.mh\(rusequences~^Public sequences for <folder>
976 .fi
977 .SH "SEE ALSO"
978 .IR environ (5),
979 .IR mh-sequence (5),
980 .IR nmh (7)
981 .SH HISTORY
982 The
983 .I \&.mh\(ruprofile
984 contains only static information, which
985 .B nmh
986 programs will
987 .B NOT
988 update.  Changes in context are made to the
989 .I context
990 file kept in the users
991 .B nmh
992 directory.
993 This includes, but is not limited to: the \*(lqCurrent\-Folder\*(rq entry
994 and all private sequence information.  Public sequence information is
995 kept in each folder in the file determined by the \*(lqmh\-sequences\*(rq
996 profile entry (default is
997 .IR \&.mh\(rusequences ).
998 .PP
999 The
1000 .I \&.mh\(ruprofile
1001 may override the path of the
1002 .I context
1003 file, by specifying a \*(lqcontext\*(rq entry (this must be in
1004 lower-case).  If the entry is not absolute (does not start with a
1005 \*(lq/\*(rq), then it is interpreted relative to the user's
1006 .B nmh
1007 directory.  As a result, you can actually have more than one set of
1008 private sequences by using different context files.
1009 .SH BUGS
1010 There is some question as to what kind of arguments should be placed
1011 in the profile as options.  In order to provide a clear answer, recall
1012 command line semantics of all
1013 .B nmh
1014 programs: conflicting switches
1015 (e.g.
1016 .B \-header
1017 and
1018 .BR \-noheader )
1019 may occur more than one time on the
1020 command line, with the last switch taking effect.  Other arguments, such
1021 as message sequences, filenames and folders, are always remembered on
1022 the invocation line and are not superseded by following arguments of
1023 the same type.  Hence, it is safe to place only switches (and their
1024 arguments) in the profile.
1025 .PP
1026 If one finds that an
1027 .B nmh
1028 program is being invoked again and again
1029 with the same arguments, and those arguments aren't switches, then there
1030 are a few possible solutions to this problem.  The first is to create a
1031 (soft) link in your
1032 .I $HOME/bin
1033 directory to the
1034 .B nmh
1035 program
1036 of your choice.  By giving this link a different name, you can create
1037 a new entry in your profile and use an alternate set of defaults for
1038 the
1039 .B nmh
1040 command.  Similarly, you could create a small shell script
1041 which called the
1042 .B nmh
1043 program of your choice with an alternate set
1044 of invocation line switches (using links and an alternate profile entry
1045 is preferable to this solution).
1046 .PP
1047 Finally, the
1048 .B csh
1049 user could create an alias for the command of the form:
1050 .PP
1051 .RS 5
1052 alias cmd 'cmd arg1 arg2 ...'
1053 .RE
1054 .PP
1055 In this way, the user can avoid lengthy type-in to the shell, and still
1056 give
1057 .B nmh
1058 commands safely.  (Recall that some
1059 .B nmh
1060 commands
1061 invoke others, and that in all cases, the profile is read, meaning that
1062 aliases are disregarded beyond an initial command invocation)