X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Frepl.c;h=b1c0782f0381ca8a4be2ce8242f1f30ebfcb8536;hb=08baf4f8bc7623c41a9753c71aed9a4042196aac;hp=af58c59c5c7d561692ece9880845a7e0f43fc937;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/uip/repl.c b/uip/repl.c index af58c59..b1c0782 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -3,6 +3,10 @@ * repl.c -- reply to a message * * $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 @@ -62,13 +66,13 @@ static struct swit switches[] = { #define VERSIONSW 25 { "version", 0 }, #define HELPSW 26 - { "help", 4 }, + { "help", 0 }, #define FILESW 27 - { "file file", -4 }, /* interface from msh */ + { "file file", 4 }, /* interface from msh */ #ifdef MHE #define BILDSW 28 - { "build", -5 }, /* interface from mhe */ + { "build", 5 }, /* interface from mhe */ #endif { NULL, 0 } @@ -108,9 +112,9 @@ static struct swit aqrl[] = { { NULL, 0 } }; -short ccto = 1; /* global for replsbr */ -short cccc = 1; -short ccme = 1; +short ccto = -1; /* global for replsbr */ +short cccc = -1; +short ccme = -1; short querysw = 0; short outputlinelen = OUTPUTLINELEN; @@ -323,6 +327,13 @@ main (int argc, char **argv) } } + if (ccto == -1) + ccto = groupreply; + if (cccc == -1) + cccc = groupreply; + if (ccme == -1) + ccme = groupreply; + cwd = getcpy (pwd ()); if (!context_find ("path")) @@ -430,7 +441,7 @@ try_it_again: done (0); what_now (ed, nedit, NOUSE, drft, msg, 0, mp, anot ? "Replied" : NULL, inplace, cwd); - done (1); + return done (1); } void