busybox/mailutils
Aaro Koskinen 14285d14a5 sendmail: avoid sending mail to wrong addresses
If we get an address we cannot parse properly, we currently just strip
the unknown characters and still try to send it. This is considered
harmful as the resulting address may still be valid but different from
what the user originally intended.

Instead, skip sending to an address we cannot fully understand and
print the characters what we have scanned so far. Leading and trailing
whitespace is allowed and silently stripped.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-03-18 18:45:13 +01:00
..
Config.src *: add INSERTs to *.src files where appropriate 2010-06-08 12:15:11 +02:00
Kbuild.src reformime: do not require \r\n 2011-05-22 03:46:33 +02:00
mail.c sendmail: stop doing -t unconditionally; makemime: generate 76 char base64 lines 2011-11-18 22:25:35 +01:00
mail.h makemime: content-type should default to application/octet-stream 2011-11-19 13:55:46 +01:00
makemime.c makemime: tweak help text: -a HDR can be repeated 2011-12-20 02:15:19 +01:00
popmaildir.c *: remove "Options:" string from help texts 2011-06-05 03:58:28 +02:00
reformime.c makemime: document our current behavior. Tweak help text 2011-11-19 14:43:02 +01:00
sendmail.c sendmail: avoid sending mail to wrong addresses 2013-03-18 18:45:13 +01:00