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