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>
This commit is contained in:
parent
5aa4d53273
commit
5b34300178
@ -221,12 +221,12 @@ int sendmail_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
|
|
||||||
// analyze headers
|
// analyze headers
|
||||||
// To: or Cc: headers add recipients
|
// To: or Cc: headers add recipients
|
||||||
if (0 == strncasecmp("To: ", s, 4) || 0 == strncasecmp("Bcc: " + 1, s, 4)) {
|
if (0 == strncasecmp("To:", s, 3) || 0 == strncasecmp("Bcc:" + 1, s, 3)) {
|
||||||
rcptto(sane_address(s+4));
|
rcptto(sane_address(s+3));
|
||||||
goto addheader;
|
goto addheader;
|
||||||
// Bcc: header adds blind copy (hidden) recipient
|
// Bcc: header adds blind copy (hidden) recipient
|
||||||
} else if (0 == strncasecmp("Bcc: ", s, 5)) {
|
} else if (0 == strncasecmp("Bcc:", s, 4)) {
|
||||||
rcptto(sane_address(s+5));
|
rcptto(sane_address(s+4));
|
||||||
free(s);
|
free(s);
|
||||||
// N.B. Bcc: vanishes from headers!
|
// N.B. Bcc: vanishes from headers!
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user