From 09e3a055e2a4d26b8aed0973f247b41192bdf4c9 Mon Sep 17 00:00:00 2001 From: Oliver Schmidhauser Date: Thu, 9 Feb 2017 15:31:37 +0100 Subject: [PATCH] Patch for busybox to accept + in emails (#760) Since the termux mailinglist has a + in the subscibe mail address, this is required. --- packages/busybox/build.sh | 2 +- packages/busybox/sendmail.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 packages/busybox/sendmail.patch diff --git a/packages/busybox/build.sh b/packages/busybox/build.sh index 166154922..1549aaef0 100755 --- a/packages/busybox/build.sh +++ b/packages/busybox/build.sh @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://busybox.net/ TERMUX_PKG_DESCRIPTION="Tiny versions of many common UNIX utilities into a single small executable" TERMUX_PKG_ESSENTIAL=yes TERMUX_PKG_VERSION=1.26.2 -TERMUX_PKG_REVISION=2 +TERMUX_PKG_REVISION=3 TERMUX_PKG_SRCURL=https://busybox.net/downloads/busybox-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_SHA256=da3e44913fc1a9c9b7c5337ea5292da518683cbff32be630777f565d6036af16 TERMUX_PKG_BUILD_IN_SRC=yes diff --git a/packages/busybox/sendmail.patch b/packages/busybox/sendmail.patch new file mode 100644 index 000000000..dd5996e08 --- /dev/null +++ b/packages/busybox/sendmail.patch @@ -0,0 +1,13 @@ +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';