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