aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-28 22:38:00 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-28 22:38:00 +0000
commita7acaf216371c2ac58e186c92d713ea1982e26df (patch)
tree4ed126692f9809ebc6de3add842a48c604790430
parentf4f9da602945abd933e7796546eee4525f5e4c56 (diff)
downloadfetchmail-a7acaf216371c2ac58e186c92d713ea1982e26df.tar.gz
fetchmail-a7acaf216371c2ac58e186c92d713ea1982e26df.tar.bz2
fetchmail-a7acaf216371c2ac58e186c92d713ea1982e26df.zip
Better envelope-address parsing.
svn path=/trunk/; revision=836
-rw-r--r--driver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index 1761275c..afdaf860 100644
--- a/driver.c
+++ b/driver.c
@@ -290,8 +290,10 @@ char *parse_received(struct query *ctl, char *bufp)
char *sp, *tp;
/* extract space-delimited token after "by " */
+ for (sp = ok + 3; isspace(*sp); sp++)
+ continue;
tp = rbuf;
- for (sp = ok + 3; !isspace(*sp); sp++)
+ for (; !isspace(*sp); sp++)
*tp++ = *sp;
*tp = '\0';