Removed nmh-from condition from rcvdistcomps.
[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 .RE
433 .PP
434 .BR mailproc :
435 %bindir%/mhmail
436 .RS 5
437 This is the program used to automatically mail various messages
438 and notifications.  It is used by
439 .B conflict
440 when using the
441 .B \-mail
442 option.  It is used by
443 .B send
444 to post failure notices.
445 It is used to retrieve an external-body with access-type `mail-server'
446 (such as when storing the body with
447 .BR mhstore ).
448 .RE
449 .PP
450 .BR mhlproc :
451 %libdir%/mhl
452 .RS 5
453 This is the program used to filter messages in various ways.  It
454 is used by
455 .B mhshow
456 to filter and display the message headers
457 of MIME messages.  When the
458 .B \-format
459 or
460 .B \-filter
461 option is used
462 by
463 .B forw
464 or
465 .BR repl ,
466 the
467 .I mhlproc
468 is used to filter the
469 message that you are forwarding, or to which you are replying.
470 When the
471 .B \-filter
472 option is given to
473 .BR send ,
474 the
475 .I mhlproc
476 is used to filter the copy of the message
477 that is sent to \*(lqBcc:\*(rq recipients.
478 .RE
479 .PP
480 .BR moreproc :
481 %default_pager%
482 .RS 5
483 This is the program used by
484 .B mhl
485 to page the
486 .B mhl
487 formatted message when displaying to a terminal.  It is also the default
488 program used by
489 .B mhshow
490 to display message bodies (or message parts) of type text/plain.
491 .RE
492 .PP
493 .BR mshproc :
494 %bindir%/msh
495 .RS 5
496 Currently not used.
497 .RE
498 .PP
499 .BR packproc :
500 %bindir%/packf
501 .RS 5
502 Currently not used.
503 .RE
504 .PP
505 .BR postproc :
506 %libdir%/post
507 .RS 5
508 This is the program used by
509 .BR send ,
510 .BR mhmail ,
511 .BR rcvdist ,
512 and
513 .B viamail
514 (used by the
515 .B sendfiles
516 shell script) to
517 post a message to the mail transport system.  It is also called by
518 .B whom
519 (called with the switches
520 .B \-whom
521 and
522 .BR \-library )
523 to do address verification.
524 .RE
525 .PP
526 .BR rmmproc :
527 none
528 .RS 5
529 This is the program used by
530 .B rmm
531 and
532 .B refile
533 to delete a message from a folder.
534 .RE
535 .PP
536 .BR sendproc :
537 %bindir%/send
538 .RS 5
539 This is the program to use by
540 .B whatnow
541 to actually send the message
542 .RE
543 .PP
544 .BR showmimeproc :
545 %bindir%/mhshow
546 .RS 5
547 This is the program used by
548 .B show
549 to process and display non-text (MIME) messages.
550 .RE
551 .PP
552 .BR showproc :
553 %libdir%/mhl
554 .RS 5
555 This is the program used by
556 .B show
557 to filter and display text (non-MIME) messages.
558 .RE
559 .PP
560 .BR whatnowproc :
561 %bindir%/whatnow
562 .RS 5
563 This is the program invoked by
564 .BR comp ,
565 .BR forw ,
566 .BR dist ,
567 and
568 .B repl
569 to query about the disposition of a composed draft message.
570 .RE
571 .PP
572 .BR whomproc :
573 %bindir%/whom
574 .RS 5
575 This is the program used by
576 .B whatnow
577 to determine to whom a message would be sent.
578 .RE
579
580 .SS "Environment Variables"
581 The operation of
582 .B nmh
583 and its commands it also controlled by the
584 presence of certain environment variables.
585 .PP
586 Many of these environment variables are used internally by the
587 \*(lqWhat now?\*(rq interface.  It's amazing all the information
588 that has to get passed via environment variables to make the
589 \*(lqWhat now?\*(rq interface look squeaky clean to the
590 .B nmh
591 user, isn't it?  The reason for all this is that the
592 .B nmh
593 user
594 can select
595 .B any
596 program as the
597 .IR whatnowproc ,
598 including
599 one of the standard shells.  As a result, it's not possible to pass
600 information via an argument list. The convention is that environment
601 variables whose names are all upper-case are user-settable; those
602 whose names are lower-case only are used internally by nmh and should
603 not generally be set by the user.
604 .PP
605 .B $MH
606 .RS 5
607 With this environment variable, you can specify a profile
608 other than
609 .I \&.mh\(ruprofile
610 to be read by the
611 .B nmh
612 programs
613 that you invoke.  If the value of
614 .B $MH
615 is not absolute, (i.e., does
616 not begin with a \*(lq/\*(rq), it will be presumed to start from the current
617 working directory.  This is one of the very few exceptions in
618 .B nmh
619 where non-absolute pathnames are not considered relative to the user's
620 .B nmh
621 directory.
622 .RE
623 .PP
624 .B $MHCONTEXT
625 .RS 5
626 With this environment variable, you can specify a
627 context other than the normal context file (as specified in
628 the
629 .B nmh
630 profile).  As always, unless the value of
631 .B $MHCONTEXT
632 is absolute, it will be presumed to start from your
633 .B nmh
634 directory.
635 .RE
636 .PP
637 .B $MHBUILD
638 .RS 5
639 With this environment variable, you can specify an
640 additional user profile (file) to be read by
641 .BR mhbuild ,
642 in addition to the mhn.defaults profile.
643 .RE
644 .PP
645 .B $MHN
646 .RS 5
647 With this environment variable, you can specify an
648 additional user profile (file) to be read by
649 .BR mhn ,
650 in addition to the mhn.defaults profile.
651 .B mhn
652 is deprecated, so this support for this variable will
653 be removed from a future nmh release.
654 .RE
655 .PP
656 .B $MHSHOW
657 .RS 5
658 With this environment variable, you can specify an
659 additional user profile (file) to be read by
660 .BR mhshow ,
661 in addition to the mhn.defaults profile.
662 .RE
663 .PP
664 .B $MHSTORE
665 .RS 5
666 With this environment variable, you can specify an
667 additional user profile (file) to be read by
668 .BR mhstore ,
669 in addition to the mhn.defaults profile.
670 .RE
671 .PP
672 .B $MM_CHARSET
673 .RS 5
674 With this environment variable, you can specify
675 the native character set you are using.  You must be able to display
676 this character set on your terminal.
677 .PP
678 This variable is checked to see if a RFC-2047 header field should be
679 decoded (in
680 .BR inc ,
681 .BR scan ,
682 .BR mhl ).
683 This variable is
684 checked by
685 .B show
686 to see if the
687 .I showproc
688 or
689 .I showmimeproc
690 should
691 be called, since showmimeproc will be called if a text message uses
692 a character set that doesn't match
693 .BR $MM_CHARSET .
694 This variable is
695 checked by
696 .B mhshow
697 for matches against the charset parameter
698 of text contents to decide it the text content can be displayed
699 without modifications to your terminal.  This variable is checked by
700 .B mhbuild
701 to decide what character set to specify in the charset
702 parameter of text contents containing 8\-bit characters.
703 .PP
704 When decoding text in such an alternate character set,
705 .B nmh
706 must be able to determine which characters are alphabetic, which
707 are control characters, etc.  For many operating systems, this
708 will require enabling the support for locales (such as setting
709 the environment variable
710 .B $LC_CTYPE
711 to iso_8859_1).
712 .RE
713 .PP
714 .B $MAILDROP
715 .RS 5
716 This variable tells
717 .B inc
718 the default maildrop. This supersedes the \*(lqMailDrop\*(rq profile entry.
719 .RE
720 .PP
721 .B $MAILHOST
722 .RS 5
723 This variable tells
724 .B inc
725 the POP host to query for mail to incorporate.  See the
726 inc(1) man page for more information.
727 .RE
728 .PP
729 .B $USERNAME_EXTENSION
730 .RS 5
731 This variable is for use with username_extension masquerading.  See the
732 mh-tailor(5) man page.
733 .RE
734 .PP
735 .B $SIGNATURE
736 .RS 5
737 This variable tells
738 .B send
739 and
740 .B post
741 your mail signature. This supersedes the \*(lqSignature\*(rq profile entry,
742 and is not used when the \*(lqLocal\-Mailbox\*(rq profile component is set.
743 .RE
744 .PP
745 .B $USER
746 .RS 5
747 This variable tells
748 .B repl
749 your user name and
750 .B inc
751 your default maildrop:  see the \*(lqMailDrop\*(rq profile entry.
752 .RE
753 .PP
754 .B $HOME
755 .RS 5
756 This variable tells all
757 .B nmh
758 programs your home directory
759 .RE
760 .PP
761 .B $TERM
762 .RS 5
763 This variable tells
764 .B nmh
765 your terminal type.
766 .PP
767 The environment variable
768 .B $TERMCAP
769 is also consulted.  In particular,
770 these tell
771 .B scan
772 and
773 .B mhl
774 how to clear your terminal, and how
775 many columns wide your terminal is.  They also tell
776 .B mhl
777 how many
778 lines long your terminal screen is.
779 .RE
780 .PP
781 .B $MHMTSCONF
782 .RS 5
783 If this variable is set to a non-null value, it specifies the
784 name of the mail transport configuration file to use by
785 .BR post ,
786 .BR inc ,
787 and other programs that interact with the mail transport system,
788 instead of the default.  See mh-tailor(5).
789 .RE
790 .PP
791 .B $MHMTSUSERCONF
792 .RS 5
793 If this variable is set to a non-null value, it specifies the name of
794 a mail transport configuration file to be read in addition to the
795 default.  See mh-tailor(5).
796 .RE
797 .PP
798 .B $MHTMPDIR
799 .B $TMPDIR
800 .B $TMP
801 .RS 5
802 These variables are searched, in order, for the directory in which to
803 create some temporary files.
804 .RE
805 .PP
806 .B $MHLDEBUG
807 .RS 5
808 If this variable is set to a non-null value,
809 .B mhl
810 will emit debugging information.
811 .RE
812 .PP
813 .B $MHPDEBUG
814 .RS 5
815 If this variable is set to a non-null value,
816 .B pick
817 will emit a representation of the search pattern.
818 .RE
819 .PP
820 .B $MHWDEBUG
821 .RS 5
822 If this variable is set to a non-null value,
823 .B nmh
824 commands that use the
825 .BR Alternate\-Mailboxes
826 profile entry will display debugging information
827 about the values in that entry.
828 .RE
829 .PP
830 .B $editalt
831 .RS 5
832 This is the alternate message.
833 .PP
834 This is set by
835 .B dist
836 and
837 .B repl
838 during edit sessions so you can
839 peruse the message being distributed or replied to.  The message is also
840 available through a link called \*(lq@\*(rq in the current directory if
841 your current working directory and the folder the message lives in are
842 on the same UNIX filesystem.
843 .RE
844 .PP
845 .B $mhdraft
846 .RS 5
847 This is the path to the working draft.
848 .PP
849 This is set by
850 .BR comp ,
851 .BR dist ,
852 .BR forw ,
853 and
854 .B repl
855 to tell the
856 .I whatnowproc
857 which file to ask \*(lqWhat now?\*(rq
858 questions about.
859 .RE
860 .PP
861 .B $mhaltmsg
862 .RS 5
863 .B dist
864 and
865 .B repl
866 set
867 .B $mhaltmsg
868 to tell the
869 .I whatnowproc
870 about an alternate message associated with the
871 draft (the message being distributed or replied to).
872 .RE
873 .PP
874 .B $mhfolder
875 .RS 5
876 This is the folder containing the alternate message.
877 .PP
878 This is set by
879 .B dist
880 and
881 .B repl
882 during edit sessions so you
883 can peruse other messages in the current folder besides the one being
884 distributed or replied to.  The environment variable
885 .B $mhfolder
886 is also set by
887 .BR show ,
888 .BR prev ,
889 and
890 .B next
891 for use by
892 .BR mhl .
893 .RE
894 .PP
895 .B $mhdist
896 .RS 5
897 .B dist
898 sets
899 .B $mhdist
900 to tell the
901 .I whatnowproc
902 that message re-distribution is occurring.
903 .RE
904 .PP
905 .B $mheditor
906 .RS 5
907 This is set by
908 .BR comp ,
909 .BR repl ,
910 .BR forw ,
911 and
912 .B dist
913 to tell the
914 .I whatnowproc
915 the user's choice of
916 editor (unless overridden by
917 .BR \-noedit ).
918 .RE
919 .PP
920 .B $mhuse
921 .RS 5
922 This may be set by
923 .BR comp .
924 .RE
925 .PP
926 .B $mhmessages
927 .RS 5
928 This is set by
929 .BR dist ,
930 .BR forw ,
931 and
932 .B repl
933 if annotations are to occur.
934 .RE
935 .PP
936 .B $mhannotate
937 .RS 5
938 This is set by
939 .BR dist ,
940 .BR forw ,
941 and
942 .B repl
943 if annotations are to occur.
944 .RE
945 .PP
946 .B $mhinplace
947 .RS 5
948 This is set by
949 .BR dist ,
950 .BR forw ,
951 and
952 .B repl
953 if annotations are to occur.
954 .RE
955
956 .SH FILES
957 .fc ^ ~
958 .nf
959 .ta \w'%etcdir%/ExtraBigFileName  'u
960 ^$HOME/\&.mh\(ruprofile~^The user profile
961 ^or $MH~^Rather than the standard profile
962 ^<mh\-dir>/context~^The user context
963 ^or $MHCONTEXT~^Rather than the standard context
964 ^<folder>/\&.mh\(rusequences~^Public sequences for <folder>
965 .fi
966
967 .SH "SEE ALSO"
968 nmh(7), environ(5), mh-sequence(5)
969
970 .SH HISTORY
971 The
972 .I \&.mh\(ruprofile
973 contains only static information, which
974 .B nmh
975 programs will
976 .B NOT
977 update.  Changes in context are made to the
978 .I context
979 file kept in the users
980 .B nmh
981 directory.
982 This includes, but is not limited to: the \*(lqCurrent\-Folder\*(rq entry
983 and all private sequence information.  Public sequence information is
984 kept in each folder in the file determined by the \*(lqmh\-sequences\*(rq
985 profile entry (default is
986 .IR \&.mh\(rusequences ).
987 .PP
988 The
989 .I \&.mh\(ruprofile
990 may override the path of the
991 .I context
992 file, by specifying a \*(lqcontext\*(rq entry (this must be in
993 lower-case).  If the entry is not absolute (does not start with a
994 \*(lq/\*(rq), then it is interpreted relative to the user's
995 .B nmh
996 directory.  As a result, you can actually have more than one set of
997 private sequences by using different context files.
998
999 .SH BUGS
1000 The shell quoting conventions are not available in the
1001 .IR \&.mh\(ruprofile .
1002 Each token is separated by whitespace.
1003 .PP
1004 There is some question as to what kind of arguments should be placed
1005 in the profile as options.  In order to provide a clear answer, recall
1006 command line semantics of all
1007 .B nmh
1008 programs: conflicting switches
1009 (e.g.
1010 .B \-header
1011 and
1012 .BR \-noheader )
1013 may occur more than one time on the
1014 command line, with the last switch taking effect.  Other arguments, such
1015 as message sequences, filenames and folders, are always remembered on
1016 the invocation line and are not superseded by following arguments of
1017 the same type.  Hence, it is safe to place only switches (and their
1018 arguments) in the profile.
1019 .PP
1020 If one finds that an
1021 .B nmh
1022 program is being invoked again and again
1023 with the same arguments, and those arguments aren't switches, then there
1024 are a few possible solutions to this problem.  The first is to create a
1025 (soft) link in your
1026 .I $HOME/bin
1027 directory to the
1028 .B nmh
1029 program
1030 of your choice.  By giving this link a different name, you can create
1031 a new entry in your profile and use an alternate set of defaults for
1032 the
1033 .B nmh
1034 command.  Similarly, you could create a small shell script
1035 which called the
1036 .B nmh
1037 program of your choice with an alternate set
1038 of invocation line switches (using links and an alternate profile entry
1039 is preferable to this solution).
1040 .PP
1041 Finally, the
1042 .B csh
1043 user could create an alias for the command of the form:
1044 .PP
1045 .RS 5
1046 alias cmd 'cmd arg1 arg2 ...'
1047 .RE
1048 .PP
1049 In this way, the user can avoid lengthy type-in to the shell, and still
1050 give
1051 .B nmh
1052 commands safely.  (Recall that some
1053 .B nmh
1054 commands
1055 invoke others, and that in all cases, the profile is read, meaning that
1056 aliases are disregarded beyond an initial command invocation)