X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frepl.c;h=438d85441109de03484265181a7a9779dbf62a6c;hp=9006dec24b0dbc1a0c41b4e586ab09095d8a6d46;hb=HEAD;hpb=04a3dfc70394a517a79340a7d3ecd9c6a23d0bee diff --git a/uip/repl.c b/uip/repl.c index 9006dec..438d854 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -60,6 +60,8 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; + static struct swit ccswitches[] = { #define CTOSW 0 { "to", 0 }, @@ -309,7 +311,6 @@ main(int argc, char **argv) /* parse the message range/sequence/name and set SELECTED */ if (!m_convert(mp, msg)) exit(EX_SOFTWARE); - seq_setprev(mp); /* set the previous-sequence */ if (mp->numsel > 1) adios(EX_USAGE, NULL, "only one message at a time!"); @@ -703,7 +704,6 @@ replfilter(FILE *in, FILE *out, char *filter) { int pid, pid_show, n; int mailpipe[2]; - char *errstr; if (filter == NULL) return; @@ -714,51 +714,51 @@ replfilter(FILE *in, FILE *out, char *filter) rewind(in); lseek(fileno(in), (off_t) 0, SEEK_SET); - if (pipe(mailpipe) == -1) { - adios(EX_OSERR, "pipe", "can't create pipe"); - } - - switch (pid_show = fork()) { - case NOTOK: - adios(EX_OSERR, "fork", "unable to"); - - case OK: - dup2(fileno(in), fileno(stdin)); - dup2(mailpipe[1], fileno(stdout)); - for (n=3; n