]> diplodocus.org Git - nmh/blob - docs/historical/mh-jun-1982/man/mh-profile.5
Replaced use of snprintf() with memcpy()/memmove().
[nmh] / docs / historical / mh-jun-1982 / man / mh-profile.5
1 .TH MH\(ruPROFILE 5 RAND
2 .SH NAME
3 mh\(ruprofile \- User parameters for MH message handler
4 .SH DESCRIPTION
5 Each user of
6 .I mh
7 is expected to have a file named
8 .B .mh\(ruprofile
9 in his or her home directory. This file contains a set of
10 user parameters used by some or all of the
11 .I mh
12 family of programs. Each line of the file is of the format
13 .TP 15
14 \fIprofile-component\fR: \fIvalue\fR
15 The currently defined profile components are exemplified below:
16 .TP
17 Path: Mail
18 Locates mh transactions in directory "Mail".
19 .TP
20 Current-Folder: inbox
21 Keeps track of currently open folder.
22 .TP
23 Editor: /bin/e
24 Defines editor to be used by
25 .I comp(1),
26 .I repl(1),
27 .I forw(1),
28 and
29 .I dist(1).
30 .br
31 .B NOTE:
32 .I repl(1)
33 invokes the editor with two file arguments.
34 The second is intended
35 to be used as an `alternate' file.
36 If the editor used doesn't have this feature, it must
37 ignore the extra file argument and edit the first
38 file argument.
39 .TP
40 Msg\-Protect: 644
41 Defines octal protection bits for message files. See
42 .I chmod(1)
43 for an explanation of the octal number.
44 .TP
45 Folder\-Protect: 711
46 Defines protection bits for folder directories.
47 .TP
48 \fIprogram\fR: default switches
49 Sets default switches to be used whenever the mh program
50 .I program
51 is invoked. For example, one could override the
52 .I Editor:
53 profile component when replying to messages by adding a
54 component such as:
55 .br
56 repl: -editor /bin/ed
57 .TP
58 cur\-\fIread-onlyfolder\fR: 172
59 Keeps track of the last message seen in the specified read-only
60 folder. In folders to which write access is permitted, the
61 current-message value is kept in a file called "cur" within
62 that folder.
63 .TP
64 news\-\fInews-topic\fR: 12
65 Keeps track of the last message seen in the specified news topic.
66 .TP
67 News\-Topics: news topics
68 Sets the news topics to be selected by default for the news program.
69 .TP
70 prompter\-next: ed
71 Names the editor to be used on exit from
72 .I prompter(1)
73 .PP
74 The following profile elements are used whenever an mh program
75 invokes some other program such as
76 .I file(1)
77 or
78 .I ls(1).
79 The mh profile can be used to select alternate versions of these
80 programs if the user wishes. The default values are given in
81 the examples.
82 .br
83 fileproc: /usr/ucb/file
84 .br
85 installproc: /etc/mh/install-mh
86 .br
87 lproc: /usr/ucb/c
88 .br
89 lsproc: /usr/ucb/ls
90 .br
91 mailproc: /usr/ucb/mail
92 .br
93 prproc: /bin/pr
94 .br
95 scanproc: /usr/ucb/scan
96 .br
97 sendproc: /usr/ucb/send
98 .br
99 showproc: /usr/ucb/c
100 .TP
101 delete-prog: /bin/rm
102 Normally,
103 .I rmm(1),
104 rather than removing a message in file X will rename the
105 file to ,X. At Rand, a program known as the Midnight Skulker
106 comes around once a day and eliminates files whose names begin
107 with a comma. If a user provides a
108 .I delete-prog
109 profile entry, however, the specified program will be used
110 instead to remove the file.
111 .SH FILES
112 $HOME/.mh\(ruprofile
113 .SH SEE ALS