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