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