]> granicus.if.org Git - neomutt/commitdiff
This one-line diff should fix the behaviour of the address parser
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 17 Jan 2001 08:53:12 +0000 (08:53 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 17 Jan 2001 08:53:12 +0000 (08:53 +0000)
when encountering loose dots in addresses.

rfc822.c

index 27f4d38cb0b191df0b7398e6c31c2a2d01eae46f..1611a1401fc32266fbec5fd146c5f4ea32158dfa 100644 (file)
--- a/rfc822.c
+++ b/rfc822.c
@@ -459,7 +459,7 @@ ADDRESS *rfc822_parse_adrlist (ADDRESS *top, const char *s)
     }
     else
     {
-      if (phraselen && phraselen < sizeof (phrase) - 1)
+      if (phraselen && phraselen < sizeof (phrase) - 1 && *s != '.')
        phrase[phraselen++] = ' ';
       if ((ps = next_token (s, phrase, &phraselen, sizeof (phrase) - 1)) == NULL)
       {