aboutsummaryrefslogtreecommitdiff
path: root/mailutils
diff options
context:
space:
mode:
authorVladimir Dronnikov <dronnikov@gmail.com>2010-10-05 01:21:32 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-10-05 01:21:32 +0200
commit5b3430017895001e134b6c37a0ea4d2c082ba209 (patch)
treee24599df30b7ca779bc5d71705c2a333175cd62a /mailutils
parent5aa4d532735b715f10560513e79e96f237957570 (diff)
downloadbusybox-5b3430017895001e134b6c37a0ea4d2c082ba209.tar.gz
sendmail: fix assumption that headers should have a space after the colon
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'mailutils')
-rw-r--r--mailutils/sendmail.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mailutils/sendmail.c b/mailutils/sendmail.c
index 59591ee4b..ec97cf8af 100644
--- a/mailutils/sendmail.c
+++ b/mailutils/sendmail.c
@@ -221,12 +221,12 @@ int sendmail_main(int argc UNUSED_PARAM, char **argv)
// analyze headers
// To: or Cc: headers add recipients
- if (0 == strncasecmp("To: ", s, 4) || 0 == strncasecmp("Bcc: " + 1, s, 4)) {
- rcptto(sane_address(s+4));
+ if (0 == strncasecmp("To:", s, 3) || 0 == strncasecmp("Bcc:" + 1, s, 3)) {
+ rcptto(sane_address(s+3));
goto addheader;
// Bcc: header adds blind copy (hidden) recipient
- } else if (0 == strncasecmp("Bcc: ", s, 5)) {
- rcptto(sane_address(s+5));
+ } else if (0 == strncasecmp("Bcc:", s, 4)) {
+ rcptto(sane_address(s+4));
free(s);
// N.B. Bcc: vanishes from headers!