0e92a5fea6bfc2b7f858bb1790cab7df33c35d23
[mmh] / man / mh-profile.man
1 .TH MH-PROFILE %manext5% "October 15, 2012" "%nmhversion%"
2 .\"
3 .\" %nmhwarning%
4 .\"
5 .SH NAME
6 mh-profile \- user profile customization for nmh message handler
7 .SH SYNOPSIS
8 .I $HOME/.mh\(ruprofile
9 .SH DESCRIPTION
10 Each user of
11 .B nmh
12 is expected to have a file named
13 .I \&.mh\(ruprofile
14 in his or her home directory.  This file contains
15 a set of user parameters used by some or all of the
16 .B nmh
17 family of programs.  Each entry in the file is of the format
18 .PP
19 .RS 5
20 .IR profile\-component ": " value
21 .RE
22 .PP
23 If the text of profile entry is long, you may extend it across several
24 real lines by indenting the continuation lines with leading spaces or tabs.
25 Comments may be introduced by a line starting with `#:':
26 .PP
27 .RS 5
28 .IR # ": "
29 This is a comment.
30 .RE
31 .PP
32 Blank lines are not permitted in
33 .IR \&.mh\(ruprofile.
34 .SS "Standard Profile Entries"
35 The possible profile components are exemplified below.  The only mandatory
36 entry is `Path:'.  The others are optional; some have default values if
37 they are not present.  In the notation used below, (profile, default)
38 indicates whether the information is kept in the user's
39 .B nmh
40 profile or
41 .B nmh
42 context, and indicates what the default value is.  Note that a profile
43 component can only appear once.  Multiple appearances with trigger a
44 warning that all appearances after the first are ignored.
45 .PP
46 .BR Path :
47 Mail
48 .RS 5
49 Locates
50 .B nmh
51 transactions in directory \*(lqMail\*(rq.  This is the
52 only mandatory profile entry.  (profile, no default)
53 .RE
54 .PP
55 .BR context :
56 context
57 .RS 5
58 Declares the location of the
59 .B nmh
60 context file.  This is overridden by the environment variable
61 .BR $MHCONTEXT .
62 See the
63 .B HISTORY
64 section below.
65 (profile, default: <nmh\-dir>/context)
66 .RE
67 .PP
68 .BR Current\-Folder :
69 inbox
70 .RS 5
71 Keeps track of the current open folder.
72 (context, default: folder specified by \*(lqInbox\*(rq)
73 .RE
74 .PP
75 .BR Inbox :
76 inbox
77 .RS 5
78 Defines the name of your default inbox.
79 (profile, default: inbox)
80 .RE
81 .PP
82 .BR Previous\-Sequence :
83 .I pseq
84 .RS 5
85 Names the sequence or sequences which should be defined as the `msgs' or
86 `msg' argument given to any
87 .B nmh
88 command.  If not present or empty,
89 no such sequences are defined.  Otherwise, for each name given, the
90 sequence is first zero'd and then each message is added to the sequence.
91 Read the
92 .IR mh\-sequence (5)
93 man page for the details about this sequence. (profile, no default)
94 .RE
95 .PP
96 .BR Sequence\-Negation :
97 not
98 .RS 5
99 Defines the string which, when prefixed to a sequence name, negates
100 that sequence.  Hence, \*(lqnotseen\*(rq means all those messages that
101 are not a member of the sequence \*(lqseen\*(rq.  Read the
102 .IR mh\-sequence (5)
103 man page for the details.  (profile, no default)
104 .RE
105 .PP
106 .BR Unseen\-Sequence :
107 unseen
108 .RS 5
109 Names the sequence or sequences which should be defined as those
110 messages which are unread.  The commands
111 .BR inc ,
112 .BR rcvstore ,
113 .BR mhshow ,
114 and
115 .B show
116 will add or remove messages from these
117 sequences when they are incorporated or read.  If not present or
118 empty, no such sequences are defined.  Otherwise, each message is
119 added to, or removed from, each sequence name given.  Read the
120 .IR mh\-sequence (5)
121 man page for the details about this sequence.
122 (profile, no default)
123 .RE
124 .PP
125 .BR mh\-sequences :
126 \&.mh\(rusequences
127 .RS 5
128 The name of the file in each folder which defines public sequences.
129 To disable the use of public sequences, leave the value portion of this
130 entry blank.  (profile, default: \&.mh\(rusequences)
131 .RE
132 .PP
133 .BI atr\- seq \- folder :
134 172\0178\-181\0212
135 .RS 5
136 Keeps track of the private sequence called \*(lqseq\*(rq in the specified
137 folder.  Private sequences are generally used for read\-only folders.
138 See the
139 .IR mh\-sequence (5)
140 man page for details about private sequences.
141 (context, no default)
142 .RE
143 .PP
144 .BR Editor :
145 /usr/bin/vi
146 .RS 5
147 Defines the editor to be used by the commands
148 .BR comp ,
149 .BR dist ,
150 .BR forw ,
151 and
152 .BR repl .
153 (profile, default: %default_editor%)
154 .RE
155 .PP
156 .BR automimeproc :
157 .RS 5
158 If defined and set to 1, then the
159 .B whatnow
160 program will automatically
161 invoke the buildmimeproc (discussed below) to process each message as a MIME
162 composition draft before it is sent.
163 (profile, no default)
164 .RE
165 .PP
166 .BR Msg\-Protect :
167 600
168 .RS 5
169 An octal number which defines the permission bits for new message files.
170 See
171 .IR chmod (1)
172 for an explanation of the octal number.  Note that some filesystems,
173 such as FAT32, do not support removal of read file permissions.
174 (profile, default: 0600)
175 .RE
176 .PP
177 .BR Folder\-Protect :
178 700
179 .RS 5
180 An octal number which defines the permission bits for new folder
181 directories.  See
182 .IR chmod (1)
183 for an explanation of the octal number.
184 (profile, default: 700)
185 .RE
186 .PP
187 .IR program :
188 .I default switches
189 .RS 5
190 Sets default switches to be used whenever the mh program
191 .I program
192 is invoked.  For example, one could override the \*(lqEditor:\*(rq profile
193 component when replying to messages by adding a component such as:
194 .PP
195 .RS 5
196 repl: \-editor /bin/ed
197 .RE
198 .PP
199 (profile, no defaults)
200 .RE
201 .PP
202 .IB lasteditor "-next:"
203 .I nexteditor
204 .RS 5
205 Names \*(lqnexteditor\*(rq to be the default editor after using
206 \*(lqlasteditor\*(rq.  This takes effect at \*(lqWhat now?\*(rq prompt
207 in
208 .BR comp ,
209 .BR dist ,
210 .BR forw ,
211 and
212 .BR repl .
213 After editing
214 the draft with \*(lqlasteditor\*(rq, the default editor is set to be
215 \*(lqnexteditor\*(rq.  If the user types \*(lqedit\*(rq without any
216 arguments to \*(lqWhat now?\*(rq, then \*(lqnexteditor\*(rq is used.
217 (profile, no default)
218 .RE
219 .PP
220 .BR Folder\-Stack :
221 .I folders
222 .RS 5
223 The contents of the folder-stack for the
224 .B folder
225 command.
226 (context, no default)
227 .RE
228 .PP
229 .BR Local\-Mailbox :
230 Your Username <user@some.host>
231 .RS 5
232 Tells the various MH tools what your local mailbox is.  If set, will be used
233 by the default component files by tools like
234 .B comp
235 and
236 .B repl
237 to construct your default \*(lqFrom\*(rq header.  The text used here will
238 be copied exactly to your From: header, so it should already be RFC-822
239 compliant.  If this is set, the
240 .B Signature
241 profile entry is NOT used, so it should include a signature as well.  (profile,
242 default: userid@local.hostname)
243 .RE
244 .PP
245 .BR Alternate\-Mailboxes :
246 mh@uci\-750a, bug-mh*
247 .RS 5
248 Tells
249 .B repl
250 and
251 .B scan
252 which addresses are really yours.
253 In this way,
254 .B repl
255 knows which addresses should be included in the
256 reply, and
257 scan
258 knows if the message really originated from you.
259 Addresses must be separated by a comma, and the hostnames listed should
260 be the \*(lqofficial\*(rq hostnames for the mailboxes you indicate, as
261 local nicknames for hosts are not replaced with their official site names.
262 For each address, if a host is not given, then that address on any host is
263 considered to be you.  In addition, an asterisk (`*') may appear at either
264 or both ends of the mailbox and host to indicate wild-card matching.
265 (profile, default: your user-id)
266 .RE
267 .PP
268 .BR Aliasfile :
269 aliases
270 .I other-alias
271 .RS 5
272 Indicates aliases files for
273 .BR ali ,
274 .BR whom ,
275 and
276 .BR send .
277 This may be used instead of the
278 .B \-alias
279 .I file
280 switch.  (profile, no default)
281 .RE
282 .PP
283 .BR Draft\-Folder :
284 drafts
285 .RS 5
286 Indicates a default draft folder for
287 .BR comp ,
288 .BR dist ,
289 .BR forw ,
290 .BR refile ,
291 and
292 .BR repl .
293 Read the
294 .IR mh\-draft (5)
295 man page for details. (profile, no default)
296 .RE
297 .PP
298 .BI digest\-issue\- list :
299 1
300 .RS 5
301 Tells
302 .B forw
303 the last issue of the last volume sent for the digest
304 .IR list .
305 (context, no default)
306 .RE
307 .PP
308 .BI digest\-volume\- list :
309 1
310 .RS 5
311 Tells
312 .B forw
313 the last volume sent for the digest
314 .IR list .
315 (context, no default)
316 .RE
317 .PP
318 .BR MailDrop :
319 \&.mail
320 .RS 5
321 Tells
322 .B inc
323 your maildrop, if different from the default.  This is
324 superseded by the environment variable
325 .BR $MAILDROP .
326 (profile, default: %mailspool%/$USER)
327 .RE
328 .PP
329 .BR Signature :
330 RAND MH System (agent: Marshall Rose)
331 .RS 5
332 Tells front-end programs such as
333 .BR comp,
334 .BR forw,
335 and
336 .B repl
337 your mail signature.  This is superseded by the
338 environment variable
339 .BR $SIGNATURE .
340 If
341 .B $SIGNATURE
342 is not set and this profile entry is not present, the \*(lqgcos\*(rq field of
343 the \fI/etc/passwd\fP file will be used.
344 Your signature will be added to the address
345 .B send
346 puts in the \*(lqFrom:\*(rq header; do not include an address in the
347 signature text.  The \*(lqLocal\-Mailbox\*(rq profile component
348 supersedes all of this.  (profile, no default)
349 .RE
350 .SS "Process Profile Entries"
351 The following profile elements are used whenever an
352 .B nmh
353 program invokes some other program such as
354 .BR more .
355 The
356 .I \&.mh\(ruprofile
357 can be used to select alternate programs if the
358 user wishes.  The default values are given in the examples.
359 .RE
360 .PP
361 .BR buildmimeproc :
362 %bindir%/mhbuild
363 .RS 5
364 This is the program used by
365 .B whatnow
366 to process drafts which are MIME composition files.
367 .RE
368 .PP
369 .BR fileproc :
370 %bindir%/refile
371 .RS 5
372 This program is used to refile or link a message to another folder.
373 It is used by
374 .B send
375 to file a copy of a message into a folder given
376 by a \*(lqFcc:\*(rq field.  It is used by the draft folder facility in
377 .BR comp ,
378 .BR dist ,
379 .BR forw ,
380 and
381 .B repl
382 to refile a draft
383 message into another folder.  It is used to refile a draft message in
384 response to the
385 .B refile
386 directive at the \*(lqWhat now?\*(rq prompt.
387 .RE
388 .PP
389 .BR formatproc :
390 .RS 5
391 Program called by
392 .B mhl
393 to filter a component when it is tagged with the \*(lqformat\*(rq variable
394 in the mhl filter.  See
395 .IR mhl (5)
396 for more information.
397 .RE
398 .PP
399 .BR incproc :
400 %bindir%/inc
401 .RS 5
402 Program called by
403 .B mhmail
404 to incorporate new mail when it
405 is invoked with no arguments.
406 .RE
407 .PP
408 .BR installproc :
409 %libdir%/install\-mh
410 .RS 5
411 This program is called to initialize the environment for
412 new users of
413 .BR nmh .
414 .RE
415 .PP
416 .BR lproc :
417 %default_pager%
418 .RS 5
419 This program is used to list the contents of a message in response
420 to the
421 .B list
422 directive at the \*(lqWhat now?\*(rq prompt.  It is
423 also used by the draft folder facility in
424 .BR comp ,
425 .BR dist ,
426 .BR forw ,
427 and
428 .B repl
429 to display the draft message.
430 (Note that
431 .B $PAGER
432 supersedes the default built-in pager command.)
433 .RE
434 .PP
435 .BR mailproc :
436 %bindir%/mhmail
437 .RS 5
438 This is the program used to automatically mail various messages
439 and notifications.  It is used by
440 .B conflict
441 when using the
442 .B \-mail
443 option.  It is used by
444 .B send
445 to post failure notices.
446 It is used to retrieve an external-body with access-type `mail-server'
447 (such as when storing the body with
448 .BR mhstore ).
449 .RE
450 .PP
451 .BR mhlproc :
452 %libdir%/mhl
453 .RS 5
454 This is the program used to filter messages in various ways.  It
455 is used by
456 .B mhshow
457 to filter and display the message headers
458 of MIME messages.  When the
459 .B \-format
460 or
461 .B \-filter
462 option is used
463 by
464 .B forw
465 or
466 .BR repl ,
467 the
468 .I mhlproc
469 is used to filter the
470 message that you are forwarding, or to which you are replying.
471 When the
472 .B \-filter
473 option is given to
474 .BR send ,
475 the
476 .I mhlproc
477 is used to filter the copy of the message
478 that is sent to \*(lqBcc:\*(rq recipients.
479 .RE
480 .PP
481 .BR moreproc :
482 %default_pager%
483 .RS 5
484 This is the program used by
485 .B mhl
486 to page the
487 .B mhl
488 formatted message when displaying to a terminal.  It is also the default
489 program used by
490 .B mhshow
491 to display message bodies (or message parts) of type text/plain.
492 (Note that
493 .B $PAGER
494 supersedes the default built-in pager command.)
495 .RE
496 .PP
497 .BR mshproc :
498 %bindir%/msh
499 .RS 5
500 Currently not used.
501 .RE
502 .PP
503 .BR packproc :
504 %bindir%/packf
505 .RS 5
506 Currently not used.
507 .RE
508 .PP
509 .BR postproc :
510 %libdir%/post
511 .RS 5
512 This is the program used by
513 .BR send ,
514 .BR mhmail ,
515 .BR rcvdist ,
516 and
517 .B viamail
518 (used by the
519 .B sendfiles
520 shell script) to
521 post a message to the mail transport system.  It is also called by
522 .B whom
523 (called with the switches
524 .B \-whom
525 and
526 .BR \-library )
527 to do address verification.
528 .RE
529 .PP
530 .BR rmmproc :
531 none
532 .RS 5
533 This is the program used by
534 .B rmm
535 and
536 .B refile
537 to delete a message from a folder.
538 .RE
539 .PP
540 .BR sendproc :
541 %bindir%/send
542 .RS 5
543 This is the program to use by
544 .B whatnow
545 to actually send the message
546 .RE
547 .PP
548 .BR showmimeproc :
549 %bindir%/mhshow
550 .RS 5
551 This is the program used by
552 .B show
553 to process and display non-text (MIME) messages.
554 .RE
555 .PP
556 .BR showproc :
557 %libdir%/mhl
558 .RS 5
559 This is the program used by
560 .B show
561 to filter and display text (non-MIME) messages.
562 .RE
563 .PP
564 .BR whatnowproc :
565 %bindir%/whatnow
566 .RS 5
567 This is the program invoked by
568 .BR comp ,
569 .BR forw ,
570 .BR dist ,
571 and
572 .B repl
573 to query about the disposition of a composed draft message.
574 .RE
575 .PP
576 .BR whomproc :
577 %bindir%/whom
578 .RS 5
579 This is the program used by
580 .B whatnow
581 to determine to whom a message would be sent.
582 .RE
583 .SS "Environment Variables"
584 The operation of
585 .B nmh
586 and its commands it also controlled by the
587 presence of certain environment variables.
588 .PP
589 Many of these environment variables are used internally by the
590 \*(lqWhat now?\*(rq interface.  It's amazing all the information
591 that has to get passed via environment variables to make the
592 \*(lqWhat now?\*(rq interface look squeaky clean to the
593 .B nmh
594 user, isn't it?  The reason for all this is that the
595 .B nmh
596 user
597 can select
598 .B any
599 program as the
600 .IR whatnowproc ,
601 including
602 one of the standard shells.  As a result, it's not possible to pass
603 information via an argument list. The convention is that environment
604 variables whose names are all upper-case are user-settable; those
605 whose names are lower-case only are used internally by nmh and should
606 not generally be set by the user.
607 .PP
608 .B $MH
609 .RS 5
610 With this environment variable, you can specify a profile
611 other than
612 .I \&.mh\(ruprofile
613 to be read by the
614 .B nmh
615 programs
616 that you invoke.  If the value of
617 .B $MH
618 is not absolute, (i.e., does
619 not begin with a \*(lq/\*(rq), it will be presumed to start from the current
620 working directory.  This is one of the very few exceptions in
621 .B nmh
622 where non-absolute pathnames are not considered relative to the user's
623 .B nmh
624 directory.
625 .RE
626 .PP
627 .B $MHCONTEXT
628 .RS 5
629 With this environment variable, you can specify a
630 context other than the normal context file (as specified in
631 the
632 .B nmh
633 profile).  As always, unless the value of
634 .B $MHCONTEXT
635 is absolute, it will be presumed to start from your
636 .B nmh
637 directory.
638 .RE
639 .PP
640 .B $MHBUILD
641 .RS 5
642 With this environment variable, you can specify an
643 additional user profile (file) to be read by
644 .BR mhbuild ,
645 in addition to the mhn.defaults profile.
646 .RE
647 .PP
648 .B $MHN
649 .RS 5
650 With this environment variable, you can specify an
651 additional user profile (file) to be read by
652 .BR mhn ,
653 in addition to the mhn.defaults profile.
654 .B mhn
655 is deprecated, so this support for this variable will
656 be removed from a future nmh release.
657 .RE
658 .PP
659 .B $MHSHOW
660 .RS 5
661 With this environment variable, you can specify an
662 additional user profile (file) to be read by
663 .BR mhshow ,
664 in addition to the mhn.defaults profile.
665 .RE
666 .PP
667 .B $MHSTORE
668 .RS 5
669 With this environment variable, you can specify an
670 additional user profile (file) to be read by
671 .BR mhstore ,
672 in addition to the mhn.defaults profile.
673 .RE
674 .PP
675 .B $MM_CHARSET
676 .RS 5
677 With this environment variable, you can specify
678 the native character set you are using.  You must be able to display
679 this character set on your terminal.
680 .PP
681 This variable is checked to see if a RFC-2047 header field should be
682 decoded (in
683 .BR inc ,
684 .BR scan ,
685 .BR mhl ).
686 This variable is
687 checked by
688 .B show
689 to see if the
690 .I showproc
691 or
692 .I showmimeproc
693 should
694 be called, since showmimeproc will be called if a text message uses
695 a character set that doesn't match
696 .BR $MM_CHARSET .
697 This variable is
698 checked by
699 .B mhshow
700 for matches against the charset parameter
701 of text contents to decide it the text content can be displayed
702 without modifications to your terminal.  This variable is checked by
703 .B mhbuild
704 to decide what character set to specify in the charset
705 parameter of text contents containing 8\-bit characters.
706 .PP
707 When decoding text in such an alternate character set,
708 .B nmh
709 must be able to determine which characters are alphabetic, which
710 are control characters, etc.  For many operating systems, this
711 will require enabling the support for locales (such as setting
712 the environment variable
713 .B $LC_CTYPE
714 to iso_8859_1).
715 .RE
716 .PP
717 .B $MAILDROP
718 .RS 5
719 This variable tells
720 .B inc
721 the default maildrop. This supersedes the \*(lqMailDrop\*(rq profile entry.
722 .RE
723 .PP
724 .B $MAILHOST
725 .RS 5
726 This variable tells
727 .B inc
728 the POP host to query for mail to incorporate.  See the
729 inc(1) man page for more information.
730 .RE
731 .PP
732 .B $USERNAME_EXTENSION
733 .RS 5
734 This variable is for use with username_extension masquerading.  See the
735 mh-tailor(5) man page.
736 .RE
737 .PP
738 .B $SIGNATURE
739 .RS 5
740 This variable tells
741 .B send
742 and
743 .B post
744 your mail signature. This supersedes the \*(lqSignature\*(rq profile entry,
745 and is not used when the \*(lqLocal\-Mailbox\*(rq profile component is set.
746 .RE
747 .PP
748 .B $USER
749 .RS 5
750 This variable tells
751 .B repl
752 your user name and
753 .B inc
754 your default maildrop:  see the \*(lqMailDrop\*(rq profile entry.
755 .RE
756 .PP
757 .B $HOME
758 .RS 5
759 This variable tells all
760 .B nmh
761 programs your home directory
762 .RE
763 .PP
764 .B $TERM
765 .RS 5
766 This variable tells
767 .B nmh
768 your terminal type.
769 .PP
770 The environment variable
771 .B $TERMCAP
772 is also consulted.  In particular,
773 these tell
774 .B scan
775 and
776 .B mhl
777 how to clear your terminal, and how
778 many columns wide your terminal is.  They also tell
779 .B mhl
780 how many
781 lines long your terminal screen is.
782 .RE
783 .PP
784 .B $MHMTSCONF
785 .RS 5
786 If this variable is set to a non-null value, it specifies the
787 name of the mail transport configuration file to use by
788 .BR post ,
789 .BR inc ,
790 and other programs that interact with the mail transport system,
791 instead of the default.  See mh-tailor(5).
792 .RE
793 .PP
794 .B $MHMTSUSERCONF
795 .RS 5
796 If this variable is set to a non-null value, it specifies the name of
797 a mail transport configuration file to be read in addition to the
798 default.  See mh-tailor(5).
799 .RE
800 .PP
801 .B $MHTMPDIR
802 .B $TMPDIR
803 .B $TMP
804 .RS 5
805 These variables are searched, in order, for the directory in which to
806 create some temporary files.
807 .RE
808 .PP
809 .B $MHLDEBUG
810 .RS 5
811 If this variable is set to a non-null value,
812 .B mhl
813 will emit debugging information.
814 .RE
815 .PP
816 .B $MHPDEBUG
817 .RS 5
818 If this variable is set to a non-null value,
819 .B pick
820 will emit a representation of the search pattern.
821 .RE
822 .PP
823 .B $MHWDEBUG
824 .RS 5
825 If this variable is set to a non-null value,
826 .B nmh
827 commands that use the
828 .BR Alternate\-Mailboxes
829 profile entry will display debugging information
830 about the values in that entry.
831 .RE
832 .PP
833 .B $PAGER
834 .RS 5
835 If set to a non-null value, this supersedes the value of
836 the default built-in pager command.
837 .RE
838 .PP
839 .B $editalt
840 .RS 5
841 This is the alternate message.
842 .PP
843 This is set by
844 .B dist
845 and
846 .B repl
847 during edit sessions so you can
848 peruse the message being distributed or replied to.  The message is also
849 available through a link called \*(lq@\*(rq in the current directory if
850 your current working directory and the folder the message lives in are
851 on the same UNIX filesystem.
852 .RE
853 .PP
854 .B $mhdraft
855 .RS 5
856 This is the path to the working draft.
857 .PP
858 This is set by
859 .BR comp ,
860 .BR dist ,
861 .BR forw ,
862 and
863 .B repl
864 to tell the
865 .I whatnowproc
866 which file to ask \*(lqWhat now?\*(rq
867 questions about.
868 .RE
869 .PP
870 .B $mhaltmsg
871 .RS 5
872 .B dist
873 and
874 .B repl
875 set
876 .B $mhaltmsg
877 to tell the
878 .I whatnowproc
879 about an alternate message associated with the
880 draft (the message being distributed or replied to).
881 .RE
882 .PP
883 .B $mhfolder
884 .RS 5
885 This is the folder containing the alternate message.
886 .PP
887 This is set by
888 .B dist
889 and
890 .B repl
891 during edit sessions so you
892 can peruse other messages in the current folder besides the one being
893 distributed or replied to.  The environment variable
894 .B $mhfolder
895 is also set by
896 .BR show ,
897 .BR prev ,
898 and
899 .B next
900 for use by
901 .BR mhl .
902 .RE
903 .PP
904 .B $mhdist
905 .RS 5
906 .B dist
907 sets
908 .B $mhdist
909 to tell the
910 .I whatnowproc
911 that message re-distribution is occurring.
912 .RE
913 .PP
914 .B $mheditor
915 .RS 5
916 This is set by
917 .BR comp ,
918 .BR repl ,
919 .BR forw ,
920 and
921 .B dist
922 to tell the
923 .I whatnowproc
924 the user's choice of
925 editor (unless overridden by
926 .BR \-noedit ).
927 .RE
928 .PP
929 .B $mhuse
930 .RS 5
931 This may be set by
932 .BR comp .
933 .RE
934 .PP
935 .B $mhmessages
936 .RS 5
937 This is set by
938 .BR dist ,
939 .BR forw ,
940 and
941 .B repl
942 if annotations are to occur.
943 .RE
944 .PP
945 .B $mhannotate
946 .RS 5
947 This is set by
948 .BR dist ,
949 .BR forw ,
950 and
951 .B repl
952 if annotations are to occur.
953 .RE
954 .PP
955 .B $mhinplace
956 .RS 5
957 This is set by
958 .BR dist ,
959 .BR forw ,
960 and
961 .B repl
962 if annotations are to occur.
963 .RE
964 .SH FILES
965 .fc ^ ~
966 .nf
967 .ta \w'%etcdir%/ExtraBigFileName  'u
968 ^$HOME/\&.mh\(ruprofile~^The user profile
969 ^or $MH~^Rather than the standard profile
970 ^<mh\-dir>/context~^The user context
971 ^or $MHCONTEXT~^Rather than the standard context
972 ^<folder>/\&.mh\(rusequences~^Public sequences for <folder>
973 .fi
974 .SH "SEE ALSO"
975 .IR environ (5),
976 .IR mh-sequence (5),
977 .IR nmh (7)
978 .SH HISTORY
979 The
980 .I \&.mh\(ruprofile
981 contains only static information, which
982 .B nmh
983 programs will
984 .B NOT
985 update.  Changes in context are made to the
986 .I context
987 file kept in the users
988 .B nmh
989 directory.
990 This includes, but is not limited to: the \*(lqCurrent\-Folder\*(rq entry
991 and all private sequence information.  Public sequence information is
992 kept in each folder in the file determined by the \*(lqmh\-sequences\*(rq
993 profile entry (default is
994 .IR \&.mh\(rusequences ).
995 .PP
996 The
997 .I \&.mh\(ruprofile
998 may override the path of the
999 .I context
1000 file, by specifying a \*(lqcontext\*(rq entry (this must be in
1001 lower-case).  If the entry is not absolute (does not start with a
1002 \*(lq/\*(rq), then it is interpreted relative to the user's
1003 .B nmh
1004 directory.  As a result, you can actually have more than one set of
1005 private sequences by using different context files.
1006 .SH BUGS
1007 The shell quoting conventions are not available in the
1008 .IR \&.mh\(ruprofile .
1009 Each token is separated by whitespace.
1010 .PP
1011 There is some question as to what kind of arguments should be placed
1012 in the profile as options.  In order to provide a clear answer, recall
1013 command line semantics of all
1014 .B nmh
1015 programs: conflicting switches
1016 (e.g.
1017 .B \-header
1018 and
1019 .BR \-noheader )
1020 may occur more than one time on the
1021 command line, with the last switch taking effect.  Other arguments, such
1022 as message sequences, filenames and folders, are always remembered on
1023 the invocation line and are not superseded by following arguments of
1024 the same type.  Hence, it is safe to place only switches (and their
1025 arguments) in the profile.
1026 .PP
1027 If one finds that an
1028 .B nmh
1029 program is being invoked again and again
1030 with the same arguments, and those arguments aren't switches, then there
1031 are a few possible solutions to this problem.  The first is to create a
1032 (soft) link in your
1033 .I $HOME/bin
1034 directory to the
1035 .B nmh
1036 program
1037 of your choice.  By giving this link a different name, you can create
1038 a new entry in your profile and use an alternate set of defaults for
1039 the
1040 .B nmh
1041 command.  Similarly, you could create a small shell script
1042 which called the
1043 .B nmh
1044 program of your choice with an alternate set
1045 of invocation line switches (using links and an alternate profile entry
1046 is preferable to this solution).
1047 .PP
1048 Finally, the
1049 .B csh
1050 user could create an alias for the command of the form:
1051 .PP
1052 .RS 5
1053 alias cmd 'cmd arg1 arg2 ...'
1054 .RE
1055 .PP
1056 In this way, the user can avoid lengthy type-in to the shell, and still
1057 give
1058 .B nmh
1059 commands safely.  (Recall that some
1060 .B nmh
1061 commands
1062 invoke others, and that in all cases, the profile is read, meaning that
1063 aliases are disregarded beyond an initial command invocation)