From ce3a6c046aa3cbc0bb08a149289c7aee2721bad1 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 23 Sep 1997 00:28:28 +0000 Subject: Code rearrangement. svn path=/trunk/; revision=1389 --- driver.c | 43 ++++++++++++++++++++----------------------- 1 file changed, 20 insertions(+), 23 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index fab75611..3447c7ff 100644 --- a/driver.c +++ b/driver.c @@ -333,30 +333,27 @@ static char *parse_received(struct query *ctl, char *bufp) * recipient name after a following "for". Otherwise * punt. */ - if (is_host_alias(rbuf, ctl)) - ok = strstr(sp, "for "); - else + if (!is_host_alias(rbuf, ctl)) ok = (char *)NULL; - } - - if (ok != 0) - { - char *sp, *tp; - - tp = rbuf; - sp = ok + 4; - if (*sp == '<') - sp++; - while (*sp && *sp != '>' && *sp != '@' && *sp != ';') - if (!isspace(*sp)) - *tp++ = *sp++; - else - { - /* uh oh -- whitespace here can't be right! */ - ok = (char *)NULL; - break; - } - *tp = '\0'; + else if ((ok = strstr(sp, "for ")) != 0) + { + char *sp, *tp; + + tp = rbuf; + sp = ok + 4; + if (*sp == '<') + sp++; + while (*sp && *sp != '>' && *sp != '@' && *sp != ';') + if (!isspace(*sp)) + *tp++ = *sp++; + else + { + /* uh oh -- whitespace here can't be right! */ + ok = (char *)NULL; + break; + } + *tp = '\0'; + } } if (!ok) -- cgit v1.2.3