X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=config%2Fconfig.c;h=72da2cd97c6ab1f9e222d84b7e97761545d8ae80;hb=0f0af4e32a4d734209c16282b63f7cb1094e2699;hp=8a613b682cd2538cae7763bbb843c06900cf7a63;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68;p=mmh diff --git a/config/config.c b/config/config.c index 8a613b6..72da2cd 100644 --- a/config/config.c +++ b/config/config.c @@ -2,18 +2,14 @@ /* * config.c -- master nmh configuration file * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include - -#ifdef MHRC -# include -#endif +#include +#include #define nmhbindir(file) NMHBINDIR#file #define nmhetcdir(file) NMHETCDIR#file @@ -36,21 +32,16 @@ etcpath (char *file) { static char epath[PATH_MAX]; char *cp; -#ifdef MHRC char *pp; struct passwd *pw; -#endif -#ifdef MHRC context_read(); -#endif switch (*file) { case '/': /* If already absolute pathname, return it */ return file; -#ifdef MHRC case '~': /* Expand ~username */ if ((cp = strchr(pp = file + 1, '/'))) @@ -74,7 +65,6 @@ etcpath (char *file) if (access (epath, R_OK) != NOTOK) return epath; /* else fall */ try_it: -#endif /* MHRC */ default: /* Check nmh Mail directory */ @@ -191,12 +181,6 @@ char *buildmimeproc = nmhbindir (/mhbuild); char *catproc = "/bin/cat"; /* - * mhl runs this program as a visual-end. - */ - -char *faceproc = NULL; - -/* * This program is usually called directly by users, but it is * also invoked by the post program to process an "Fcc", or by * comp/repl/forw/dist to refile a draft message. @@ -204,6 +188,13 @@ char *faceproc = NULL; char *fileproc = nmhbindir (/refile); +/* + * This program is used to optionally format the bodies of messages by + * "mhl". + */ + +char *formatproc = NULL; + /* * This program is called to incorporate messages into a folder. */ @@ -224,7 +215,7 @@ char *installproc = nmhlibdir (/install-mh); * draft message. */ -char *lproc = DEFAULT_PAGER; +char *lproc = NULL; /* * This is the path for the Bell equivalent mail program. @@ -238,7 +229,7 @@ char *mailproc = nmhbindir (/mhmail); * or message parts of type text/plain. */ -char *moreproc = DEFAULT_PAGER; +char *moreproc = NULL; /* * This is the program (mhl) used to filter messages. It is @@ -279,12 +270,6 @@ char *postproc = nmhlibdir (/post); char *rcvstoreproc = nmhlibdir (/rcvstore); /* - * This program is called to remove a folder. - */ - -char *rmfproc = nmhbindir (/rmf); - -/* * This program is called to remove a message by rmm or refile -nolink. * It's usually empty, which means to rename the file to a backup name. */ @@ -356,7 +341,7 @@ char *AliasFile = nmhetcdir (/MailAliases); * Folders (directories) are created with this protection (mode) */ -char *foldprot = DEFAULT_FOLDER_MODE; +char *foldprot = "700"; /* * Every NEW message will be created with this protection. When a @@ -364,5 +349,5 @@ char *foldprot = DEFAULT_FOLDER_MODE; * to messages coming in through inc. */ -char *msgprot = DEFAULT_MESSAGE_MODE; +char *msgprot = "600";