ADDRESS *rfc822_parse_adrlist (ADDRESS *top, const char *s)
{
+ int ws_pending;
const char *begin, *ps;
char comment[STRING], phrase[STRING];
size_t phraselen = 0, commentlen = 0;
while (last && last->next)
last = last->next;
+ ws_pending = isspace (*s);
+
SKIPWS (s);
begin = s;
while (*s)
}
else
{
- if (phraselen && phraselen < sizeof (phrase) - 1 && *s != '.')
+ if (phraselen && phraselen < sizeof (phrase) - 1 && ws_pending)
phrase[phraselen++] = ' ';
if ((ps = next_token (s, phrase, &phraselen, sizeof (phrase) - 1)) == NULL)
{
}
s = ps;
}
+ ws_pending = isspace (*s);
SKIPWS (s);
}