mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 16:29:50 +00:00
sendmail: do not ignore CC; accept to: and cc: case-insensitively.
+20 bytes.
This commit is contained in:
parent
2132e02213
commit
0ed090e184
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user