Handle TAB, not just SP, in MAIL args.
[exim.git] / src / src / smtp_in.c
index e79f0a202e233c010aaa25e11ab600f3edd0e66b..476bbf0c27787bb7907d6d3906f1fab29c2b990d 100644 (file)
@@ -983,7 +983,8 @@ if (*v != '=') return FALSE;
 n = v;
 while(isalpha(n[-1])) n--;
 
-if (n[-1] != ' ') return FALSE;
+/* RFC says SP, but TAB seen in wild and other major MTAs accept it */
+if (!isspace(n[-1])) return FALSE;
 
 n[-1] = 0;
 *name = n;