[git commit] sendmail: allow "+" symbol in recipient. Closes 9646

Denys Vlasenko vda.linux at googlemail.com
Sun Feb 12 20:57:22 UTC 2017


commit: https://git.busybox.net/busybox/commit/?id=c39ee047051fb36f4db907c037e22db586490f42
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 mailutils/sendmail.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mailutils/sendmail.c b/mailutils/sendmail.c
index 8ddb782..b542099 100644
--- a/mailutils/sendmail.c
+++ b/mailutils/sendmail.c
@@ -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';


More information about the busybox-cvs mailing list