aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-23 00:28:28 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-23 00:28:28 +0000
commitce3a6c046aa3cbc0bb08a149289c7aee2721bad1 (patch)
tree4c5a1dd48bb0177ce52d1038b880450c437105c4 /driver.c
parente888bf0d5407434aeea2d8d8524e03bec3acb8ed (diff)
downloadfetchmail-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.c43
1 files changed, 20 insertions, 23 deletions
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)