aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-23 14:39:56 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-23 14:39:56 +0000
commita3ce52dddfb25bcc66e0ded550b807dcdd977632 (patch)
tree2b8f1952f09ee1a76fac7b9457314a863aca7151
parent2fd3534168337fd96b3ae69c378463142f1aa1b0 (diff)
downloadfetchmail-a3ce52dddfb25bcc66e0ded550b807dcdd977632.tar.gz
fetchmail-a3ce52dddfb25bcc66e0ded550b807dcdd977632.tar.bz2
fetchmail-a3ce52dddfb25bcc66e0ded550b807dcdd977632.zip
Reset token count on comma.
svn path=/trunk/; revision=366
-rw-r--r--driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index ff558f2b..c6fe1fc1 100644
--- a/driver.c
+++ b/driver.c
@@ -80,10 +80,11 @@ const char *host; /* server hostname */
state = 5;
else if (isspace(*from))
state = 2;
+ else if (*from == ',')
+ tokencount = 0;
break;
case 2: /* found a token boundary -- reset without copying */
-
if (*from != ' ' && *from != '\t')
{
tokencount++;