termux-packages/packages/busybox/sendmail.patch
Oliver Schmidhauser 09e3a055e2 Patch for busybox to accept + in emails (#760)
Since the termux mailinglist has a + in the subscibe mail address, this
is required.
2017-02-09 15:31:37 +01:00

14 lines
416 B
Diff

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';