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.
17 char *mhlibdir = NMHLIBDIR;
18 char *mhetcdir = NMHETCDIR;
20 char *invo_name; /* command invocation name */
21 char *mypath; /* user's $HOME */
22 char *mmhpath; /* pathname of user's mmh dir */
23 char *defpath; /* pathname of user's profile */
24 char *ctxpath; /* pathname of user's context */
25 char ctxflags; /* status of user's context */
26 struct node *m_defs; /* profile/context structure */
32 ** Important: Adjust uip/mmh.sh if you make changes here!
35 /* default name of the mail storage */
36 char *mailstore = "Mail";
38 /* default name of user profile */
39 char *mmhdir = ".mmh";
41 /* default name of user profile */
42 char *profile = "profile";
44 /* default name for the nmh context file */
45 char *context = "context";
48 ** Default name of file for public sequences. If NULL,
49 ** then nmh will use private sequences by default, unless the
50 ** user defines a value using the "mh-sequences" profile entry.
55 char *mh_seq = ".mh_sequences";
59 /* name of current message "sequence" */
60 char *current = "cur";
63 /* standard component files */
64 char *components = "components"; /* comp */
65 char *replcomps = "replcomps"; /* repl */
66 char *replgroupcomps = "replgroupcomps"; /* repl -group */
67 char *forwcomps = "forwcomps"; /* forw */
68 char *distcomps = "distcomps"; /* dist */
69 char *rcvdistcomps = "rcvdistcomps"; /* rcvdist */
70 char *digestcomps = "digestcomps"; /* forw -digest */
72 /* standard format (filter) files */
73 char *mhlformat = "mhl.format"; /* show */
74 char *mhlreply = "mhl.reply"; /* repl -filter */
75 char *mhlforward = "mhl.forward"; /* forw -filter */
77 char *inbox = "Inbox";
78 char *defaultfolder = "+inbox";
80 char *draftfolder = "+drafts";
82 char *curfolder = "Current-Folder";
83 char *usequence = "Unseen-Sequence";
84 char *psequence = "Previous-Sequence";
85 char *nsequence = "Sequence-Negation";
87 /* profile entries for storage locations */
88 char *nmhstorage = "nmh-storage";
89 char *nmhcache = "nmh-cache";
90 char *nmhprivcache = "nmh-private-cache";
92 /* profile entry for external ftp access command */
93 char *nmhaccessftp = "nmh-access-ftp";
101 ** This is the program to process MIME composition files
103 char *buildmimeproc = NMHBINDIR"/mhbuild";
106 ** This is the program to `cat' a file.
108 char *catproc = "/bin/cat";
111 ** mhl runs this program as a visual-end.
113 char *faceproc = NULL;
116 ** This program is usually called directly by users, but it is
117 ** also invoked by the spost program to process an "Fcc", or by
118 ** comp/repl/forw/dist to refile a draft message.
120 char *fileproc = NMHBINDIR"/refile";
123 ** This program is called to incorporate messages into a folder.
125 char *incproc = NMHBINDIR"/inc";
128 ** When a user runs an nmh program for the first time, this program
129 ** is called to create his nmh profile, and mail directory.
131 char *installproc = NMHLIBDIR"/install-mh";
134 ** This is the default program invoked by a "list" response
135 ** at the "What now?" prompt. It is also used by the draft
136 ** folder facility in comp/dist/forw/repl to display the
139 char *lproc = "more";
142 ** This is the path for the Bell equivalent mail program.
144 char *mailproc = NMHBINDIR"/mhmail";
147 ** This is used by mhl as a front-end. It is also used
148 ** by mhshow as the default method of displaying message bodies
149 ** or message parts of type text/plain.
151 char *moreproc = "more";
154 ** This is the program (mhl) used to filter messages. It is
155 ** used by mhshow to filter and display the message headers of
156 ** MIME messages. It is used by repl/forw (with -filter)
157 ** to filter the message to which you are replying/forwarding.
158 ** It is used by send/spost (with -filter) to filter the message
159 ** for "Bcc:" recipients.
161 char *mhlproc = NMHLIBDIR"/mhl";
164 ** This program is called to pack a folder.
166 char *packproc = NMHBINDIR"/packf";
169 ** This is the delivery program called by send to actually
170 ** deliver mail to users. This is the interface to the MTS.
172 char *postproc = NMHLIBDIR"/spost";
175 ** This is program is called by slocal to handle
176 ** the action `folder' or `+'.
178 char *rcvstoreproc = NMHLIBDIR"/rcvstore";
181 ** This program is called to remove a folder.
183 char *rmfproc = NMHBINDIR"/rmf";
186 ** This program is called to remove a message by rmm or refile -nolink.
187 ** It's usually empty, which means to rename the file to a backup name.
189 char *rmmproc = NULL;
192 ** This program is usually called by the user's whatnowproc, but it
193 ** may also be called directly to send a message previously composed.
195 char *sendproc = NMHBINDIR"/send";
198 ** This is the path to the program used by "show"
199 ** to display non-text (MIME) messages.
201 char *showmimeproc = NMHBINDIR"/mhshow";
204 ** This is the default program called by "show" to filter
205 ** and display standard text (non-MIME) messages. It can be
206 ** changed to a pager (such as "more" or "less") if you prefer
207 ** that such message not be filtered in any way.
209 char *showproc = NMHLIBDIR"/mhl";
212 ** This program is called after comp, et. al., have built a draft
214 char *whatnowproc = NMHBINDIR"/whatnow";
217 ** This is the sendmail interface to use for sending mail.
219 char *sendmail = SENDMAILPATH;
222 ** The prefix that is prepended to the name of message files when they
223 ** are "removed" by rmm. This should typically be `,' or `#'.
225 char *backup_prefix = ",";
228 ** This is the editor invoked by the various message
229 ** composition programs. It SHOULD be a full screen
230 ** editor, such as vi or emacs, but any editor will work.
232 char *defaulteditor = "vi";
235 ** Name of link to file to which you are replying or which you are
236 ** redistributing. See `$mhaltmsg' in the mh-profile(5) man page.
238 char *altmsglink = "@";
241 ** Folders (directories) are created with this protection (mode)
243 char *foldprot = "700";
246 ** Every NEW message will be created with this protection. When a
247 ** message is filed it retains its protection, so this only applies
248 ** to messages coming in through inc.
250 char *msgprot = "600";
255 ** Standard yes/no switches structure
257 struct swit anoyes[] = {