X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=config%2Fconfig.c;h=82d20b18a88d63632980070a1eeadee0c9ea2827;hb=a2469f5ecbca3a179251ac9b777b561bc5245d4c;hp=c2d307eb72e0f31a2798ee2d132120d3e58b5205;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b;p=mmh diff --git a/config/config.c b/config/config.c index c2d307e..82d20b1 100644 --- a/config/config.c +++ b/config/config.c @@ -8,10 +8,8 @@ */ #include - -#ifdef MHRC -# include -#endif +#include +#include #define nmhbindir(file) NMHBINDIR#file #define nmhetcdir(file) NMHETCDIR#file @@ -34,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, '/'))) @@ -72,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 */ @@ -354,7 +346,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 @@ -362,5 +354,5 @@ char *foldprot = DEFAULT_FOLDER_MODE; * to messages coming in through inc. */ -char *msgprot = DEFAULT_MESSAGE_MODE; +char *msgprot = "600";