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