summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko2008-07-15 20:56:23 +0000
committerDenis Vlasenko2008-07-15 20:56:23 +0000
commit0ed090e184739b6722a87acab644a8df24be09d4 (patch)
tree9f32c127e81851073c838a7389c9f0f102c857cb
parent2132e0221301d2634c265541e62e3efea0cce9d9 (diff)
downloadbusybox-0ed090e184739b6722a87acab644a8df24be09d4.zip
busybox-0ed090e184739b6722a87acab644a8df24be09d4.tar.gz
sendmail: do not ignore CC; accept to: and cc: case-insensitively.
+20 bytes.
-rw-r--r--networking/sendmail.c2
1 files changed, 1 insertions, 1 deletions
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;