Removed the following environment variables, deprecated in nmh 1.5:
[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 $MAILDROP
712 .RS 5
713 This variable tells
714 .B inc
715 the default maildrop. This supersedes the \*(lqMailDrop\*(rq profile entry.
716 .RE
717 .PP
718 .B $MAILHOST
719 .RS 5
720 This variable tells
721 .B inc
722 the POP host to query for mail to incorporate.  See the
723 inc(1) man page for more information.
724 .RE
725 .PP
726 .B $USERNAME_EXTENSION
727 .RS 5
728 This variable is for use with username_extension masquerading.  See the
729 mh-tailor(5) man page.
730 .RE
731 .PP
732 .B $SIGNATURE
733 .RS 5
734 This variable tells
735 .B send
736 and
737 .B post
738 your mail signature. This supersedes the \*(lqSignature\*(rq profile entry,
739 and is not used when the \*(lqLocal\-Mailbox\*(rq profile component is set.
740 .RE
741 .PP
742 .B $USER
743 .RS 5
744 This variable tells
745 .B repl
746 your user name and
747 .B inc
748 your default maildrop:  see the \*(lqMailDrop\*(rq profile entry.
749 .RE
750 .PP
751 .B $HOME
752 .RS 5
753 This variable tells all
754 .B nmh
755 programs your home directory
756 .RE
757 .PP
758 .B $TERM
759 .RS 5
760 This variable tells
761 .B nmh
762 your terminal type.
763 .PP
764 The environment variable
765 .B $TERMCAP
766 is also consulted.  In particular,
767 these tell
768 .B scan
769 and
770 .B mhl
771 how to clear your terminal, and how
772 many columns wide your terminal is.  They also tell
773 .B mhl
774 how many
775 lines long your terminal screen is.
776 .RE
777 .PP
778 .B $MHMTSCONF
779 .RS 5
780 If this variable is set to a non-null value, it specifies the
781 name of the mail transport configuration file to use by
782 .BR post ,
783 .BR inc ,
784 and other programs that interact with the mail transport system,
785 instead of the default.  See mh-tailor(5).
786 .RE
787 .PP
788 .B $MHMTSUSERCONF
789 .RS 5
790 If this variable is set to a non-null value, it specifies the name of
791 a mail transport configuration file to be read in addition to the
792 default.  See mh-tailor(5).
793 .RE
794 .PP
795 .B $MHTMPDIR
796 .B $TMPDIR
797 .B $TMP
798 .RS 5
799 These variables are searched, in order, for the directory in which to
800 create some temporary files.
801 .RE
802 .PP
803 .B $MHLDEBUG
804 .RS 5
805 If this variable is set to a non-null value,
806 .B mhl
807 will emit debugging information.
808 .RE
809 .PP
810 .B $MHPDEBUG
811 .RS 5
812 If this variable is set to a non-null value,
813 .B pick
814 will emit a representation of the search pattern.
815 .RE
816 .PP
817 .B $MHWDEBUG
818 .RS 5
819 If this variable is set to a non-null value,
820 .B nmh
821 commands that use the
822 .BR Alternate\-Mailboxes
823 profile entry will display debugging information
824 about the values in that entry.
825 .RE
826 .PP
827 .B $editalt
828 .RS 5
829 This is the alternate message.
830 .PP
831 This is set by
832 .B dist
833 and
834 .B repl
835 during edit sessions so you can
836 peruse the message being distributed or replied to.  The message is also
837 available through a link called \*(lq@\*(rq in the current directory if
838 your current working directory and the folder the message lives in are
839 on the same UNIX filesystem.
840 .RE
841 .PP
842 .B $mhdraft
843 .RS 5
844 This is the path to the working draft.
845 .PP
846 This is set by
847 .BR comp ,
848 .BR dist ,
849 .BR forw ,
850 and
851 .B repl
852 to tell the
853 .I whatnowproc
854 which file to ask \*(lqWhat now?\*(rq
855 questions about.
856 .RE
857 .PP
858 .B $mhaltmsg
859 .RS 5
860 .B dist
861 and
862 .B repl
863 set
864 .B $mhaltmsg
865 to tell the
866 .I whatnowproc
867 about an alternate message associated with the
868 draft (the message being distributed or replied to).
869 .RE
870 .PP
871 .B $mhfolder
872 .RS 5
873 This is the folder containing the alternate message.
874 .PP
875 This is set by
876 .B dist
877 and
878 .B repl
879 during edit sessions so you
880 can peruse other messages in the current folder besides the one being
881 distributed or replied to.  The environment variable
882 .B $mhfolder
883 is also set by
884 .BR show ,
885 .BR prev ,
886 and
887 .B next
888 for use by
889 .BR mhl .
890 .RE
891 .PP
892 .B $mhdist
893 .RS 5
894 .B dist
895 sets
896 .B $mhdist
897 to tell the
898 .I whatnowproc
899 that message re-distribution is occurring.
900 .RE
901 .PP
902 .B $mheditor
903 .RS 5
904 This is set by
905 .BR comp ,
906 .BR repl ,
907 .BR forw ,
908 and
909 .B dist
910 to tell the
911 .I whatnowproc
912 the user's choice of
913 editor (unless overridden by
914 .BR \-noedit ).
915 .RE
916 .PP
917 .B $mhuse
918 .RS 5
919 This may be set by
920 .BR comp .
921 .RE
922 .PP
923 .B $mhmessages
924 .RS 5
925 This is set by
926 .BR dist ,
927 .BR forw ,
928 and
929 .B repl
930 if annotations are to occur.
931 .RE
932 .PP
933 .B $mhannotate
934 .RS 5
935 This is set by
936 .BR dist ,
937 .BR forw ,
938 and
939 .B repl
940 if annotations are to occur.
941 .RE
942 .PP
943 .B $mhinplace
944 .RS 5
945 This is set by
946 .BR dist ,
947 .BR forw ,
948 and
949 .B repl
950 if annotations are to occur.
951 .RE
952
953 .SH FILES
954 .fc ^ ~
955 .nf
956 .ta \w'%etcdir%/ExtraBigFileName  'u
957 ^$HOME/\&.mh\(ruprofile~^The user profile
958 ^or $MH~^Rather than the standard profile
959 ^<mh\-dir>/context~^The user context
960 ^or $MHCONTEXT~^Rather than the standard context
961 ^<folder>/\&.mh\(rusequences~^Public sequences for <folder>
962 .fi
963
964 .SH "SEE ALSO"
965 nmh(1), environ(5), mh-sequence(5)
966
967 .SH HISTORY
968 The
969 .I \&.mh\(ruprofile
970 contains only static information, which
971 .B nmh
972 programs will
973 .B NOT
974 update.  Changes in context are made to the
975 .I context
976 file kept in the users
977 .B nmh
978 directory.
979 This includes, but is not limited to: the \*(lqCurrent\-Folder\*(rq entry
980 and all private sequence information.  Public sequence information is
981 kept in each folder in the file determined by the \*(lqmh\-sequences\*(rq
982 profile entry (default is
983 .IR \&.mh\(rusequences ).
984 .PP
985 The
986 .I \&.mh\(ruprofile
987 may override the path of the
988 .I context
989 file, by specifying a \*(lqcontext\*(rq entry (this must be in
990 lower-case).  If the entry is not absolute (does not start with a
991 \*(lq/\*(rq), then it is interpreted relative to the user's
992 .B nmh
993 directory.  As a result, you can actually have more than one set of
994 private sequences by using different context files.
995
996 .SH BUGS
997 The shell quoting conventions are not available in the
998 .IR \&.mh\(ruprofile .
999 Each token is separated by whitespace.
1000 .PP
1001 There is some question as to what kind of arguments should be placed
1002 in the profile as options.  In order to provide a clear answer, recall
1003 command line semantics of all
1004 .B nmh
1005 programs: conflicting switches
1006 (e.g.
1007 .B \-header
1008 and
1009 .BR \-noheader )
1010 may occur more than one time on the
1011 command line, with the last switch taking effect.  Other arguments, such
1012 as message sequences, filenames and folders, are always remembered on
1013 the invocation line and are not superseded by following arguments of
1014 the same type.  Hence, it is safe to place only switches (and their
1015 arguments) in the profile.
1016 .PP
1017 If one finds that an
1018 .B nmh
1019 program is being invoked again and again
1020 with the same arguments, and those arguments aren't switches, then there
1021 are a few possible solutions to this problem.  The first is to create a
1022 (soft) link in your
1023 .I $HOME/bin
1024 directory to the
1025 .B nmh
1026 program
1027 of your choice.  By giving this link a different name, you can create
1028 a new entry in your profile and use an alternate set of defaults for
1029 the
1030 .B nmh
1031 command.  Similarly, you could create a small shell script
1032 which called the
1033 .B nmh
1034 program of your choice with an alternate set
1035 of invocation line switches (using links and an alternate profile entry
1036 is preferable to this solution).
1037 .PP
1038 Finally, the
1039 .B csh
1040 user could create an alias for the command of the form:
1041 .PP
1042 .RS 5
1043 alias cmd 'cmd arg1 arg2 ...'
1044 .RE
1045 .PP
1046 In this way, the user can avoid lengthy type-in to the shell, and still
1047 give
1048 .B nmh
1049 commands safely.  (Recall that some
1050 .B nmh
1051 commands
1052 invoke others, and that in all cases, the profile is read, meaning that
1053 aliases are disregarded beyond an initial command invocation)