]>
diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/config/config.c
1 /* config.c - master MH configuration file */
3 static char ident
[] = "@(#)$Id: config.c,v 1.11 1993/09/01 22:29:10 jromine Exp $";
6 /* This file is automatically generated. Do not edit! */
18 #define binpath(file) "/opt/mh-6.8.5/bin/"#file
19 #define etcpath(file) "/opt/mh-6.8.5/lib/"#file
21 #define binpath(file) "/opt/mh-6.8.5/bin/file"
22 #define etcpath(file) "/opt/mh-6.8.5/lib/file"
25 static char Config
[] = "@(#)Config: MH";
27 char *options
[] = {"ATTVIBUG", "DBMPWD", "DUMB", "FCNTL", "FOLDPROT='\"0711\"'", "MHE", "MHRC", "MIME", "MORE='\"/usr/bin/more\"'", "MSGID", "MSGPROT='\"0600\"'", "RENAME", "RPATHS", "SENDMTS", "SHADOW", "SMTP", "SOCKETS", "SPRINTFTYPE=int", "SVR4", "SYS5", "SYS5DIR", "TYPESIG=void", "VSPRINTF", NULL
};
33 struct passwd
*getpwnam ();
40 static char lpath
[BUFSIZ
];
61 if (cp
= index (pp
= file
+ 1, '/'))
66 if (pw
= getpwnam (pp
))
74 (void) sprintf (lpath
, "%s/%s", pp
, cp
? cp
: "");
78 if (access (lpath
, 04) != NOTOK
)
79 return lpath
; /* else fall */
84 if (access ((cp
= m_mailpath (file
)), 04) != NOTOK
)
88 (void) sprintf (lpath
, etcpath (%s
), file
);
89 return (access (lpath
, 04) != NOTOK
? lpath
: file
);
95 * Standard yes/no switches structure
98 struct swit anoyes
[] = {
110 char *components
= "components";
111 char *current
= "cur";
112 char *defalt
= "inbox";
113 char *digestcomps
= "digestcomps";
114 char *distcomps
= "distcomps";
115 char *draft
= "draft";
116 char *forwcomps
= "forwcomps";
117 char *inbox
= "inbox";
118 char *mh_defaults
= etcpath (mh
.profile
);
119 char *mh_profile
= ".mh_profile";
120 char *mhlformat
= "mhl.format";
121 char *mhlforward
= "mhl.forward";
122 char *nsequence
= "Sequence-Negation";
123 char *pfolder
= "Current-Folder";
124 char *psequence
= "Previous-Sequence";
125 char *rcvdistcomps
= "rcvdistcomps";
126 char *replcomps
= "replcomps";
127 char *usequence
= "Unseen-Sequence";
128 char *mhlibdir
= "/opt/mh-6.8.5/lib"; /* NB: this will change */
132 * MH not-so constants
135 char *context
= "context";
137 char *mh_seq
= ".mh_sequences";
147 char ctxflags
; /* status of user's context */
149 char *invo_name
; /* pgm invocation name */
150 char *mypath
; /* user's $HOME */
151 char *defpath
; /* pathname of user's profile */
152 char *ctxpath
; /* pathname of user's context */
154 struct node
*m_defs
; /* profile/context structure */
164 * mhl runs this program as a visual-end.
167 char *faceproc
= NULL
;
171 * This program is usually called directly by users, but it is
172 * also invoked by the post program to process an "fcc".
175 char *fileproc
= binpath (refile
);
179 * This program is called to incorporate messages into a folder.
182 char *incproc
= binpath (inc
);
186 * When a user runs an MH program for the first time, this program
187 * is called to create his MH profile, and mail directory.
190 char *installproc
= etcpath (install
-mh
);
194 * This is the program invoked by a "list" response to "What now?"
195 * whereas, showproc is the program invoked by show, next, prev.
199 char *lproc
= "/usr/ucb/more";
206 * This is the path for the Bell equivalent mail program.
209 char *mailproc
= binpath (mhmail
);
213 * mhl runs this program as a front-end.
217 char *moreproc
= "/usr/ucb/more";
219 char *moreproc
= MORE
;
224 * This program is mhl - the nifty message lister
227 char *mhlproc
= etcpath (mhl
);
231 * This is the super handy BBoard reading program, which is really just the MH
235 char *mshproc
= binpath (msh
);
239 * This program is called to pack a folder.
242 char *packproc
= binpath (packf
);
246 * This is the delivery program called through send to
247 * actually deliver mail to users. This is the interface to
251 #if BERK && SENDMTS && !SMTP
252 char *postproc
= etcpath (spost
);
254 char *postproc
= etcpath (post
);
259 * This program is called to remove a folder.
262 char *rmfproc
= binpath (rmf
);
266 * This program is called to remove a message by rmm or refile -nolink.
267 * It's usually empty, which means to rename the file to a backup name.
270 char *rmmproc
= NULL
;
274 * This program is usually called by the user's whatnowproc, but it
275 * may also be called directly to send a message previously composed.
278 char *sendproc
= binpath (send
);
282 * This program is called to list messages by the show program.
283 * By setting showproc to mhl, the user can run mhl instead.
287 char *showproc
= "/usr/ucb/more";
289 char *showproc
= MORE
;
294 * This program is called under stand-alone MH to deliver a message to
295 * a local user. Under other MTS's it can be used to emulate a
296 * MMDF-II .maildelivery mechanism.
299 char *slocalproc
= etcpath (slocal
);
303 * This program is called by vmh as the back-end to the window management
307 char *vmhproc
= binpath (msh
);
311 * This program is called after comp, et. al., have built a draft
314 char *whatnowproc
= binpath (whatnow
);
318 * This program is called to list/validate the addresses in a message.
321 char *whomproc
= binpath (whom
);
326 * This is the editor invoked by the various message composition
327 * programs. It SHOULD be a 2-D scope editor, such as Rand's ned
328 * or Berkeley's ex, but any editor will work. We use prompter as
329 * the default, since with -prepend it works just fine with forw.
332 char *sysed
= "/usr/bin/vi";
336 * This is the MH alias file.
339 char *AliasFile
= etcpath (MailAliases
);
349 * Folders (directories) are created with this protection (mode)
353 #define FOLDPROT "0711"
354 #endif /* not FOLDPROT */
356 char *foldprot
= FOLDPROT
;
360 * Every NEW message will be created with this protection. When a
361 * message is filed it retains its protection, so this only applies
362 * to messages coming in through inc.
366 #define MSGPROT "0644"
367 #endif /* not MSGPROT */
369 char *msgprot
= MSGPROT
;