]> diplodocus.org Git - nmh/blob - man/mh-profile.man
Fixed three LC_ALL settings:
[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 $MAILDROP
787 .RS 5
788 This variable tells
789 .B inc
790 the default maildrop. This supersedes the \*(lqMailDrop\*(rq profile entry.
791 .RE
792 .PP
793 .B $MAILHOST
794 .RS 5
795 This variable tells
796 .B inc
797 the POP host to query for mail to incorporate. See the
798 inc(1) man page for more information.
799 .RE
800 .PP
801 .B $USERNAME_EXTENSION
802 .RS 5
803 This variable is for use with username_extension masquerading. See the
804 mh-tailor(5) man page.
805 .RE
806 .PP
807 .B $SIGNATURE
808 .RS 5
809 This variable tells
810 .B send
811 and
812 .B post
813 your mail signature. This supersedes the \*(lqSignature\*(rq profile entry,
814 and is not used when the \*(lqLocal\-Mailbox\*(rq profile component is set.
815 .RE
816 .PP
817 .B $USER
818 .RS 5
819 This variable tells
820 .B repl
821 your user name and
822 .B inc
823 your default maildrop: see the \*(lqMailDrop\*(rq profile entry.
824 .RE
825 .PP
826 .B $HOME
827 .RS 5
828 This variable tells all
829 .B nmh
830 programs your home directory
831 .RE
832 .PP
833 .B $TERM
834 .RS 5
835 This variable tells
836 .B nmh
837 your terminal type.
838 .PP
839 The environment variable
840 .B $TERMCAP
841 is also consulted. In particular,
842 these tell
843 .B scan
844 and
845 .B mhl
846 how to clear your terminal, and how
847 many columns wide your terminal is. They also tell
848 .B mhl
849 how many
850 lines long your terminal screen is.
851 .RE
852 .PP
853 .B $MHMTSCONF
854 .RS 5
855 If this variable is set to a non-null value, it specifies the
856 name of the mail transport configuration file to use by
857 .BR post ,
858 .BR inc ,
859 and other programs that interact with the mail transport system,
860 instead of the default. See mh-tailor(5).
861 .RE
862 .PP
863 .B $MHMTSUSERCONF
864 .RS 5
865 If this variable is set to a non-null value, it specifies the name of
866 a mail transport configuration file to be read in addition to the
867 default. See mh-tailor(5).
868 .RE
869 .PP
870 .B $MHTMPDIR
871 .B $TMPDIR
872 .B $TMP
873 .RS 5
874 These variables are searched, in order, for the directory in which to
875 create some temporary files.
876 .RE
877 .PP
878 .B $MHLDEBUG
879 .RS 5
880 If this variable is set to a non-null value,
881 .B mhl
882 will emit debugging information.
883 .RE
884 .PP
885 .B $MHPDEBUG
886 .RS 5
887 If this variable is set to a non-null value,
888 .B pick
889 will emit a representation of the search pattern.
890 .RE
891 .PP
892 .B $MHWDEBUG
893 .RS 5
894 If this variable is set to a non-null value,
895 .B nmh
896 commands that use the
897 .BR Alternate\-Mailboxes
898 profile entry will display debugging information
899 about the values in that entry.
900 .RE
901 .PP
902 .B $PAGER
903 .RS 5
904 If set to a non-null value, this supersedes the value of
905 the default built-in pager command.
906 .RE
907 .PP
908 .B $editalt
909 .RS 5
910 This is the alternate message.
911 .PP
912 This is set by
913 .B dist
914 and
915 .B repl
916 during edit sessions so you can
917 peruse the message being distributed or replied to. The message is also
918 available, when the
919 .B \-atfile
920 switch is used,
921 through a link called \*(lq@\*(rq in the current directory if
922 your current working directory and the folder the message lives in are
923 on the same UNIX filesystem, and if your current working directory is
924 writable.
925 .RE
926 .PP
927 .B $mhdraft
928 .RS 5
929 This is the path to the working draft.
930 .PP
931 This is set by
932 .BR comp ,
933 .BR dist ,
934 .BR forw ,
935 and
936 .B repl
937 to tell the
938 .I whatnowproc
939 which file to ask \*(lqWhat now?\*(rq
940 questions about.
941 .RE
942 .PP
943 .B $mhaltmsg
944 .RS 5
945 .B dist
946 and
947 .B repl
948 set
949 .B $mhaltmsg
950 to tell the
951 .I whatnowproc
952 about an alternate message associated with the
953 draft (the message being distributed or replied to).
954 .RE
955 .PP
956 .B $mhfolder
957 .RS 5
958 This is the folder containing the alternate message.
959 .PP
960 This is set by
961 .B dist
962 and
963 .B repl
964 during edit sessions so you
965 can peruse other messages in the current folder besides the one being
966 distributed or replied to. The environment variable
967 .B $mhfolder
968 is also set by
969 .BR show ,
970 .BR prev ,
971 and
972 .B next
973 for use by
974 .BR mhl .
975 .RE
976 .PP
977 .B $mhdist
978 .RS 5
979 .B dist
980 sets
981 .B $mhdist
982 to tell the
983 .I whatnowproc
984 that message re-distribution is occurring.
985 .RE
986 .PP
987 .B $mheditor
988 .RS 5
989 This is set by
990 .BR comp ,
991 .BR repl ,
992 .BR forw ,
993 and
994 .B dist
995 to tell the
996 .I whatnowproc
997 the user's choice of
998 editor (unless overridden by
999 .BR \-noedit ).
1000 .RE
1001 .PP
1002 .B $mhuse
1003 .RS 5
1004 This may be set by
1005 .BR comp .
1006 .RE
1007 .PP
1008 .B $mhmessages
1009 .RS 5
1010 This is set by
1011 .BR dist ,
1012 .BR forw ,
1013 and
1014 .B repl
1015 if annotations are to occur.
1016 .RE
1017 .PP
1018 .B $mhannotate
1019 .RS 5
1020 This is set by
1021 .BR dist ,
1022 .BR forw ,
1023 and
1024 .B repl
1025 if annotations are to occur.
1026 .RE
1027 .PP
1028 .B $mhinplace
1029 .RS 5
1030 This is set by
1031 .BR dist ,
1032 .BR forw ,
1033 and
1034 .B repl
1035 if annotations are to occur.
1036 .RE
1037 .SH FILES
1038 .fc ^ ~
1039 .nf
1040 .ta \w'%etcdir%/ExtraBigFileName 'u
1041 ^$HOME/\&.mh\(ruprofile~^The user profile
1042 ^or $MH~^Rather than the standard profile
1043 ^<mh\-dir>/context~^The user context
1044 ^or $MHCONTEXT~^Rather than the standard context
1045 ^<folder>/\&.mh\(rusequences~^Public sequences for <folder>
1046 .fi
1047 .SH "SEE ALSO"
1048 .IR environ (5),
1049 .IR mh-sequence (5),
1050 .IR nmh (7)
1051 .SH HISTORY
1052 The
1053 .I \&.mh\(ruprofile
1054 contains only static information, which
1055 .B nmh
1056 programs will
1057 .B NOT
1058 update. Changes in context are made to the
1059 .I context
1060 file kept in the users
1061 .B nmh
1062 directory.
1063 This includes, but is not limited to: the \*(lqCurrent\-Folder\*(rq entry
1064 and all private sequence information. Public sequence information is
1065 kept in each folder in the file determined by the \*(lqmh\-sequences\*(rq
1066 profile entry (default is
1067 .IR \&.mh\(rusequences ).
1068 .PP
1069 The
1070 .I \&.mh\(ruprofile
1071 may override the path of the
1072 .I context
1073 file, by specifying a \*(lqcontext\*(rq entry (this must be in
1074 lower-case). If the entry is not absolute (does not start with a
1075 \*(lq/\*(rq), then it is interpreted relative to the user's
1076 .B nmh
1077 directory. As a result, you can actually have more than one set of
1078 private sequences by using different context files.
1079 .SH BUGS
1080 There is some question as to what kind of arguments should be placed
1081 in the profile as options. In order to provide a clear answer, recall
1082 command line semantics of all
1083 .B nmh
1084 programs: conflicting switches
1085 (e.g.
1086 .B \-header
1087 and
1088 .BR \-noheader )
1089 may occur more than one time on the
1090 command line, with the last switch taking effect. Other arguments, such
1091 as message sequences, filenames and folders, are always remembered on
1092 the invocation line and are not superseded by following arguments of
1093 the same type. Hence, it is safe to place only switches (and their
1094 arguments) in the profile.
1095 .PP
1096 If one finds that an
1097 .B nmh
1098 program is being invoked again and again
1099 with the same arguments, and those arguments aren't switches, then there
1100 are a few possible solutions to this problem. The first is to create a
1101 (soft) link in your
1102 .I $HOME/bin
1103 directory to the
1104 .B nmh
1105 program
1106 of your choice. By giving this link a different name, you can create
1107 a new entry in your profile and use an alternate set of defaults for
1108 the
1109 .B nmh
1110 command. Similarly, you could create a small shell script
1111 which called the
1112 .B nmh
1113 program of your choice with an alternate set
1114 of invocation line switches (using links and an alternate profile entry
1115 is preferable to this solution).
1116 .PP
1117 Finally, the
1118 .B csh
1119 user could create an alias for the command of the form:
1120 .PP
1121 .RS 5
1122 alias cmd 'cmd arg1 arg2 ...'
1123 .RE
1124 .PP
1125 In this way, the user can avoid lengthy type-in to the shell, and still
1126 give
1127 .B nmh
1128 commands safely. (Recall that some
1129 .B nmh
1130 commands
1131 invoke others, and that in all cases, the profile is read, meaning that
1132 aliases are disregarded beyond an initial command invocation)