]> diplodocus.org Git - nmh/blob - man/mh-profile.man
Added const to argument of getname().
[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 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 .PP
378 .BR credentials :
379 \&legacy
380 .RS 5
381 Indicates how the username and password credentials will be retrieved
382 for access to external servers, such as those that provide SMTP or POP
383 service. The supported entry values are \*(lqlegacy\*(rq and
384 .RI \*(lqfile: netrc \*(rq.
385 With \*(lqlegacy\*(rq, or if there is no credentials entry, the
386 username is the first of:
387 .PP
388 .RS 5
389 1)
390 .B \-user
391 switch to
392 .BR send ,
393 .BR post ,
394 .BR whom ,
395 .BR inc ,
396 or
397 .B msgchk
398 program
399 .br
400 2) the login name on the local machine
401 .RE
402 .PP
403 The password for SMTP services is the first of:
404 .PP
405 .RS 5
406 1) password value from matching entry in file named \*(lq.netrc\*(rq
407 in the user's home directory
408 .br
409 2) password obtained by interactively prompting the user
410 .RE
411 .PP
412 The password for POP service when the
413 .B \-sasl
414 switch is used with one of these programs is the login name on the
415 local machine.
416 .PP
417 With a
418 .RI \*(lqfile: netrc \*(rq
419 .B credentials
420 entry, the username is the first of:
421 .PP
422 .RS 5
423 1)
424 .B \-user
425 switch to program
426 .br
427 2) login name from matching entry in
428 .I netrc
429 file
430 .br
431 3) value provided by user in response to interactive query
432 .RE
433 .PP
434 Similarly, the password is provided either in the
435 .I netrc
436 file or interactively.
437 .I netrc
438 can be any valid filename, either absolute or relative to Path or
439 $HOME. The
440 .I netrc
441 file contains authentication information, for each server,
442 using a line of the following form. Replace the words
443 .IR myserver ,
444 .IR mylogin ,
445 and
446 .I mypassword
447 with your own account information:
448 .PP
449 .RS 5
450 .B machine
451 .I myserver
452 .B login
453 .I mylogin
454 .B password
455 .I mypassword
456 .RE
457 .PP
458 This
459 .I netrc
460 file must be owned and readable only by you.
461 (profile, default: legacy)
462 .RE
463 .SS "Process Profile Entries"
464 The following profile elements are used whenever an
465 .B nmh
466 program invokes some other program such as
467 .BR more .
468 The
469 .I \&.mh\(ruprofile
470 can be used to select alternate programs if the
471 user wishes. The default values are given in the examples.
472 .PP
473 If the profile element contains spaces, the element is split at spaces
474 into tokens and each token is given as a seperate argument to the
475 .IR execvp (2)
476 system call. If the element contains shell metacharacters then the entire
477 element is executed using
478 .BR /bin/sh .
479 .RE
480 .PP
481 .BR buildmimeproc :
482 %bindir%/mhbuild
483 .RS 5
484 This is the program used by
485 .B whatnow
486 to process drafts which are MIME composition files.
487 .RE
488 .PP
489 .BR fileproc :
490 %bindir%/refile
491 .RS 5
492 This program is used to refile or link a message to another folder.
493 It is used by
494 .B send
495 to file a copy of a message into a folder given
496 by a \*(lqFcc:\*(rq field. It is used by the draft folder facility in
497 .BR comp ,
498 .BR dist ,
499 .BR forw ,
500 and
501 .B repl
502 to refile a draft
503 message into another folder. It is used to refile a draft message in
504 response to the
505 .B refile
506 directive at the \*(lqWhat now?\*(rq prompt.
507 .RE
508 .PP
509 .BR formatproc :
510 .RS 5
511 Program called by
512 .B mhl
513 to filter a component when it is tagged with the \*(lqformat\*(rq variable
514 in the mhl filter. See
515 .IR mhl (5)
516 for more information.
517 .RE
518 .PP
519 .BR incproc :
520 %bindir%/inc
521 .RS 5
522 Program called by
523 .B mhmail
524 to incorporate new mail when it
525 is invoked with no arguments.
526 .RE
527 .PP
528 .BR lproc :
529 more
530 .RS 5
531 This program is used to list the contents of a message in response
532 to the
533 .B list
534 directive at the \*(lqWhat now?\*(rq prompt. It is
535 also used by the draft folder facility in
536 .BR comp ,
537 .BR dist ,
538 .BR forw ,
539 and
540 .B repl
541 to display the draft message.
542 (Note that
543 .B $PAGER
544 supersedes the default built-in pager command.)
545 .RE
546 .PP
547 .BR mailproc :
548 %bindir%/mhmail
549 .RS 5
550 This is the program used to automatically mail various messages
551 and notifications. It is used by
552 .B conflict
553 when using the
554 .B \-mail
555 option. It is used by
556 .B send
557 to post failure notices.
558 It is used to retrieve an external-body with access-type `mail-server'
559 (such as when storing the body with
560 .BR mhstore ).
561 .RE
562 .PP
563 .BR mhlproc :
564 %libdir%/mhl
565 .RS 5
566 This is the program used to filter messages in various ways. It
567 is used by
568 .B mhshow
569 to filter and display the message headers
570 of MIME messages. When the
571 .B \-format
572 or
573 .B \-filter
574 option is used
575 by
576 .B forw
577 or
578 .BR repl ,
579 the
580 .I mhlproc
581 is used to filter the
582 message that you are forwarding, or to which you are replying.
583 When the
584 .B \-filter
585 option is given to
586 .BR send ,
587 the
588 .I mhlproc
589 is used to filter the copy of the message
590 that is sent to \*(lqBcc:\*(rq recipients.
591 .RE
592 .PP
593 .BR moreproc :
594 more
595 .RS 5
596 This is the program used by
597 .B mhl
598 to page the
599 .B mhl
600 formatted message when displaying to a terminal. It is also the default
601 program used by
602 .B mhshow
603 to display message bodies (or message parts) of type text/plain.
604 (Note that
605 .B $PAGER
606 supersedes the default built-in pager command.)
607 .RE
608 .PP
609 .BR mshproc :
610 %bindir%/msh
611 .RS 5
612 Currently not used.
613 .RE
614 .PP
615 .BR packproc :
616 %bindir%/packf
617 .RS 5
618 Currently not used.
619 .RE
620 .PP
621 .BR postproc :
622 %libdir%/post
623 .RS 5
624 This is the program used by
625 .BR send ,
626 .BR mhmail ,
627 .BR rcvdist ,
628 and
629 .B viamail
630 (used by the
631 .B sendfiles
632 shell script) to
633 post a message to the mail transport system. It is also called by
634 .B whom
635 (called with the switches
636 .B \-whom
637 and
638 .BR \-library )
639 to do address verification.
640 .RE
641 .PP
642 .BR rmmproc :
643 none
644 .RS 5
645 This is the program used by
646 .BR rmm ,
647 .BR refile ,
648 and
649 .B mhfixmsg
650 to delete a message from a folder.
651 .RE
652 .PP
653 .BR sendproc :
654 %bindir%/send
655 .RS 5
656 This is the program to use by
657 .B whatnow
658 to actually send the message
659 .RE
660 .PP
661 .BR showmimeproc :
662 %bindir%/mhshow
663 .RS 5
664 This is the program used by
665 .B show
666 to process and display non-text (MIME) messages.
667 .RE
668 .PP
669 .BR showproc :
670 %libdir%/mhl
671 .RS 5
672 This is the program used by
673 .B show
674 to filter and display text (non-MIME) messages.
675 .RE
676 .PP
677 .BR whatnowproc :
678 %bindir%/whatnow
679 .RS 5
680 This is the program invoked by
681 .BR comp ,
682 .BR forw ,
683 .BR dist ,
684 and
685 .B repl
686 to query about the disposition of a composed draft message.
687 .RE
688 .PP
689 .BR whomproc :
690 %bindir%/whom
691 .RS 5
692 This is the program used by
693 .B whatnow
694 to determine to whom a message would be sent.
695 .RE
696 .SS "Environment Variables"
697 The operation of
698 .B nmh
699 and its commands it also controlled by the
700 presence of certain environment variables.
701 .PP
702 Many of these environment variables are used internally by the
703 \*(lqWhat now?\*(rq interface. It's amazing all the information
704 that has to get passed via environment variables to make the
705 \*(lqWhat now?\*(rq interface look squeaky clean to the
706 .B nmh
707 user, isn't it? The reason for all this is that the
708 .B nmh
709 user
710 can select
711 .B any
712 program as the
713 .IR whatnowproc ,
714 including
715 one of the standard shells. As a result, it's not possible to pass
716 information via an argument list. The convention is that environment
717 variables whose names are all upper-case are user-settable; those
718 whose names are lower-case only are used internally by nmh and should
719 not generally be set by the user.
720 .PP
721 .B $MH
722 .RS 5
723 With this environment variable, you can specify a profile
724 other than
725 .I \&.mh\(ruprofile
726 to be read by the
727 .B nmh
728 programs
729 that you invoke. If the value of
730 .B $MH
731 is not absolute, (i.e., does
732 not begin with a \*(lq/\*(rq), it will be presumed to start from the current
733 working directory. This is one of the very few exceptions in
734 .B nmh
735 where non-absolute pathnames are not considered relative to the user's
736 .B nmh
737 directory.
738 .RE
739 .PP
740 .B $MHCONTEXT
741 .RS 5
742 With this environment variable, you can specify a
743 context other than the normal context file (as specified in
744 the
745 .B nmh
746 profile). As always, unless the value of
747 .B $MHCONTEXT
748 is absolute, it will be presumed to start from your
749 .B nmh
750 directory.
751 .RE
752 .PP
753 .B $MHBUILD
754 .RS 5
755 With this environment variable, you can specify an
756 additional user profile (file) to be read by
757 .BR mhbuild ,
758 in addition to the mhn.defaults profile.
759 .RE
760 .PP
761 .B $MHN
762 .RS 5
763 With this environment variable, you can specify an
764 additional user profile (file) to be read by
765 .BR mhn ,
766 in addition to the mhn.defaults profile.
767 .B mhn
768 is deprecated, so this support for this variable will
769 be removed from a future nmh release.
770 .RE
771 .PP
772 .B $MHSHOW
773 .RS 5
774 With this environment variable, you can specify an
775 additional user profile (file) to be read by
776 .BR mhshow ,
777 in addition to the mhn.defaults profile.
778 .RE
779 .PP
780 .B $MHSTORE
781 .RS 5
782 With this environment variable, you can specify an
783 additional user profile (file) to be read by
784 .BR mhstore ,
785 in addition to the mhn.defaults profile.
786 .RE
787 .PP
788 .B $MM_CHARSET
789 .RS 5
790 With this environment variable, you can specify
791 the native character set you are using. You must be able to display
792 this character set on your terminal.
793 .PP
794 This variable is checked to see if a RFC-2047 header field should be
795 decoded (in
796 .BR inc ,
797 .BR scan ,
798 .BR mhl ).
799 This variable is
800 checked by
801 .B show
802 to see if the
803 .I showproc
804 or
805 .I showmimeproc
806 should
807 be called, since showmimeproc will be called if a text message uses
808 a character set that doesn't match
809 .BR $MM_CHARSET .
810 This variable is
811 checked by
812 .B mhshow
813 for matches against the charset parameter
814 of text contents to decide it the text content can be displayed
815 without modifications to your terminal. This variable is checked by
816 .B mhbuild
817 to decide what character set to specify in the charset
818 parameter of text contents containing 8\-bit characters.
819 .PP
820 When decoding text in such an alternate character set,
821 .B nmh
822 must be able to determine which characters are alphabetic, which
823 are control characters, etc. For many operating systems, this
824 will require enabling the support for locales (such as setting
825 the environment variable
826 .B $LC_CTYPE
827 to iso_8859_1).
828 .RE
829 .PP
830 .B $MAILDROP
831 .RS 5
832 This variable tells
833 .B inc
834 the default maildrop. This supersedes the \*(lqMailDrop\*(rq profile entry.
835 .RE
836 .PP
837 .B $MAILHOST
838 .RS 5
839 This variable tells
840 .B inc
841 the POP host to query for mail to incorporate. See the
842 inc(1) man page for more information.
843 .RE
844 .PP
845 .B $USERNAME_EXTENSION
846 .RS 5
847 This variable is for use with username_extension masquerading. See the
848 mh-tailor(5) man page.
849 .RE
850 .PP
851 .B $SIGNATURE
852 .RS 5
853 This variable tells
854 .B send
855 and
856 .B post
857 your mail signature. This supersedes the \*(lqSignature\*(rq profile entry,
858 and is not used when the \*(lqLocal\-Mailbox\*(rq profile component is set.
859 .RE
860 .PP
861 .B $USER
862 .RS 5
863 This variable tells
864 .B repl
865 your user name and
866 .B inc
867 your default maildrop: see the \*(lqMailDrop\*(rq profile entry.
868 .RE
869 .PP
870 .B $HOME
871 .RS 5
872 This variable tells all
873 .B nmh
874 programs your home directory
875 .RE
876 .PP
877 .B $TERM
878 .RS 5
879 This variable tells
880 .B nmh
881 your terminal type.
882 .PP
883 The environment variable
884 .B $TERMCAP
885 is also consulted. In particular,
886 these tell
887 .B scan
888 and
889 .B mhl
890 how to clear your terminal, and how
891 many columns wide your terminal is. They also tell
892 .B mhl
893 how many
894 lines long your terminal screen is.
895 .RE
896 .PP
897 .B $MHMTSCONF
898 .RS 5
899 If this variable is set to a non-null value, it specifies the
900 name of the mail transport configuration file to use by
901 .BR post ,
902 .BR inc ,
903 and other programs that interact with the mail transport system,
904 instead of the default. See mh-tailor(5).
905 .RE
906 .PP
907 .B $MHMTSUSERCONF
908 .RS 5
909 If this variable is set to a non-null value, it specifies the name of
910 a mail transport configuration file to be read in addition to the
911 default. See mh-tailor(5).
912 .RE
913 .PP
914 .B $MHTMPDIR
915 .B $TMPDIR
916 .B $TMP
917 .RS 5
918 These variables are searched, in order, for the directory in which to
919 create some temporary files.
920 .RE
921 .PP
922 .B $MHLDEBUG
923 .RS 5
924 If this variable is set to a non-null value,
925 .B mhl
926 will emit debugging information.
927 .RE
928 .PP
929 .B $MHPDEBUG
930 .RS 5
931 If this variable is set to a non-null value,
932 .B pick
933 will emit a representation of the search pattern.
934 .RE
935 .PP
936 .B $MHWDEBUG
937 .RS 5
938 If this variable is set to a non-null value,
939 .B nmh
940 commands that use the
941 .BR Alternate\-Mailboxes
942 profile entry will display debugging information
943 about the values in that entry.
944 .RE
945 .PP
946 .B $PAGER
947 .RS 5
948 If set to a non-null value, this supersedes the value of
949 the default built-in pager command.
950 .RE
951 .PP
952 .B $editalt
953 .RS 5
954 This is the alternate message.
955 .PP
956 This is set by
957 .B dist
958 and
959 .B repl
960 during edit sessions so you can
961 peruse the message being distributed or replied to. The message is also
962 available, when the
963 .B \-atfile
964 switch is used,
965 through a link called \*(lq@\*(rq in the current directory if
966 your current working directory and the folder the message lives in are
967 on the same UNIX filesystem, and if your current working directory is
968 writable.
969 .RE
970 .PP
971 .B $mhdraft
972 .RS 5
973 This is the path to the working draft.
974 .PP
975 This is set by
976 .BR comp ,
977 .BR dist ,
978 .BR forw ,
979 and
980 .B repl
981 to tell the
982 .I whatnowproc
983 which file to ask \*(lqWhat now?\*(rq
984 questions about.
985 .RE
986 .PP
987 .B $mhaltmsg
988 .RS 5
989 .B dist
990 and
991 .B repl
992 set
993 .B $mhaltmsg
994 to tell the
995 .I whatnowproc
996 about an alternate message associated with the
997 draft (the message being distributed or replied to).
998 .RE
999 .PP
1000 .B $mhfolder
1001 .RS 5
1002 This is the folder containing the alternate message.
1003 .PP
1004 This is set by
1005 .B dist
1006 and
1007 .B repl
1008 during edit sessions so you
1009 can peruse other messages in the current folder besides the one being
1010 distributed or replied to. The environment variable
1011 .B $mhfolder
1012 is also set by
1013 .BR show ,
1014 .BR prev ,
1015 and
1016 .B next
1017 for use by
1018 .BR mhl .
1019 .RE
1020 .PP
1021 .B $mhdist
1022 .RS 5
1023 .B dist
1024 sets
1025 .B $mhdist
1026 to tell the
1027 .I whatnowproc
1028 that message re-distribution is occurring.
1029 .RE
1030 .PP
1031 .B $mheditor
1032 .RS 5
1033 This is set by
1034 .BR comp ,
1035 .BR repl ,
1036 .BR forw ,
1037 and
1038 .B dist
1039 to tell the
1040 .I whatnowproc
1041 the user's choice of
1042 editor (unless overridden by
1043 .BR \-noedit ).
1044 .RE
1045 .PP
1046 .B $mhuse
1047 .RS 5
1048 This may be set by
1049 .BR comp .
1050 .RE
1051 .PP
1052 .B $mhmessages
1053 .RS 5
1054 This is set by
1055 .BR dist ,
1056 .BR forw ,
1057 and
1058 .B repl
1059 if annotations are to occur.
1060 .RE
1061 .PP
1062 .B $mhannotate
1063 .RS 5
1064 This is set by
1065 .BR dist ,
1066 .BR forw ,
1067 and
1068 .B repl
1069 if annotations are to occur.
1070 .RE
1071 .PP
1072 .B $mhinplace
1073 .RS 5
1074 This is set by
1075 .BR dist ,
1076 .BR forw ,
1077 and
1078 .B repl
1079 if annotations are to occur.
1080 .RE
1081 .SH FILES
1082 .fc ^ ~
1083 .nf
1084 .ta \w'%etcdir%/ExtraBigFileName 'u
1085 ^$HOME/\&.mh\(ruprofile~^The user profile
1086 ^or $MH~^Rather than the standard profile
1087 ^<mh\-dir>/context~^The user context
1088 ^or $MHCONTEXT~^Rather than the standard context
1089 ^<folder>/\&.mh\(rusequences~^Public sequences for <folder>
1090 .fi
1091 .SH "SEE ALSO"
1092 .IR environ (5),
1093 .IR mh-sequence (5),
1094 .IR nmh (7)
1095 .SH HISTORY
1096 The
1097 .I \&.mh\(ruprofile
1098 contains only static information, which
1099 .B nmh
1100 programs will
1101 .B NOT
1102 update. Changes in context are made to the
1103 .I context
1104 file kept in the users
1105 .B nmh
1106 directory.
1107 This includes, but is not limited to: the \*(lqCurrent\-Folder\*(rq entry
1108 and all private sequence information. Public sequence information is
1109 kept in each folder in the file determined by the \*(lqmh\-sequences\*(rq
1110 profile entry (default is
1111 .IR \&.mh\(rusequences ).
1112 .PP
1113 The
1114 .I \&.mh\(ruprofile
1115 may override the path of the
1116 .I context
1117 file, by specifying a \*(lqcontext\*(rq entry (this must be in
1118 lower-case). If the entry is not absolute (does not start with a
1119 \*(lq/\*(rq), then it is interpreted relative to the user's
1120 .B nmh
1121 directory. As a result, you can actually have more than one set of
1122 private sequences by using different context files.
1123 .SH BUGS
1124 There is some question as to what kind of arguments should be placed
1125 in the profile as options. In order to provide a clear answer, recall
1126 command line semantics of all
1127 .B nmh
1128 programs: conflicting switches
1129 (e.g.
1130 .B \-header
1131 and
1132 .BR \-noheader )
1133 may occur more than one time on the
1134 command line, with the last switch taking effect. Other arguments, such
1135 as message sequences, filenames and folders, are always remembered on
1136 the invocation line and are not superseded by following arguments of
1137 the same type. Hence, it is safe to place only switches (and their
1138 arguments) in the profile.
1139 .PP
1140 If one finds that an
1141 .B nmh
1142 program is being invoked again and again
1143 with the same arguments, and those arguments aren't switches, then there
1144 are a few possible solutions to this problem. The first is to create a
1145 (soft) link in your
1146 .I $HOME/bin
1147 directory to the
1148 .B nmh
1149 program
1150 of your choice. By giving this link a different name, you can create
1151 a new entry in your profile and use an alternate set of defaults for
1152 the
1153 .B nmh
1154 command. Similarly, you could create a small shell script
1155 which called the
1156 .B nmh
1157 program of your choice with an alternate set
1158 of invocation line switches (using links and an alternate profile entry
1159 is preferable to this solution).
1160 .PP
1161 Finally, the
1162 .B csh
1163 user could create an alias for the command of the form:
1164 .PP
1165 .RS 5
1166 alias cmd 'cmd arg1 arg2 ...'
1167 .RE
1168 .PP
1169 In this way, the user can avoid lengthy type-in to the shell, and still
1170 give
1171 .B nmh
1172 commands safely. (Recall that some
1173 .B nmh
1174 commands
1175 invoke others, and that in all cases, the profile is read, meaning that
1176 aliases are disregarded beyond an initial command invocation)