X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Freadconfig.c;h=671ada30163e2c1caa53dd12aec71ff81b19a59c;hp=9e0382ef2e0c6819f2f1c34268a64cfe15d5b3b1;hb=916690191222433a6923a4be54b0d8f6ac01bd02;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68 diff --git a/sbr/readconfig.c b/sbr/readconfig.c index 9e0382e..671ada3 100644 --- a/sbr/readconfig.c +++ b/sbr/readconfig.c @@ -3,14 +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; @@ -20,6 +19,8 @@ struct procstr { static struct procstr procs[] = { { "context", &context }, { "mh-sequences", &mh_seq }, + { "backup-prefix", &backup_prefix }, + { "altmsg-link", &altmsglink }, { "buildmimeproc", &buildmimeproc }, { "faceproc", &faceproc }, { "fileproc", &fileproc }, @@ -29,15 +30,14 @@ static struct procstr procs[] = { { "mailproc", &mailproc }, { "mhlproc", &mhlproc }, { "moreproc", &moreproc }, - { "mshproc", &mshproc }, { "packproc", &packproc }, { "postproc", &postproc }, { "rmfproc", &rmfproc }, { "rmmproc", &rmmproc }, + { "sendmail", &sendmail }, { "sendproc", &sendproc }, { "showmimeproc", &showmimeproc }, { "showproc", &showproc }, - { "vmhproc", &vmhproc }, { "whatnowproc", &whatnowproc }, { "whomproc", &whomproc }, { NULL, NULL } @@ -65,8 +65,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);