X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Freadconfig.c;h=30585a231b3a4a302cac710a12fa9a12b7be0cbc;hp=9cd128e35d0d9e56ad924a43ca0d17496eff9863;hb=6c40d481d661d532dd527eaf34cebb6d3f8ed086;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/sbr/readconfig.c b/sbr/readconfig.c index 9cd128e..30585a2 100644 --- a/sbr/readconfig.c +++ b/sbr/readconfig.c @@ -3,10 +3,13 @@ * readconfig.c -- base routine to read nmh configuration files * -- such as nmh profile, context file, or mhn.defaults. * - * $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 +#include struct procstr { char *procname; @@ -16,6 +19,7 @@ struct procstr { static struct procstr procs[] = { { "context", &context }, { "mh-sequences", &mh_seq }, + { "backup-prefix", &backup_prefix }, { "buildmimeproc", &buildmimeproc }, { "faceproc", &faceproc }, { "fileproc", &fileproc }, @@ -30,6 +34,7 @@ static struct procstr procs[] = { { "postproc", &postproc }, { "rmfproc", &rmfproc }, { "rmmproc", &rmmproc }, + { "sendmail", &sendmail }, { "sendproc", &sendproc }, { "showmimeproc", &showmimeproc }, { "showproc", &showproc }, @@ -61,8 +66,7 @@ readconfig (struct node **npp, FILE *ib, char *file, int ctx) case FLD: case FLDPLUS: case FLDEOF: - if (!(np = (struct node *) malloc (sizeof(*np)))) - adios (NULL, "unable to allocate profile storage"); + np = (struct node *) mh_xmalloc (sizeof(*np)); *npp = np; *(npp = &np->n_next) = NULL; np->n_name = getcpy (name);