79615e56e310f2cdcb7df9084a518cc5db73c766
[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 .B $MH
599 .RS 5
600 With this environment variable, you can specify a profile
601 other than
602 .I \&.mh\(ruprofile
603 to be read by the
604 .B nmh
605 programs
606 that you invoke.  If the value of
607 .B $MH
608 is not absolute, (i.e., does
609 not begin with a \*(lq/\*(rq), it will be presumed to start from the current
610 working directory.  This is one of the very few exceptions in
611 .B nmh
612 where non-absolute pathnames are not considered relative to the user's
613 .B nmh
614 directory.
615 .RE
616 .PP
617 .B $MHCONTEXT
618 .RS 5
619 With this environment variable, you can specify a
620 context other than the normal context file (as specified in
621 the
622 .B nmh
623 profile).  As always, unless the value of
624 .B $MHCONTEXT
625 is absolute, it will be presumed to start from your
626 .B nmh
627 directory.
628 .RE
629 .PP
630 .B $MHBUILD
631 .RS 5
632 With this environment variable, you can specify an
633 additional user profile (file) to be read by
634 .BR mhbuild ,
635 in addition to the mhn.defaults profile.
636 .RE
637 .PP
638 .B $MHN
639 .RS 5
640 With this environment variable, you can specify an
641 additional user profile (file) to be read by
642 .BR mhn ,
643 in addition to the mhn.defaults profile.
644 .B mhn
645 is deprecated, so this support for this variable will
646 be removed from a future nmh release.
647 .RE
648 .PP
649 .B $MHSHOW
650 .RS 5
651 With this environment variable, you can specify an
652 additional user profile (file) to be read by
653 .BR mhshow ,
654 in addition to the mhn.defaults profile.
655 .RE
656 .PP
657 .B $MHSTORE
658 .RS 5
659 With this environment variable, you can specify an
660 additional user profile (file) to be read by
661 .BR mhstore ,
662 in addition to the mhn.defaults profile.
663 .RE
664 .PP
665 .B $MM_CHARSET
666 .RS 5
667 With this environment variable, you can specify
668 the native character set you are using.  You must be able to display
669 this character set on your terminal.
670 .PP
671 This variable is checked to see if a RFC-2047 header field should be
672 decoded (in
673 .BR inc ,
674 .BR scan ,
675 .BR mhl ).
676 This variable is
677 checked by
678 .B show
679 to see if the
680 .I showproc
681 or
682 .I showmimeproc
683 should
684 be called, since showmimeproc will be called if a text message uses
685 a character set that doesn't match
686 .BR $MM_CHARSET .
687 This variable is
688 checked by
689 .B mhshow
690 for matches against the charset parameter
691 of text contents to decide it the text content can be displayed
692 without modifications to your terminal.  This variable is checked by
693 .B mhbuild
694 to decide what character set to specify in the charset
695 parameter of text contents containing 8\-bit characters.
696 .PP
697 When decoding text in such an alternate character set,
698 .B nmh
699 must be able to determine which characters are alphabetic, which
700 are control characters, etc.  For many operating systems, this
701 will require enabling the support for locales (such as setting
702 the environment variable
703 .B $LC_CTYPE
704 to iso_8859_1).
705 .RE
706 .PP
707 .B $NOMHNPROC
708 .RS 5
709 If this variable is set,
710 .B show
711 will next test for MIME messages.  This mechanism is obsolete;
712 use the
713 .B \-nocheckmime
714 switch to
715 .B show
716 instead.
717 .RE
718 .PP
719 .B $MAILDROP
720 .RS 5
721 This variable tells
722 .B inc
723 the default maildrop. This supersedes the \*(lqMailDrop\*(rq profile entry.
724 .RE
725 .PP
726 .B $MAILHOST
727 .RS 5
728 This variable tells
729 .B inc
730 the POP host to query for mail to incorporate.  See the
731 inc(1) man page for more information.
732 .RE
733 .PP
734 .B $USERNAME_EXTENSION
735 .RS 5
736 This variable is for use with username_extension masquerading.  See the
737 mh-tailor(5) man page.
738 .RE
739 .PP
740 .B $SIGNATURE
741 .RS 5
742 This variable tells
743 .B send
744 and
745 .B post
746 your mail signature. This supersedes the \*(lqSignature\*(rq profile entry.
747 .RE
748 .PP
749 .B $USER
750 .RS 5
751 This variable tells
752 .B repl
753 your user name and
754 .B inc
755 your default maildrop:  see the \*(lqMailDrop\*(rq profile entry.
756 .RE
757 .PP
758 .B $HOME
759 .RS 5
760 This variable tells all
761 .B nmh
762 programs your home directory
763 .RE
764 .PP
765 .B $TERM
766 .RS 5
767 This variable tells
768 .B nmh
769 your terminal type.
770 .PP
771 The environment variable
772 .B $TERMCAP
773 is also consulted.  In particular,
774 these tell
775 .B scan
776 and
777 .B mhl
778 how to clear your terminal, and how
779 many columns wide your terminal is.  They also tell
780 .B mhl
781 how many
782 lines long your terminal screen is.
783 .RE
784 .PP
785 .B $MHMTSCONF
786 .RS 5
787 If this variable is set to a non-null value, it specifies the
788 name of the mail transport configuration file to use by
789 .BR post ,
790 .BR inc ,
791 and other programs that interact with the mail transport system,
792 instead of the default.  See mh-tailor(5).
793 .RE
794 .PP
795 .B $MHMTSUSERCONF
796 .RS 5
797 If this variable is set to a non-null value, it specifies the name of
798 a mail transport configuration file to be read in addition to the
799 default.  See mh-tailor(5).
800 .RE
801 .PP
802 .B $MHTMPDIR
803 .B $TMPDIR
804 .B $TMP
805 .RS 5
806 These variables are searched, in order, for the directory in which to
807 create some temporary files.
808 .RE
809 .PP
810 .B $MM_NOASK
811 .RS 5
812 Setting this variable is set to 1 has the same effect as specifying
813 the
814 .B \-nolist
815 and
816 .B \-nopause
817 switches to
818 .BR mhbuild ,
819 .BR mhn ,
820 and
821 .BR mhshow .
822 OBSOLETE:  will be removed in a future version of nmh.
823 .RE
824 .PP
825 .B $MHLDEBUG
826 .RS 5
827 If this variable is set to a non-null value,
828 .B mhl
829 will emit debugging information.
830 .RE
831 .PP
832 .B $MHPDEBUG
833 .RS 5
834 If this variable is set to a non-null value,
835 .B pick
836 will emit a representation of the search pattern.
837 .RE
838 .PP
839 .B $MHPOPDEBUG
840 .RS 5
841 If this variable is set to a non-null value,
842 .B msgchck
843 and
844 .B inc
845 will display their interaction with the POP server.
846 This mechanism is obsolete; use the
847 .B \-snoop
848 switch instead.
849 .RE
850 .PP
851 .B $MHWDEBUG
852 .RS 5
853 If this variable is set to a non-null value,
854 .B nmh
855 commands that use the
856 .BR Alternate\-Mailboxes
857 profile entry will display debugging information
858 about the values in that entry.
859 .RE
860 .PP
861 .B $editalt
862 .RS 5
863 This is the alternate message.
864 .PP
865 This is set by
866 .B dist
867 and
868 .B repl
869 during edit sessions so you can
870 peruse the message being distributed or replied to.  The message is also
871 available through a link called \*(lq@\*(rq in the current directory if
872 your current working directory and the folder the message lives in are
873 on the same UNIX filesystem.
874 .RE
875 .PP
876 .B $mhdraft
877 .RS 5
878 This is the path to the working draft.
879 .PP
880 This is set by
881 .BR comp ,
882 .BR dist ,
883 .BR forw ,
884 and
885 .B repl
886 to tell the
887 .I whatnowproc
888 which file to ask \*(lqWhat now?\*(rq
889 questions about.
890 .RE
891 .PP
892 .B $mhaltmsg
893 .RS 5
894 .B dist
895 and
896 .B repl
897 set
898 .B $mhaltmsg
899 to tell the
900 .I whatnowproc
901 about an alternate message associated with the
902 draft (the message being distributed or replied to).
903 .RE
904 .PP
905 .B $mhfolder
906 .RS 5
907 This is the folder containing the alternate message.
908 .PP
909 This is set by
910 .B dist
911 and
912 .B repl
913 during edit sessions so you
914 can peruse other messages in the current folder besides the one being
915 distributed or replied to.  The environment variable
916 .B $mhfolder
917 is also set by
918 .BR show ,
919 .BR prev ,
920 and
921 .B next
922 for use by
923 .BR mhl .
924 .RE
925 .PP
926 .B $mhdist
927 .RS 5
928 .B dist
929 sets
930 .B $mhdist
931 to tell the
932 .I whatnowproc
933 that message re-distribution is occurring.
934 .RE
935 .PP
936 .B $mheditor
937 .RS 5
938 This is set by
939 .BR comp ,
940 .BR repl ,
941 .BR forw ,
942 and
943 .B dist
944 to tell the
945 .I whatnowproc
946 the user's choice of
947 editor (unless overridden by
948 .BR \-noedit ).
949 .RE
950 .PP
951 .B $mhuse
952 .RS 5
953 This may be set by
954 .BR comp .
955 .RE
956 .PP
957 .B $mhmessages
958 .RS 5
959 This is set by
960 .BR dist ,
961 .BR forw ,
962 and
963 .B repl
964 if annotations are to occur.
965 .RE
966 .PP
967 .B $mhannotate
968 .RS 5
969 This is set by
970 .BR dist ,
971 .BR forw ,
972 and
973 .B repl
974 if annotations are to occur.
975 .RE
976 .PP
977 .B $mhinplace
978 .RS 5
979 This is set by
980 .BR dist ,
981 .BR forw ,
982 and
983 .B repl
984 if annotations are to occur.
985 .RE
986
987 .SH FILES
988 .fc ^ ~
989 .nf
990 .ta \w'%etcdir%/ExtraBigFileName  'u
991 ^$HOME/\&.mh\(ruprofile~^The user profile
992 ^or $MH~^Rather than the standard profile
993 ^<mh\-dir>/context~^The user context
994 ^or $MHCONTEXT~^Rather than the standard context
995 ^<folder>/\&.mh\(rusequences~^Public sequences for <folder>
996 .fi
997
998 .SH "SEE ALSO"
999 nmh(1), environ(5), mh-sequence(5)
1000
1001 .SH HISTORY
1002 The
1003 .I \&.mh\(ruprofile
1004 contains only static information, which
1005 .B nmh
1006 programs will
1007 .B NOT
1008 update.  Changes in context are made to the
1009 .I context
1010 file kept in the users
1011 .B nmh
1012 directory.
1013 This includes, but is not limited to: the \*(lqCurrent\-Folder\*(rq entry
1014 and all private sequence information.  Public sequence information is
1015 kept in each folder in the file determined by the \*(lqmh\-sequences\*(rq
1016 profile entry (default is
1017 .IR \&.mh\(rusequences ).
1018 .PP
1019 The
1020 .I \&.mh\(ruprofile
1021 may override the path of the
1022 .I context
1023 file, by specifying a \*(lqcontext\*(rq entry (this must be in
1024 lower-case).  If the entry is not absolute (does not start with a
1025 \*(lq/\*(rq), then it is interpreted relative to the user's
1026 .B nmh
1027 directory.  As a result, you can actually have more than one set of
1028 private sequences by using different context files.
1029
1030 .SH BUGS
1031 The shell quoting conventions are not available in the
1032 .IR \&.mh\(ruprofile .
1033 Each token is separated by whitespace.
1034 .PP
1035 There is some question as to what kind of arguments should be placed
1036 in the profile as options.  In order to provide a clear answer, recall
1037 command line semantics of all
1038 .B nmh
1039 programs: conflicting switches
1040 (e.g.
1041 .B \-header
1042 and
1043 .BR \-noheader )
1044 may occur more than one time on the
1045 command line, with the last switch taking effect.  Other arguments, such
1046 as message sequences, filenames and folders, are always remembered on
1047 the invocation line and are not superseded by following arguments of
1048 the same type.  Hence, it is safe to place only switches (and their
1049 arguments) in the profile.
1050 .PP
1051 If one finds that an
1052 .B nmh
1053 program is being invoked again and again
1054 with the same arguments, and those arguments aren't switches, then there
1055 are a few possible solutions to this problem.  The first is to create a
1056 (soft) link in your
1057 .I $HOME/bin
1058 directory to the
1059 .B nmh
1060 program
1061 of your choice.  By giving this link a different name, you can create
1062 a new entry in your profile and use an alternate set of defaults for
1063 the
1064 .B nmh
1065 command.  Similarly, you could create a small shell script
1066 which called the
1067 .B nmh
1068 program of your choice with an alternate set
1069 of invocation line switches (using links and an alternate profile entry
1070 is preferable to this solution).
1071 .PP
1072 Finally, the
1073 .B csh
1074 user could create an alias for the command of the form:
1075 .PP
1076 .RS 5
1077 alias cmd 'cmd arg1 arg2 ...'
1078 .RE
1079 .PP
1080 In this way, the user can avoid lengthy type-in to the shell, and still
1081 give
1082 .B nmh
1083 commands safely.  (Recall that some
1084 .B nmh
1085 commands
1086 invoke others, and that in all cases, the profile is read, meaning that
1087 aliases are disregarded beyond an initial command invocation)