From 0ed090e184739b6722a87acab644a8df24be09d4 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 15 Jul 2008 20:56:23 +0000 Subject: sendmail: do not ignore CC; accept to: and cc: case-insensitively. +20 bytes. --- networking/sendmail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networking/sendmail.c b/networking/sendmail.c index 9361738..2332f6a 100644 --- a/networking/sendmail.c +++ b/networking/sendmail.c @@ -394,7 +394,7 @@ int sendgetmail_main(int argc UNUSED_PARAM, char **argv) // fetch recipients and (optionally) subject char *s; while ((s = xmalloc_reads(INITIAL_STDIN_FILENO, NULL, NULL)) != NULL) { - if (0 == strncmp("To: ", s, 4)) { + if (0 == strncasecmp("To: ", s, 4) || 0 == strncasecmp("Cc: ", s, 4)) { llist_add_to_end(&opt_recipients, s+4); /* } else if (0 == strncmp("From: ", s, 6)) { opt_from = s+6; -- cgit v1.1