sendmail: allow "+" symbol in recipient. Closes 9646
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 12 Feb 2017 20:57:22 +0000 (21:57 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 12 Feb 2017 20:57:22 +0000 (21:57 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
mailutils/sendmail.c

index 8ddb7826bb15193cc7e2ff672005791b9a139d0e..b542099fd821f99e8d8cd56741b3550a1491ac77 100644 (file)
@@ -150,7 +150,7 @@ static char *sane_address(char *str)
        trim(str);
        s = str;
        while (*s) {
-               if (!isalnum(*s) && !strchr("_-.@", *s)) {
+               if (!isalnum(*s) && !strchr("+_-.@", *s)) {
                        bb_error_msg("bad address '%s'", str);
                        /* returning "": */
                        str[0] = '\0';