diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-09-23 00:28:28 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-09-23 00:28:28 +0000 |
commit | ce3a6c046aa3cbc0bb08a149289c7aee2721bad1 (patch) | |
tree | 4c5a1dd48bb0177ce52d1038b880450c437105c4 /driver.c | |
parent | e888bf0d5407434aeea2d8d8524e03bec3acb8ed (diff) | |
download | fetchmail-ce3a6c046aa3cbc0bb08a149289c7aee2721bad1.tar.gz fetchmail-ce3a6c046aa3cbc0bb08a149289c7aee2721bad1.tar.bz2 fetchmail-ce3a6c046aa3cbc0bb08a149289c7aee2721bad1.zip |
Code rearrangement.
svn path=/trunk/; revision=1389
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 43 |
1 files changed, 20 insertions, 23 deletions
@@ -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) |