2 ** config.c -- master nmh configuration file
4 ** This code is Copyright (c) 2002, by the authors of nmh. See the
5 ** COPYRIGHT file in the root directory of the nmh distribution for
6 ** complete copyright information.
13 ** Standard yes/no switches structure
15 struct swit anoyes[] = {
26 /* initial profile for new users */
27 char *mh_defaults = NMHETCDIR"/mh.profile";
29 /* default name of user profile */
30 char *mh_profile = ".mh_profile";
32 /* name of current message "sequence" */
33 char *current = "cur";
35 /* standard component files */
36 char *components = "components"; /* comp */
37 char *replcomps = "replcomps"; /* repl */
38 char *replgroupcomps = "replgroupcomps"; /* repl -group */
39 char *forwcomps = "forwcomps"; /* forw */
40 char *distcomps = "distcomps"; /* dist */
41 char *rcvdistcomps = "rcvdistcomps"; /* rcvdist */
42 char *digestcomps = "digestcomps"; /* forw -digest */
44 /* standard format (filter) files */
45 char *mhlformat = "mhl.format"; /* show */
46 char *mhlreply = "mhl.reply"; /* repl -filter */
47 char *mhlforward = "mhl.forward"; /* forw -filter */
49 char *draftfolder = "+drafts";
51 char *inbox = "Inbox";
52 char *defaultfolder = "+inbox";
54 char *curfolder = "Current-Folder";
55 char *usequence = "Unseen-Sequence";
56 char *psequence = "Previous-Sequence";
57 char *nsequence = "Sequence-Negation";
59 /* profile entries for storage locations */
60 char *nmhstorage = "nmh-storage";
61 char *nmhcache = "nmh-cache";
62 char *nmhprivcache = "nmh-private-cache";
64 /* profile entry for external ftp access command */
65 char *nmhaccessftp = "nmh-access-ftp";
67 char *mhlibdir = NMHLIBDIR;
68 char *mhetcdir = NMHETCDIR;
72 ** nmh not-so constants
76 ** Default name for the nmh context file.
78 char *context = "context";
81 ** Default name of file for public sequences. If NULL,
82 ** then nmh will use private sequences by default, unless the
83 ** user defines a value using the "mh-sequences" profile entry.
88 char *mh_seq = ".mh_sequences";
96 char ctxflags; /* status of user's context */
97 char *invo_name; /* command invocation name */
98 char *mypath; /* user's $HOME */
99 char *defpath; /* pathname of user's profile */
100 char *ctxpath; /* pathname of user's context */
101 struct node *m_defs; /* profile/context structure */
109 ** This is the program to process MIME composition files
111 char *buildmimeproc = NMHBINDIR"/mhbuild";
114 ** This is the program to `cat' a file.
116 char *catproc = "/bin/cat";
119 ** mhl runs this program as a visual-end.
121 char *faceproc = NULL;
124 ** This program is usually called directly by users, but it is
125 ** also invoked by the spost program to process an "Fcc", or by
126 ** comp/repl/forw/dist to refile a draft message.
128 char *fileproc = NMHBINDIR"/refile";
131 ** This program is called to incorporate messages into a folder.
133 char *incproc = NMHBINDIR"/inc";
136 ** When a user runs an nmh program for the first time, this program
137 ** is called to create his nmh profile, and mail directory.
139 char *installproc = NMHLIBDIR"/install-mh";
142 ** This is the default program invoked by a "list" response
143 ** at the "What now?" prompt. It is also used by the draft
144 ** folder facility in comp/dist/forw/repl to display the
147 char *lproc = "more";
150 ** This is the path for the Bell equivalent mail program.
152 char *mailproc = NMHBINDIR"/mhmail";
155 ** This is used by mhl as a front-end. It is also used
156 ** by mhshow as the default method of displaying message bodies
157 ** or message parts of type text/plain.
159 char *moreproc = "more";
162 ** This is the program (mhl) used to filter messages. It is
163 ** used by mhshow to filter and display the message headers of
164 ** MIME messages. It is used by repl/forw (with -filter)
165 ** to filter the message to which you are replying/forwarding.
166 ** It is used by send/spost (with -filter) to filter the message
167 ** for "Bcc:" recipients.
169 char *mhlproc = NMHLIBDIR"/mhl";
172 ** This program is called to pack a folder.
174 char *packproc = NMHBINDIR"/packf";
177 ** This is the delivery program called by send to actually
178 ** deliver mail to users. This is the interface to the MTS.
180 char *postproc = NMHLIBDIR"/spost";
183 ** This is program is called by slocal to handle
184 ** the action `folder' or `+'.
186 char *rcvstoreproc = NMHLIBDIR"/rcvstore";
189 ** This program is called to remove a folder.
191 char *rmfproc = NMHBINDIR"/rmf";
194 ** This program is called to remove a message by rmm or refile -nolink.
195 ** It's usually empty, which means to rename the file to a backup name.
197 char *rmmproc = NULL;
200 ** This program is usually called by the user's whatnowproc, but it
201 ** may also be called directly to send a message previously composed.
203 char *sendproc = NMHBINDIR"/send";
206 ** This is the path to the program used by "show"
207 ** to display non-text (MIME) messages.
209 char *showmimeproc = NMHBINDIR"/mhshow";
212 ** This is the default program called by "show" to filter
213 ** and display standard text (non-MIME) messages. It can be
214 ** changed to a pager (such as "more" or "less") if you prefer
215 ** that such message not be filtered in any way.
217 char *showproc = NMHLIBDIR"/mhl";
220 ** This program is called after comp, et. al., have built a draft
222 char *whatnowproc = NMHBINDIR"/whatnow";
225 ** This is the sendmail interface to use for sending mail.
227 char *sendmail = SENDMAILPATH;
230 ** The prefix that is prepended to the name of message files when they
231 ** are "removed" by rmm. This should typically be `,' or `#'.
233 char *backup_prefix = ",";
236 ** This is the editor invoked by the various message
237 ** composition programs. It SHOULD be a full screen
238 ** editor, such as vi or emacs, but any editor will work.
240 char *defaulteditor = "vi";
243 ** Name of link to file to which you are replying or which you are
244 ** redistributing. See `$mhaltmsg' in the mh-profile(5) man page.
246 char *altmsglink = "@";
249 ** This is the global nmh alias file. It is somewhat obsolete, since
250 ** global aliases should be handled by the Mail Transport Agent (MTA).
252 char *AliasFile = NMHETCDIR"/MailAliases";
255 ** Folders (directories) are created with this protection (mode)
257 char *foldprot = "700";
260 ** Every NEW message will be created with this protection. When a
261 ** message is filed it retains its protection, so this only applies
262 ** to messages coming in through inc.
264 char *msgprot = "600";