X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhparam.c;h=0d5b32c85e83b057afb33b3f0d4e6ad425a1a32a;hp=f6ebb651c4b6bcce8a64a1ccce88c478215154d0;hb=6f1a8c3b8d6f19bbe33e7d3fa746ae1d2e9ac455;hpb=3c9700d8d045f3ff26ce5dd2a174454dafc14822 diff --git a/uip/mhparam.c b/uip/mhparam.c index f6ebb65..0d5b32c 100644 --- a/uip/mhparam.c +++ b/uip/mhparam.c @@ -5,7 +5,9 @@ * Originally contributed by * Jeffrey C Honig * - * $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 @@ -26,7 +28,7 @@ static struct swit switches[] = { #define VERSIONSW 3 { "version", 0 }, #define HELPSW 4 - { "help", 4 }, + { "help", 0 }, #define DEBUGSW 5 { "debug", -5 }, { NULL, 0 } @@ -56,6 +58,7 @@ static struct proc procs [] = { { "postproc", &postproc }, { "rmfproc", &rmfproc }, { "rmmproc", &rmmproc }, + { "sendmail", &sendmail }, { "sendproc", &sendproc }, { "showmimeproc", &showmimeproc }, { "showproc", &showproc }, @@ -146,7 +149,7 @@ main(int argc, char **argv) for (np = m_defs; np; np = np->n_next) printf("%s: %s\n", np->n_name, np->n_field); - } if (debug) { + } else if (debug) { struct proc *ps; /* @@ -177,7 +180,8 @@ main(int argc, char **argv) } } - return done (missed); + done (missed); + return 1; } @@ -187,7 +191,7 @@ p_find(char *str) struct proc *ps; for (ps = procs; ps->p_name; ps++) - if (!strcasecmp (ps->p_name, str)) + if (!mh_strcasecmp (ps->p_name, str)) return (*ps->p_field); return NULL;