aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-07-04 02:35:30 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-07-04 02:35:30 +0000
commitd3ce90c880ce40858ff90813738335c8d73dea8d (patch)
tree27998fef04fb3f0334ba5afdfbd33cddc26ea479
parent0c7905befcf041caf6bd4f14c801edc9cfeb1888 (diff)
downloadfetchmail-d3ce90c880ce40858ff90813738335c8d73dea8d.tar.gz
fetchmail-d3ce90c880ce40858ff90813738335c8d73dea8d.tar.bz2
fetchmail-d3ce90c880ce40858ff90813738335c8d73dea8d.zip
Better skip handling.
svn path=/trunk/; revision=3392
-rw-r--r--transact.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/transact.c b/transact.c
index c31946ae..a5e40cbc 100644
--- a/transact.c
+++ b/transact.c
@@ -797,14 +797,14 @@ int readheaders(int sock,
line,
strlen(ctl->server.envelope)))
{
- if (skipcount++ != ctl->server.envskip)
+ if (skipcount++ < ctl->server.envskip)
continue;
env_offs = (line - msgblk.headers);
}
}
else if (!received_for && !strncasecmp("Received:", line, 9))
{
- if (skipcount++ != ctl->server.envskip)
+ if (skipcount++ < ctl->server.envskip)
continue;
received_for = parse_received(ctl, line);
}