diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-15 20:56:23 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-15 20:56:23 +0000 |
commit | 0ed090e184739b6722a87acab644a8df24be09d4 (patch) | |
tree | 9f32c127e81851073c838a7389c9f0f102c857cb | |
parent | 2132e0221301d2634c265541e62e3efea0cce9d9 (diff) | |
download | busybox-w32-0ed090e184739b6722a87acab644a8df24be09d4.tar.gz busybox-w32-0ed090e184739b6722a87acab644a8df24be09d4.tar.bz2 busybox-w32-0ed090e184739b6722a87acab644a8df24be09d4.zip |
sendmail: do not ignore CC; accept to: and cc: case-insensitively.
+20 bytes.
-rw-r--r-- | networking/sendmail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/sendmail.c b/networking/sendmail.c index 93617388b..2332f6afb 100644 --- a/networking/sendmail.c +++ b/networking/sendmail.c | |||
@@ -394,7 +394,7 @@ int sendgetmail_main(int argc UNUSED_PARAM, char **argv) | |||
394 | // fetch recipients and (optionally) subject | 394 | // fetch recipients and (optionally) subject |
395 | char *s; | 395 | char *s; |
396 | while ((s = xmalloc_reads(INITIAL_STDIN_FILENO, NULL, NULL)) != NULL) { | 396 | while ((s = xmalloc_reads(INITIAL_STDIN_FILENO, NULL, NULL)) != NULL) { |
397 | if (0 == strncmp("To: ", s, 4)) { | 397 | if (0 == strncasecmp("To: ", s, 4) || 0 == strncasecmp("Cc: ", s, 4)) { |
398 | llist_add_to_end(&opt_recipients, s+4); | 398 | llist_add_to_end(&opt_recipients, s+4); |
399 | /* } else if (0 == strncmp("From: ", s, 6)) { | 399 | /* } else if (0 == strncmp("From: ", s, 6)) { |
400 | opt_from = s+6; | 400 | opt_from = s+6; |