X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=config%2Fconfig.c;h=04ce1e60598d8dc80b647e2f94dbc52e907840ea;hb=6beed3bdc272bd06ef6273865a4b67e881393ae0;hp=2a01c1bbb9a918e13a3b8da5cb9bd95a364e70f6;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/config/config.c b/config/config.c index 2a01c1b..04ce1e6 100644 --- a/config/config.c +++ b/config/config.c @@ -2,14 +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 @@ -32,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, '/'))) @@ -70,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 */ @@ -200,6 +194,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. */ @@ -275,12 +276,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. */ @@ -352,7 +347,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 @@ -360,5 +355,5 @@ char *foldprot = DEFAULT_FOLDER_MODE; * to messages coming in through inc. */ -char *msgprot = DEFAULT_MESSAGE_MODE; +char *msgprot = "600";