diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-11-20 07:49:04 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-11-20 07:49:04 +0000 |
commit | 85ea804517dc39280113a281a71397fdefe59d3c (patch) | |
tree | b07cbce76d3eb9dcb565fb5e0af967d9267e4aed /driver.c | |
parent | 8571456f863ab4a2d5b16fee08fc9c5fdada3989 (diff) | |
download | fetchmail-85ea804517dc39280113a281a71397fdefe59d3c.tar.gz fetchmail-85ea804517dc39280113a281a71397fdefe59d3c.tar.bz2 fetchmail-85ea804517dc39280113a281a71397fdefe59d3c.zip |
Handle "for" at end of line correctly.
svn path=/trunk/; revision=2188
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -273,12 +273,14 @@ static char *parse_received(struct query *ctl, char *bufp) return(NULL); } - if ((ok = strstr(sp, "for ")) && isspace(ok[-1])) + if ((ok = strstr(sp, "for")) && isspace(ok[3]) && isspace(ok[-1])) { flag want_gt = FALSE; + /* char after "for" could be space or a continuation newline */ + for (sp = ok + 4; isspace(*sp); sp++) + continue; tp = rbuf; - sp = ok + 4; *tp++ = ':'; /* Here is the hack. This is to be friends */ *tp++ = ' '; /* with nxtaddr()... */ if (*sp == '<') |