chiark / gitweb /
+ * Treat 8-bit characters in email addrs as RFC822 `special' (=> quote).
[adns.git] / src / types.c
index 43ccc2b25884e6ef58da907f28cad2d61a995168..b1fdae79f93eefd6fd1500465e486058cbbac73c 100644 (file)
@@ -851,7 +851,7 @@ static adns_status pap_mailbox822(const parseinfo *pai, int *cbyte_io, int max,
     c= *p++;
     if ((c&~128) < 32 || (c&~128) == 127) return adns_s_invaliddata;
     if (c == '.' && !neednorm) neednorm= 1;
-    else if (c==' ' || ctype_822special(c)) needquote++;
+    else if (c==' ' || c>=127 || ctype_822special(c)) needquote++;
     else neednorm= 0;
   }